My Oracle Support Banner

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

Last updated on AUGUST 30, 2023

Applies to:

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


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: ]:<PORT> [Root exception is Not an LDAP URL: ]:<PORT>]
at com.sun.jndi.ldap.LdapURL.(
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(
at javax.naming.spi.NamingManager.getInitialContext(
at javax.naming.InitialContext.getDefaultInitCtx(
at javax.naming.InitialContext.init(
at javax.naming.ldap.InitialLdapContext.(
at com.octetstring.vde.backend.jndi.JNDIConnectionPool.createCtx(
at com.octetstring.vde.backend.jndi.JNDIConnectionPool.create(
at com.octetstring.vde.backend.jndi.JNDIConnectionPool.(
at com.octetstring.vde.backend.jndi.RemoteServer.getJNDIConnectionPool(
at com.octetstring.vde.backend.jndi.BackendJNDI.getLDAPContext(
... 39 more
Caused by: Not an LDAP URL: ]:<PORT>
at com.sun.jndi.ldap.LdapURL.(
... 52 more


adapter.os_xml has the following entries

<host port="<PORT>" percentage="10" readonly="false"><HOSTNAME1></host>
<host port="<PORT>" percentage="90" readonly="false"><HOSTNAME2> </host>


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

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