java.net.ConnectException

Connection refused

Samebug tips4

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web5136

  • via Unknown by Adrian Hempel [Atlassian],
  • via Unknown by Adrian Hempel [Atlassian],
  • via Unknown by David Cheney [Atlassian],
  • Stack trace

    • java.net.ConnectException: Connection refused 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:430) 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:79) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.findClass(AgentClassLoader.java:99) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org.apache.activemq.command.ConsumerInfo.createRemoveCommand(ConsumerInfo.java:267) at org.apache.activemq.ActiveMQMessageConsumer.close(ActiveMQMessageConsumer.java:542) at org.jencks.amqpool.PooledSession.close(PooledSession.java:96) at org.logicblaze.lingo.jms.impl.OneWayRequestor.close(OneWayRequestor.java:81) at org.logicblaze.lingo.jms.impl.SingleThreadedRequestor.close(SingleThreadedRequestor.java:83) at com.atlassian.bamboo.lingo.BambooMultiplexingRequestor.close(BambooMultiplexingRequestor.java:49) at org.logicblaze.lingo.jms.JmsClientInterceptor.destroy(JmsClientInterceptor.java:156) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:146) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:344) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:317) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:290) at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:706) at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:684) at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:651) at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.stop(RemoteAgent.java:110) at com.atlassian.bamboo.agent.bootstrap.AgentRunner.stop(AgentRunner.java:38) at com.atlassian.bamboo.agent.bootstrap.AgentContext.restart(AgentContext.java:112) at com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.findClass(AgentClassLoader.java:123) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:56) at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:145) at java.lang.Thread.run(Thread.java:613)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    stigkjstigkj
    4 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    824 more bugmates