java.net.ConnectException

Connection timed out

Samebug tips9

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 web13439

  • Connection timed out (Connection timed out)
  • via GitHub by andrewufrank
    , 5 months ago
    Connection timed out (Connection timed out)
  • Connection timed out (Connection timed out)
  • Stack trace

    • java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at com.ibm.jsse2.as.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at com.ibm.net.ssl.www2.protocol.https.c.<init>(Unknown Source) at com.ibm.net.ssl.www2.protocol.https.c.a(Unknown Source) at com.ibm.net.ssl.www2.protocol.https.d.getNewHttpClient(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at com.ibm.net.ssl.www2.protocol.https.d.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) at com.ibm.net.ssl.www2.protocol.https.b.getOutputStream(Unknown Source) at com.cloudant.http.HttpConnection.execute(HttpConnection.java:329) at com.cloudant.http.interceptors.CookieInterceptor.getCookie(CookieInterceptor.java:172) at com.cloudant.http.interceptors.CookieInterceptor.interceptRequest(CookieInterceptor.java:84) at com.cloudant.http.HttpConnection.execute(HttpConnection.java:306) at com.cloudant.client.org.lightcouch.CouchDbClient.execute(CouchDbClient.java:470) at com.cloudant.client.org.lightcouch.CouchDbClient.executeToInputStream(CouchDbClient.java:560) at com.cloudant.client.org.lightcouch.CouchDbClient.executeToResponse(CouchDbClient.java:282) at com.cloudant.client.org.lightcouch.CouchDbClient.createDB(CouchDbClient.java:204) at com.cloudant.client.org.lightcouch.CouchDatabaseBase.<init>(CouchDatabaseBase.java:63) at com.cloudant.client.org.lightcouch.CouchDatabase.<init>(CouchDatabase.java:26) at com.cloudant.client.org.lightcouch.CouchDbClient.database(CouchDbClient.java:167) at com.cloudant.client.api.CloudantClient.database(CloudantClient.java:217)

    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, 3 days ago
    2 times, 1 month ago
    Once, 2 months ago
    2 times, 8 months ago
    3 times, 8 months ago
    483 more bugmates