java.net.ConnectException: Connection refused: connect

jakarta-cactus-user | Fabian Hagen | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Connection refused: connect

    jakarta-cactus-user | 1 decade ago | Fabian Hagen
    java.net.ConnectException: Connection refused: connect
  2. 0

    Socket closed for site

    hc-httpclient-users | 9 years ago | Saurabh AMBASTA
    java.net.ConnectException: Connection refused: connect
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 22#60719720

    GitHub | 2 years ago | xingfengshen
    java.net.ConnectException: Connection refused

  1. stigkj 4 times, last 2 months ago
  2. QrCeric 17 times, last 3 days ago
  3. andyglick 56 times, last 2 months ago
  4. tomthomas 1 times, last 2 months ago
  5. michallos 1 times, last 2 months ago
27 more registered users
65 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

    Connection refused: connect

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:336)
    3. java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:201)
    4. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:188)
    5. java.net.Socket.connect(Socket.java:478)
    6. java.net.Socket.connect(Socket.java:428)
    7. java.net.Socket.<init>(Socket.java:335)
    8. java.net.Socket.<init>(Socket.java:150)
    8 frames
  3. HttpClient
    HttpClient.executeMethod
    1. org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:86)
    2. org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:652)
    3. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:628)
    4. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:526)
    4 frames
  4. org.apache.cactus
    AbstractCactusTestCase.runBare
    1. org.apache.cactus.internal.client.connector.http.HttpClientConnectionHelper.connect_aroundBody0(HttpClientConnectionHelper.java:142)
    2. org.apache.cactus.internal.client.connector.http.HttpClientConnectionHelper.connect_aroundBody1$advice(HttpClientConnectionHelper.java:306)
    3. org.apache.cactus.internal.client.connector.http.HttpClientConnectionHelper.connect(HttpClientConnectionHelper.java)
    4. org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callRunTest(DefaultHttpClient.java:162)
    5. org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:80)
    6. org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:306)
    7. org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java)
    8. org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHandler.java:159)
    9. org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpProtocolHandler.java:80)
    10. org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(HttpProtocolHandler.java:306)
    11. org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(HttpProtocolHandler.java)
    12. org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:144)
    13. org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
    14. org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
    14 frames
  5. com.ubs.swidBOB
    RealEstateServiceTest.main
    1. com.ubs.swidBOB.v5.batch.basel2.RealEstateServiceTest.main(RealEstateServiceTest.java:102)
    1 frame