org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 3000 ms

JFrog JIRA | Tal Abramson | 8 years ago
  1. 0

    JFrog:/work/clients/jfrog/test/work/current/bin$./artadmin info --username admin --password password --host 8081 java.net.ConnectException: Invalid argument 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) 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) JFrog:/work/clients/jfrog/test/work/current/bin$./artadmin info --username admin --password password --host 11.2.1:8081 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 JFrog:/work/clients/jfrog/test/work/current/bin$./artadmin info --username admin --password password --host aaa:8081 java.net.UnknownHostException: aaa at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:240) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80) at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$1.doit(ControllerThreadSocketFactory.java:91) at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$SocketTask.run(ControllerThreadSocketFactory.java:158) at java.lang.Thread.run(Thread.java:595) JFrog:/work/clients/jfrog/test/work/current/bin$

    JFrog JIRA | 8 years ago | Tal Abramson
    org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 3000 ms
  2. 0

    JFrog:/work/clients/jfrog/test/work/current/bin$./artadmin info --username admin --password password --host 8081 java.net.ConnectException: Invalid argument 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) 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) JFrog:/work/clients/jfrog/test/work/current/bin$./artadmin info --username admin --password password --host 11.2.1:8081 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 JFrog:/work/clients/jfrog/test/work/current/bin$./artadmin info --username admin --password password --host aaa:8081 java.net.UnknownHostException: aaa at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:240) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80) at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$1.doit(ControllerThreadSocketFactory.java:91) at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$SocketTask.run(ControllerThreadSocketFactory.java:158) at java.lang.Thread.run(Thread.java:595) JFrog:/work/clients/jfrog/test/work/current/bin$

    JFrog JIRA | 8 years ago | Tal Abramson
    org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 3000 ms
  3. 0

    Apache ODE on OpenShift calling remote web-service timeout

    Stack Overflow | 2 years ago | Serban
    org.apache.axis2.AxisFault: The host did not accept the connection within timeout of 60000 ms
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Connection Time Out on executing the sample program

    Google Groups | 6 years ago | CrazyKalai
    org.openid4java.discovery.yadis.YadisException: 0x704: I/O transport error:
  6. 0

    Unable to Sync: Error Message: Error! org.apache.commons.httpclient.ConnectTimeoutException:

    socketheadstudios.com | 1 year ago
    org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 10000 ms

  1. rlovtangen 2 times, last 2 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketTimeoutException

    connect timed out

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Method.invoke
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    3. java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    4. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    6. java.net.Socket.connect(Socket.java:520)
    7. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    8. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    9. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    10. java.lang.reflect.Method.invoke(Method.java:585)
    10 frames
  3. HttpClient
    HttpClient.executeMethod
    1. org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
    2. org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
    3. org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
    4. org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
    5. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    6. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    7. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    7 frames
  4. org.artifactory.cli
    ArtifactoryCli.main
    1. org.artifactory.cli.common.UrlBasedCommand.executeMethod(UrlBasedCommand.java:240)
    2. org.artifactory.cli.common.UrlBasedCommand.get(UrlBasedCommand.java:154)
    3. org.artifactory.cli.common.UrlBasedCommand.get(UrlBasedCommand.java:145)
    4. org.artifactory.cli.command.InfoCommand.execute(InfoCommand.java:28)
    5. org.artifactory.cli.main.ArtifactoryCli.main(ArtifactoryCli.java:73)
    5 frames