javax.naming.CommunicationException: localhost:10389 [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

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 Atlassian JIRA by Andrei Bacs [Atlassian], 1 year ago
localhost:10389 [Root exception is java.net.ConnectException: Connection refused]
via Atlassian JIRA by Andrei Bacs [Atlassian], 1 year ago
localhost:10389 [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 523659, 1 year ago
172.18.12.240:389 [Root exception is java.net.ConnectException: Connection refused]
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]
javax.naming.CommunicationException: localhost:10389 [Root exception is java.net.ConnectException: Connection refused]
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.reflect.GeneratedMethodAccessor604.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.jndi.ldap.Connection.createSocket(Connection.java:350)
at com.sun.jndi.ldap.Connection.(Connection.java:203)
at com.sun.jndi.ldap.Connection.(Connection.java:216)
at com.sun.jndi.ldap.LdapClient.(LdapClient.java:137)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1613)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2746)
at com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:319)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:192)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:210)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
at javax.naming.InitialContext.init(InitialContext.java:244)
at javax.naming.InitialContext.(InitialContext.java:216)
at javax.naming.directory.InitialDirContext.(InitialDirContext.java:101)
at com.atlassian.user.impl.ldap.repository.DefaultLdapContextFactory.getLDAPContext(DefaultLdapContextFactory.java:96)

Users with the same issue

8 times, 3 hours ago
422 times, 4 hours ago
11 times, 7 hours ago
2 times, 2 days ago
Once, 3 days ago

Write tip

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