javax.naming.CommunicationException: hostname:636 [Root exception is Connection timed out]

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Coderanch by christine clarin, 1 year ago
hostname:636 [Root exception is Connection timed out]
via Stack Overflow by Unknown author, 2 years ago
ipofactivedirectory:636 [Root exception is Connection timed out: connect]
via Oracle Community by 843793, 1 year ago
myserver:389 [Root exception is Connection timed out: connect]
via GitHub by sankarvadivel1
, 10 months ago [Root exception is Connection timed out: connect]
via Atlassian JIRA by Andrei Bacs [Atlassian], 1 year ago
localhost:10389 [Root exception is Connection refused]
via Oracle Community by 523659, 1 year ago [Root exception is Connection refused]
javax.naming.CommunicationException: hostname:636 [Root exception is Connection timed out]
at Method)
at com.sun.jndi.ldap.Connection.createSocket(
at com.sun.jndi.ldap.Connection.(
at com.sun.jndi.ldap.LdapClient.(
at com.sun.jndi.ldap.LdapClient.getInstance(
at com.sun.jndi.ldap.LdapCtx.connect(
at com.sun.jndi.ldap.LdapCtx.(
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.InitialContext.(
at org.ipres.server.utils.ReadUnitFromLDAP.getDirContext(
at org.ipres.server.utils.ReadUnitFromLDAP.doFilterSearch(
at org.ipres.server.controllers.UnitServiceImpl.readFromLDAP(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(

Users with the same issue

8 times, 3 hours ago
422 times, 3 hours ago
11 times, 6 hours ago
2 times, 1 day ago
Once, 3 days ago

Write tip

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