OID ldapsearch Fails with Error "java.lang.NullPointerException" | LDAP API (e.g., dbms_ldap or JNDI) Fails with: Exception: javax.naming.NamingException: [LDAP: error code 73 - java.lang.NullPointerException ]; remaining name ''
(Doc ID 2292113.1)
Last updated on MARCH 05, 2019
Applies to:
Oracle Internet Directory - Version 11.1.1 and laterInformation in this document applies to any platform.
Symptoms
- Custom code using LDAP APIs to Oracle Internet Directory (OID) fails with following exception stack:
Exception:
javax.naming.NamingException: [LDAP: error code 73 - java.lang.NullPointerException ]; remaining name ''
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3189)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3033)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2840)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1849)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1772)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:386)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:356)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:339)
at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:267)
at LdapConnector.Login(LdapConnector.java:69)
at TestOID.authorize(TestOID.java:16)
at TestOID.main(TestOID.java:89)
- Same Error happens with ldapsearch command as well:
$ORACLE_HOME/bin/ldapsearch -h <OID_host> -p <OID_port> -D "cn=orcladmin" -w <password> -b "" -s sub "cn=orcladmin"
ldap_search: UnKnown Error Encountered
ldap_search: additional info: java.lang.NullPointerException
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 |
Cause |
Solution |
References |