LDAP Connection TimeOut Exception

javaldap

While debugging a LDAP connection class, if I terminate the process and do not close the LDAP connection by going into finally block. From next time I am not able to connect back to the LDAP directory. It throws follwoing exception for me

Caused by: javax.naming.CommunicationException: 1.11.1.1:389 [Root exception is java.net.ConnectException: Connection timed out: connect]
    at com.sun.jndi.ldap.Connection.<init>(Connection.java:208)

Is it issue from the server side or some java daemon thred?

Best Answer

It looks like the issue cause is server-side. Which LDAP server are you using ?