javax.naming.CommunicationException: hogehoge:389 [Root exception is java.net.UnknownHostException: hogehoge]

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 co.jp by Unknown author, 1 year ago
hogehoge:389 [Root exception is java.net.UnknownHostException: hogehoge]
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 Oracle Community by 523659, 1 year ago
172.18.12.240:389 [Root exception is java.net.ConnectException: Connection refused]
via GitHub by sankarvadivel1
, 1 year 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]
java.net.UnknownHostException: hogehoge
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:124)
at com.sun.jndi.ldap.Connection.createSocket(Connection.java:346)
at com.sun.jndi.ldap.Connection.(Connection.java:181)
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 undefined.AuthTest2.main(AuthTest2.java:36)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
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

Write tip

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