javax.naming.NamingException: [LDAP: error code 1 - Can't connect to the LDAP server]]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 804908, 1 year ago
[LDAP: error code 1 - Can't connect to the LDAP server]]
javax.naming.NamingException: [LDAP: error code 1 - Can't connect to the LDAP server]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3081)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2987)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2789)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2703)
at com.sun.jndi.ldap.LdapCtx.ensureOpen(LdapCtx.java:2602)
at com.sun.jndi.ldap.LdapCtx.ensureOpen(LdapCtx.java:2576)
at com.sun.jndi.ldap.LdapCtx.reconnect(LdapCtx.java:2572)
at javax.naming.ldap.InitialLdapContext.reconnect(InitialLdapContext.java:173)
at com.sun.directory.common.ssl.LdapContextUtils$3.run(LdapContextUtils.java:251)
at java.lang.Thread.run(Thread.java:619)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.