OVD 11g "javax.naming.NamingException: Cannot parse url" "java.net.MalformedURLException: Not an LDAP URL"
(Doc ID 2150006.1)
Last updated on AUGUST 30, 2023
Applies to:
Oracle Virtual Directory - Version 11.1.1.1.0 and laterInformation 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: ]:<PORT> [Root exception is java.net.MalformedURLException: Not an LDAP URL: ]:<PORT>]
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: ]:<PORT>
at com.sun.jndi.ldap.LdapURL.(LdapURL.java:89)
... 52 more
adapter.os_xml has the following entries
<hosts>
<host port="<PORT>" percentage="10" readonly="false"><HOSTNAME1></host>
<host port="<PORT>" percentage="90" readonly="false"><HOSTNAME2> </host>
</hosts>
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 |