java.net.ConnectException: Invalid argument

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
    java.net.ConnectException: Invalid argument
  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
    java.net.ConnectException: Invalid argument
  3. 0

    Cannot fetch SonarQube project and modules from Sonar server

    GitHub | 2 years ago | acadet
    org.sonar.wsclient.connectors.ConnectionException: Query: org.apache.commons.httpclient.methods.GetMethod@47f79ab5
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Make GeoNode work with GeoServer 2.4

    GitHub | 3 years ago | ingenieroariel
    org.springframework.security.authentication.AuthenticationServiceException: Communication with GeoNode failed
  6. 0

    Master branch is failing tests in Travis

    GitHub | 3 years ago | ingenieroariel
    org.springframework.security.authentication.AuthenticationServiceException: Communication with GeoNode failed

  1. musketyr 1 times, last 1 month ago
  2. ruifung 1 times, last 3 months ago
8 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.ConnectException

    Invalid argument

    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