javax.naming.CommunicationException

Connection timed out: connect [Root exception is java.net.ConnectException: Connection timed out: connect]

Samebug tips4

Check if your MongoDB is available.


Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1009

  • via Oracle Community by 619958, 1 year ago
    Connection timed out: connect [Root exception is java.net.ConnectException: Connection timed out: connect]
  • via Coderanch by James Winfrey, 7 months ago
    abcdomain.com:389 [Root exception is java.net.ConnectException: Connection timed out: connect]
  • 10.64.117.71:389 [Root exception is java.net.ConnectException: Connection timed out: connect]
  • Stack trace

    • javax.naming.CommunicationException: Connection timed out: connect [Root exception is java.net.ConnectException: Connection timed out: connect] at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:296) at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51) at javax.naming.InitialContext.lookup(Unknown Source) at com.apress.oracle10g.jms.TestJMSConnection.main(TestJMSConnection.java:42) Caused by: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 10 months ago
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Once, 1 year ago
    20 times, 7 hours ago
    277 more bugmates