javax.naming.CommunicationException: 172.18.12.240:389 [Root exception is java.net.ConnectException: 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 Oracle Community by 523659, 1 year ago
172.18.12.240:389 [Root exception is java.net.ConnectException: Connection refused]
via Stack Overflow by Unknown author, 2 years ago
ipofactivedirectory:636 [Root exception is java.net.ConnectException: Connection timed out: connect]
via Oracle Community by 843793, 1 year ago
myserver:389 [Root exception is java.net.ConnectException: Connection timed out: connect]
via GitHub by sankarvadivel1
, 10 months ago
10.64.117.71:389 [Root exception is java.net.ConnectException: Connection timed out: connect]
via java.com by Unknown author, 2 years ago
127.0.0.1:389 [Root exception is java.net.ConnectException: Cannot assign requested address]
via Atlassian JIRA by Andrei Bacs [Atlassian], 1 year ago
localhost:10389 [Root exception is java.net.ConnectException: Connection refused]
javax.naming.CommunicationException: 172.18.12.240:389 [Root exception is java.net.ConnectException: Connection refused]
at com.sun.jndi.ldap.Connection.(Connection.java:204)
at com.sun.jndi.ldap.LdapClient.(LdapClient.java:119)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1668)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2599)
at com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:290)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.(InitialContext.java:195)
at javax.naming.directory.InitialDirContext.(InitialDirContext.java:80)
at zbht.sys.SimpleSso.CSsoUser.login(CSsoUser.java:48)

Users with the same issue

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

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