java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine

hc-httpclient-users | Lalit Sahoo | 10 years ago
  1. 0

    Problem with Proxy Communication

    hc-httpclient-users | 10 years ago | Lalit Sahoo
    java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
  2. 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
  3. 0

    Make GeoNode work with GeoServer 2.4

    GitHub | 3 years ago | ingenieroariel
    org.springframework.security.authentication.AuthenticationServiceException: Communication with GeoNode failed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Master branch is failing tests in Travis

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

    Driver not found Exception in Web Service example

    Stack Overflow | 6 years ago | sjain
    java.net.ConnectException: Connection refused: connect

  1. treefolk 9 times, last 1 week ago
  2. musketyr 1 times, last 1 month ago
  3. 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

    connect: Address is invalid on local machine, or port is not valid on remote machine

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Method.invoke
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.PlainSocketImpl.doConnect(Unknown Source)
    3. java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    4. java.net.PlainSocketImpl.connect(Unknown Source)
    5. java.net.Socket.connect(Unknown Source)
    6. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    7. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    8. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    9. java.lang.reflect.Method.invoke(Unknown Source)
    9 frames
  3. HttpClient
    HttpClient.executeMethod
    1. org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
    2. org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
    3. org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
    4. org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
    5. org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
    6. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
    7. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
    8. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
    8 frames
  4. com.cramer.agent
    HttpImplTest.testHttpProxy
    1. com.cramer.agent.protocol.http.HttpImpl.send(HttpImpl.java:486)
    2. com.cramer.agent.protocol.http.HttpImplTest.testHttpProxy(HttpImplTest.java:714)
    2 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  6. JUnit
    TestSuite.run
    1. junit.framework.TestCase.runTest(TestCase.java:164)
    2. junit.framework.TestCase.runBare(TestCase.java:130)
    3. junit.framework.TestResult$1.protect(TestResult.java:106)
    4. junit.framework.TestResult.runProtected(TestResult.java:124)
    5. junit.framework.TestResult.run(TestResult.java:109)
    6. junit.framework.TestCase.run(TestCase.java:120)
    7. junit.framework.TestSuite.runTest(TestSuite.java:230)
    8. junit.framework.TestSuite.run(TestSuite.java:225)
    8 frames
  7. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    3 frames