org.apache.commons.httpclient.ConnectTimeoutException

The host did not accept the connection within timeout of 3000 ms

Samebug tips1

Check for proxy misconfigurations and AWS issues.


rafaelrafael

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

Solutions on the web333

  • via Unknown by Tal Abramson,
  • via Unknown by Tal Abramson,
  • via Unknown by olivernz,
  • Stack trace

    • org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 3000 ms at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:155) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.artifactory.cli.common.UrlBasedCommand.executeMethod(UrlBasedCommand.java:240) at org.artifactory.cli.common.UrlBasedCommand.get(UrlBasedCommand.java:154) at org.artifactory.cli.common.UrlBasedCommand.get(UrlBasedCommand.java:145) at org.artifactory.cli.command.InfoCommand.execute(InfoCommand.java:28) at org.artifactory.cli.main.ArtifactoryCli.main(ArtifactoryCli.java:73) Caused by: java.net.SocketTimeoutException: connect timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140) ... 11 more

    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

    Nikolay RybakNikolay Rybak
    3 times, last one
    Unknown visitor
    Unknown visitorOnce,
    rprp
    Once,
    rlovtangenrlovtangen
    2 times, last one
    Unknown UserUnknown User
    20 times, last one
    60 more bugmates