OVD 11g "javax.naming.NamingException: Cannot parse url" "java.net.MalformedURLException: Not an LDAP URL" (Doc ID 2150006.1)

Last updated on MARCH 08, 2017

Applies to:

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

Symptoms

New LDAP adapter created in ODSM, but OVD unable to make connections to backend LDAP server.

The following error found in OVD diag logs

Caused by: javax.naming.NamingException: Cannot parse url: ]:12389 [Root exception is java.net.MalformedURLException: Not an LDAP URL: ]:12389]
at com.sun.jndi.ldap.LdapURL.(LdapURL.java:95)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:164)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:211)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
at javax.naming.InitialContext.init(InitialContext.java:242)
at javax.naming.ldap.InitialLdapContext.(InitialLdapContext.java:153)
at com.octetstring.vde.backend.jndi.JNDIConnectionPool.createCtx(JNDIConnectionPool.java:434)
at com.octetstring.vde.backend.jndi.JNDIConnectionPool.create(JNDIConnectionPool.java:465)
at com.octetstring.vde.backend.jndi.JNDIConnectionPool.(JNDIConnectionPool.java:146)
at com.octetstring.vde.backend.jndi.RemoteServer.getJNDIConnectionPool(RemoteServer.java:157)
at com.octetstring.vde.backend.jndi.BackendJNDI.getLDAPContext(BackendJNDI.java:1009)
... 39 more
Caused by: java.net.MalformedURLException: Not an LDAP URL: ]:12389
at com.sun.jndi.ldap.LdapURL.(LdapURL.java:89)
... 52 more

 

adapter.os_xml has the following entries

<hosts>
<host port="12389" percentage="10" readonly="false">myhost24s</host>
<host port="12389" percentage="90" readonly="false">myhost23s </host>
</hosts>



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