java.net.ConnectException: Connection refused: connect

Stack Overflow | dijja | 5 months ago
  1. 0

    Driver not found Exception in Web Service example

    Stack Overflow | 6 years ago | sjain
    java.net.ConnectException: Connection refused: connect
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

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.DualStackPlainSocketImpl.waitForConnect()
  2. Java RT
    Method.invoke
    1. java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
    3. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    4. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    5. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    6. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    7. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    8. java.net.Socket.connect(Socket.java:579)
    9. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    10. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    11. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    12. java.lang.reflect.Method.invoke(Method.java:606)
    12 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.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
    5. org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
    6. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    7. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    7 frames
  4. Apache Axis2 - Transport - HTTP
    CommonsHTTPTransportSender.invoke
    1. org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:621)
    2. org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
    3. org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
    4. org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
    5. org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
    5 frames
  5. org.apache.axis2
    OperationClient.execute
    1. org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
    2. org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
    3. org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
    4. org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
    4 frames
  6. com.ilyes.web
    ElectreTriClassStub.electreTriMethod
    1. com.ilyes.web.ElectreTriClassStub.electreTriMethod(Unknown Source)
    1 frame
  7. agentsPackage
    InitiatorBehaviour$InitiatorFrameNew$3$1.run
    1. agentsPackage.InitiatorBehaviour$InitiatorFrameNew$3$1.run(Unknown Source)
    1 frame