My Oracle Support Banner

OVD 11g: java.lang.NullPointerException in ODSM or ODSM URL Connecting to OVD Creating Stuck Threads in WebLogic Server (WLS) (Doc ID 1513855.1)

Last updated on AUGUST 30, 2023

Applies to:

Oracle Virtual Directory - Version 11.1.1.1.0 and later
Information in this document applies to any platform.

Symptoms

Several Oracle Directory Services Manager (ODSM) issues have been reported when Weblogic (and thus ODSM) is using a JDK version higher than Oracle Virtual Directory (OVD). Steps are presented below to diagnose and correct these problems.

 

In one particular case, the following error message appeared in ODSM every time a change was applied to any OVD adapter.

error loading adapter :
java.lang.NullPointerException 


The WLS diagnostic log showed the following:

[2012-12-06T08:21:33.727-06:00] [AdminServer] [WARNING] [] [org.apache.myfaces.trinidadinternal.context.RequestContextImpl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: ] [ecid: <ECID string>] [APP: odsm
[2012-12-06T08:21:44.727-06:00] [AdminServer] [NOTIFICATION] [] [oracle.ldap.odsm.model.ovd.config.adapters.APBaseCfg] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: ] [ecid: <ECID string>] [APP: odsm#11.1.1.2.0] saveChanges[[
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: Error loading adapter ORACLE LDAP : java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:<HOSTNAME>

Error loading adapter <ADAPTER_NAME> : java.lang.NullPointerException

 

Or:

Selecting OVD target in Enterprise Manager (EM) Fusion Middleware (FMW) Control console hangs, then returns Error:

Failed to load server configuration.Check the Virtual Directory Server logs. Possible Error :"java.lang.NullPointerException"



Or:

ODSM URL connecting to OVD is creating stuck threads in WebLogic Server (WLS), and the WLS Managed Server may switch to Warning state.

...<snip>...
"[STUCK] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE native
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.read(SocketInputStream.java:153)
java.net.SocketInputStream.read(SocketInputStream.java:122)
sun.security.ssl.InputRecord.readFully(InputRecord.java:466)
sun.security.ssl.InputRecord.read(InputRecord.java:504)
sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:937)
sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:895)
sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
sun.security.ssl.AppInputStream.read(AppInputStream.java:69)
java.io.FilterInputStream.read(FilterInputStream.java:83)
java.io.PushbackInputStream.read(PushbackInputStream.java:139)
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:109)
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:135)
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1069)
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:2168)
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1936)
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2631)
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1085)
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:674)
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:529)
com.novell.ldap.DsmlConnection.sendMessage(DsmlConnection.java:155)
com.novell.ldap.DsmlConnection.execQuery(DsmlConnection.java:95)
com.novell.ldap.DsmlConnection.search(DsmlConnection.java:708)
com.novell.ldap.DsmlConnection.search(DsmlConnection.java:754)
oracle.ldap.odsm.model.ovd.browser.APLdapTreeNode.getEntry(APLdapTreeNode.java:1213)
oracle.ldap.odsm.model.ovd.browser.APLdapTreeNode.getProp(APLdapTreeNode.java:753)
oracle.ldap.odsm.model.ovd.browser.APLdapTreeNode.isOrganizationalUnitEntry(APLdapTreeNode.java:3773)
oracle.ldap.odsm.ui.common.TreeNode.get(TreeNode.java:213)
javax.el.MapELResolver.getValue(MapELResolver.java:196)
com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
...<etc>...

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.