java.net.ConnectException: Connection refused: connect

tuscany-dev | Simon Nash (JIRA) | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Apache Ode User - java.net.ConnectException: Connection refused: connect

    nabble.com | 1 year ago
    java.net.ConnectException: Connection refused: connect
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Re: HELP: NullPointerException with Selenium hub

    Google Groups | 8 years ago | whopiecat
    java.net.ConnectException: Connection refused: connect
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: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:519)
    7. java.net.Socket.connect(Socket.java:469)
    8. java.net.Socket.<init>(Socket.java:366)
    9. java.net.Socket.<init>(Socket.java:240)
    9 frames
  3. HttpClient
    HttpClient.executeMethod
    1. org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
    2. org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
    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)
    8. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
    8 frames
  4. Apache Axis2 - Transport - HTTP
    CommonsHTTPTransportSender.invoke
    1. org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)
    2. org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)
    3. org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
    4. org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
    5. org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
    5 frames
  5. org.apache.axis2
    OperationClient.execute
    1. org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
    2. org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
    3. org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
    4. org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
    4 frames
  6. org.apache.tuscany
    Axis2BindingInvoker$1.run
    1. org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker$1.run(Axis2BindingInvoker.java:172)
    1 frame
  7. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  8. org.apache.tuscany
    BasicAuthenticationReferencePolicyInterceptor.invoke
    1. org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:170)
    2. org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:124)
    3. org.apache.tuscany.sca.policy.authentication.basic.BasicAuthenticationReferencePolicyInterceptor.invoke(BasicAuthenticationReferencePolicyInterceptor.java:85)
    3 frames
  9. Apache Tuscany SCA Base Jar
    JDKInvocationHandler.invoke
    1. org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:67)
    2. org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:346)
    3. org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:193)
    3 frames
  10. Unknown
    $Proxy44.authorize
    1. $Proxy44.authorize(Unknown Source)
    1 frame
  11. com.tuscanyscatours.payment
    PaymentImpl.makePaymentMember
    1. com.tuscanyscatours.payment.impl.PaymentImpl.makePaymentMember(PaymentImpl.java:59)
    1 frame
  12. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  13. org.apache.tuscany
    SpringInvoker.invoke
    1. org.apache.tuscany.sca.implementation.spring.invocation.SpringInvoker.doInvoke(SpringInvoker.java:97)
    2. org.apache.tuscany.sca.implementation.spring.invocation.SpringInvoker.invoke(SpringInvoker.java:113)
    2 frames
  14. Apache Tuscany SCA Base Jar
    DataTransformationInterceptor.invoke
    1. org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:67)
    1 frame
  15. org.apache.tuscany
    BasicAuthenticationServicePolicyInterceptor.invoke
    1. org.apache.tuscany.sca.policy.authentication.basic.BasicAuthenticationServicePolicyInterceptor.invoke(BasicAuthenticationServicePolicyInterceptor.java:82)
    1 frame
  16. Apache Tuscany SCA Base Jar
    RuntimeWireImpl.invoke
    1. org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:129)
    2. org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:104)
    3. org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:98)
    4. org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.invoke(RuntimeWireImpl.java:159)
    4 frames
  17. org.apache.tuscany
    Axis2ServiceInOutSyncMessageReceiver.invokeBusinessLogic
    1. org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.invokeTarget(Axis2ServiceProvider.java:760)
    2. org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver.invokeBusinessLogic(Axis2ServiceInOutSyncMessageReceiver.java:70)
    2 frames
  18. org.apache.axis2
    AxisEngine.receive
    1. org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
    2. org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
    3. org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
    3 frames
  19. Apache Axis2 - Transport - HTTP
    AxisServlet.doPost
    1. org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
    2. org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
    2 frames
  20. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    2 frames
  21. Jetty Server
    SelectChannelEndPoint.run
    1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
    3. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    4. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
    5. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    6. org.mortbay.jetty.Server.handle(Server.java:324)
    7. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
    8. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
    9. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
    10. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    11. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    12. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
    12 frames
  22. org.apache.tuscany
    ThreadPoolWorkManager$DecoratingWork.run
    1. org.apache.tuscany.sca.core.work.Work.run(Work.java:63)
    2. org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:215)
    2 frames
  23. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    3. java.lang.Thread.run(Thread.java:619)
    3 frames