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 AUGUST 07, 2017

Applies to:

Oracle Internet Directory - Version 11.1.1 and later
Information in this document applies to any platform.

Symptoms

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)

 

$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

 

 

 

 

Changes

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms