javax.naming.CommunicationException: [Root exception is Connection refused]

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 by Unknown author, 1 year ago [Root exception is Connection refused: connect]
via Stack Overflow by Jagadish G
, 1 year ago [Root exception is java.lang.ClassNotFoundException: com/testing/diraccess/service/ActiveDirectory$TestSSLFactory]
via Oracle Community by 843793, 1 year ago
*********:389 [Root exception is Connection refused]
via Oracle Community by 843793, 1 year ago
localhost:636 [Root exception is Connection refused: connect]
via Oracle Community by 843793, 1 year ago
Balu:389 [Root exception is Address already in use: connect]
via directory-users by Tanja Ertl, 1 year ago
server:port [Root exception is Connection refused] Connection refused
at Method)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
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.ldap.InitialLdapContext.(

Users with the same issue

142 times, 1 day ago
8 times, 2 days ago
552 times, 2 days ago
11 times, 4 days ago
26943 times, 5 days ago

Write tip

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