java.net.ConnectException: Connection refused

Atlassian JIRA | Adrian Hempel [Atlassian] | 9 years ago
  1. 0

    {noformat} 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) {noformat}

    Atlassian JIRA | 9 years ago | Adrian Hempel [Atlassian]
    java.net.ConnectException: Connection refused
  2. 0

    {noformat} 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) {noformat}

    Atlassian JIRA | 9 years ago | Adrian Hempel [Atlassian]
    java.net.ConnectException: Connection refused
  3. 0

    The agent has failed to startup, yet has not exited to allow the wrapper to retry {noformat} [root@bamboo-agent-65 log]# service bamboo-agent status Bamboo Agent is running (26591). {noformat} {noformat} INFO | jvm 1 | 2010/02/23 11:04:14 | 2010-02-23 11:04:14,462 INFO [ActiveMQ Transport: tcp:///172.16.3.18:54669] [HttpMethodDirector] I/O exception (java.net.ConnectException) caught when processing request: Connection refused INFO | jvm 1 | 2010/02/23 11:04:14 | 2010-02-23 11:04:14,462 INFO [ActiveMQ Transport: tcp:///172.16.3.18:54669] [HttpMethodDirector] Retrying request INFO | jvm 1 | 2010/02/23 11:04:14 | 2010-02-23 11:04:14,463 INFO [ActiveMQ Transport: tcp:///172.16.3.18:54669] [HttpMethodDirector] I/O exception (java.net.ConnectException) caught when processing request: Connection refused INFO | jvm 1 | 2010/02/23 11:04:14 | 2010-02-23 11:04:14,463 INFO [ActiveMQ Transport: tcp:///172.16.3.18:54669] [HttpMethodDirector] Retrying request INFO | jvm 1 | 2010/02/23 11:04:14 | 2010-02-23 11:04:14,463 INFO [ActiveMQ Transport: tcp:///172.16.3.18:54669] [HttpMethodDirector] I/O exception (java.net.ConnectException) caught when processing request: Connection refused INFO | jvm 1 | 2010/02/23 11:04:14 | 2010-02-23 11:04:14,463 INFO [ActiveMQ Transport: tcp:///172.16.3.18:54669] [HttpMethodDirector] Retrying request INFO | jvm 1 | 2010/02/23 11:04:14 | 2010-02-23 11:04:14,464 FATAL [ActiveMQ Transport: tcp:///172.16.3.18:54669] [AgentContext] Agent encountered fatal error. Exiting. INFO | jvm 1 | 2010/02/23 11:04:14 | java.net.ConnectException: Connection refused INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.PlainSocketImpl.socketConnect(Native Method) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.Socket.connect(Socket.java:525) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.Socket.connect(Socket.java:475) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.Socket.<init>(Socket.java:372) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.Socket.<init>(Socket.java:246) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) INFO | jvm 1 | 2010/02/23 11:04:14 | at com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.findClass(AgentClassLoader.java:132) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.lang.ClassLoader.loadClass(ClassLoader.java:307) INFO | jvm 1 | 2010/02/23 11:04:14 | at com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.loadClass(AgentClassLoader.java:304) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.lang.ClassLoader.loadClass(ClassLoader.java:248) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.tcp.TcpTransport.doStop(TcpTransport.java:469) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:69) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.tcp.TcpTransport.stop(TcpTransport.java:499) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.InactivityMonitor.stop(InactivityMonitor.java:113) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:64) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.WireFormatNegotiator.stop(WireFormatNegotiator.java:87) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.util.ServiceSupport.dispose(ServiceSupport.java:43) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.failover.FailoverTransport.handleTransportFailure(FailoverTransport.java:201) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.failover.FailoverTransport$3.onException(FailoverTransport.java:173) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:99) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.WireFormatNegotiator.onException(WireFormatNegotiator.java:152) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:244) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:96) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:189) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.lang.Thread.run(Thread.java:619) ERROR | wrapper | 2010/02/23 11:04:14 | JVM exited unexpectedly. STATUS | wrapper | 2010/02/23 11:04:19 | Launching a JVM... INFO | jvm 2 | 2010/02/23 11:04:19 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org INFO | jvm 2 | 2010/02/23 11:04:19 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. INFO | jvm 2 | 2010/02/23 11:04:19 | INFO | jvm 2 | 2010/02/23 11:04:19 | Agent bootstrap using baseUrl: http://172.16.3.139:8080/agentServer/ INFO | jvm 2 | 2010/02/23 11:04:19 | Requesting fingerprintRequestUrl: http://172.16.3.139:8080/agentServer/GetFingerprint.action?hostName=bamboo-agent-65.private.atlassian.com INFO | jvm 2 | 2010/02/23 11:04:19 | 0 [WrapperSimpleAppMain] INFO org.apache.commons.httpclient.HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused INFO | jvm 2 | 2010/02/23 11:04:19 | 1 [WrapperSimpleAppMain] INFO org.apache.commons.httpclient.HttpMethodDirector - Retrying request INFO | jvm 2 | 2010/02/23 11:04:19 | 1 [WrapperSimpleAppMain] INFO org.apache.commons.httpclient.HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused INFO | jvm 2 | 2010/02/23 11:04:19 | 1 [WrapperSimpleAppMain] INFO org.apache.commons.httpclient.HttpMethodDirector - Retrying request INFO | jvm 2 | 2010/02/23 11:04:19 | 2 [WrapperSimpleAppMain] INFO org.apache.commons.httpclient.HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused INFO | jvm 2 | 2010/02/23 11:04:19 | 2 [WrapperSimpleAppMain] INFO org.apache.commons.httpclient.HttpMethodDirector - Retrying request INFO | jvm 2 | 2010/02/23 11:04:19 | Exiting due to fatal exception. INFO | jvm 2 | 2010/02/23 11:04:19 | java.net.ConnectException: Connection refused INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.socketConnect(Native Method) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.Socket.connect(Socket.java:525) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.Socket.connect(Socket.java:475) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.Socket.<init>(Socket.java:372) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.Socket.<init>(Socket.java:246) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) INFO | jvm 2 | 2010/02/23 11:04:19 | at com.atlassian.bamboo.agent.bootstrap.AgentContext.<init>(AgentContext.java:64) INFO | jvm 2 | 2010/02/23 11:04:19 | at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:81) INFO | jvm 2 | 2010/02/23 11:04:19 | at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:34) INFO | jvm 2 | 2010/02/23 11:04:19 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 2 | 2010/02/23 11:04:19 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) INFO | jvm 2 | 2010/02/23 11:04:19 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.lang.reflect.Method.invoke(Method.java:597) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.lang.Thread.run(Thread.java:619) INFO | jvm 2 | 2010/02/23 11:04:19 | 4 [WrapperSimpleAppMain] FATAL com.atlassian.bamboo.agent.bootstrap.AgentBootstrap - Exiting due to fatal exception. INFO | jvm 2 | 2010/02/23 11:04:19 | java.net.ConnectException: Connection refused INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.socketConnect(Native Method) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) {noformat}

    Atlassian JIRA | 7 years ago | David Cheney [Atlassian]
    java.net.ConnectException: Connection refused
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The agent has failed to startup, yet has not exited to allow the wrapper to retry {noformat} [root@bamboo-agent-65 log]# service bamboo-agent status Bamboo Agent is running (26591). {noformat} {noformat} INFO | jvm 1 | 2010/02/23 11:04:14 | 2010-02-23 11:04:14,462 INFO [ActiveMQ Transport: tcp:///172.16.3.18:54669] [HttpMethodDirector] I/O exception (java.net.ConnectException) caught when processing request: Connection refused INFO | jvm 1 | 2010/02/23 11:04:14 | 2010-02-23 11:04:14,462 INFO [ActiveMQ Transport: tcp:///172.16.3.18:54669] [HttpMethodDirector] Retrying request INFO | jvm 1 | 2010/02/23 11:04:14 | 2010-02-23 11:04:14,463 INFO [ActiveMQ Transport: tcp:///172.16.3.18:54669] [HttpMethodDirector] I/O exception (java.net.ConnectException) caught when processing request: Connection refused INFO | jvm 1 | 2010/02/23 11:04:14 | 2010-02-23 11:04:14,463 INFO [ActiveMQ Transport: tcp:///172.16.3.18:54669] [HttpMethodDirector] Retrying request INFO | jvm 1 | 2010/02/23 11:04:14 | 2010-02-23 11:04:14,463 INFO [ActiveMQ Transport: tcp:///172.16.3.18:54669] [HttpMethodDirector] I/O exception (java.net.ConnectException) caught when processing request: Connection refused INFO | jvm 1 | 2010/02/23 11:04:14 | 2010-02-23 11:04:14,463 INFO [ActiveMQ Transport: tcp:///172.16.3.18:54669] [HttpMethodDirector] Retrying request INFO | jvm 1 | 2010/02/23 11:04:14 | 2010-02-23 11:04:14,464 FATAL [ActiveMQ Transport: tcp:///172.16.3.18:54669] [AgentContext] Agent encountered fatal error. Exiting. INFO | jvm 1 | 2010/02/23 11:04:14 | java.net.ConnectException: Connection refused INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.PlainSocketImpl.socketConnect(Native Method) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.Socket.connect(Socket.java:525) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.Socket.connect(Socket.java:475) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.Socket.<init>(Socket.java:372) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.net.Socket.<init>(Socket.java:246) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) INFO | jvm 1 | 2010/02/23 11:04:14 | at com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.findClass(AgentClassLoader.java:132) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.lang.ClassLoader.loadClass(ClassLoader.java:307) INFO | jvm 1 | 2010/02/23 11:04:14 | at com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.loadClass(AgentClassLoader.java:304) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.lang.ClassLoader.loadClass(ClassLoader.java:248) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.tcp.TcpTransport.doStop(TcpTransport.java:469) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:69) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.tcp.TcpTransport.stop(TcpTransport.java:499) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.InactivityMonitor.stop(InactivityMonitor.java:113) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:64) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.WireFormatNegotiator.stop(WireFormatNegotiator.java:87) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.util.ServiceSupport.dispose(ServiceSupport.java:43) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.failover.FailoverTransport.handleTransportFailure(FailoverTransport.java:201) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.failover.FailoverTransport$3.onException(FailoverTransport.java:173) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.TransportFilter.onException(TransportFilter.java:99) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.WireFormatNegotiator.onException(WireFormatNegotiator.java:152) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:244) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:96) INFO | jvm 1 | 2010/02/23 11:04:14 | at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:189) INFO | jvm 1 | 2010/02/23 11:04:14 | at java.lang.Thread.run(Thread.java:619) ERROR | wrapper | 2010/02/23 11:04:14 | JVM exited unexpectedly. STATUS | wrapper | 2010/02/23 11:04:19 | Launching a JVM... INFO | jvm 2 | 2010/02/23 11:04:19 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org INFO | jvm 2 | 2010/02/23 11:04:19 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. INFO | jvm 2 | 2010/02/23 11:04:19 | INFO | jvm 2 | 2010/02/23 11:04:19 | Agent bootstrap using baseUrl: http://172.16.3.139:8080/agentServer/ INFO | jvm 2 | 2010/02/23 11:04:19 | Requesting fingerprintRequestUrl: http://172.16.3.139:8080/agentServer/GetFingerprint.action?hostName=bamboo-agent-65.private.atlassian.com INFO | jvm 2 | 2010/02/23 11:04:19 | 0 [WrapperSimpleAppMain] INFO org.apache.commons.httpclient.HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused INFO | jvm 2 | 2010/02/23 11:04:19 | 1 [WrapperSimpleAppMain] INFO org.apache.commons.httpclient.HttpMethodDirector - Retrying request INFO | jvm 2 | 2010/02/23 11:04:19 | 1 [WrapperSimpleAppMain] INFO org.apache.commons.httpclient.HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused INFO | jvm 2 | 2010/02/23 11:04:19 | 1 [WrapperSimpleAppMain] INFO org.apache.commons.httpclient.HttpMethodDirector - Retrying request INFO | jvm 2 | 2010/02/23 11:04:19 | 2 [WrapperSimpleAppMain] INFO org.apache.commons.httpclient.HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused INFO | jvm 2 | 2010/02/23 11:04:19 | 2 [WrapperSimpleAppMain] INFO org.apache.commons.httpclient.HttpMethodDirector - Retrying request INFO | jvm 2 | 2010/02/23 11:04:19 | Exiting due to fatal exception. INFO | jvm 2 | 2010/02/23 11:04:19 | java.net.ConnectException: Connection refused INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.socketConnect(Native Method) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.Socket.connect(Socket.java:525) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.Socket.connect(Socket.java:475) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.Socket.<init>(Socket.java:372) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.Socket.<init>(Socket.java:246) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) INFO | jvm 2 | 2010/02/23 11:04:19 | at com.atlassian.bamboo.agent.bootstrap.AgentContext.<init>(AgentContext.java:64) INFO | jvm 2 | 2010/02/23 11:04:19 | at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:81) INFO | jvm 2 | 2010/02/23 11:04:19 | at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:34) INFO | jvm 2 | 2010/02/23 11:04:19 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 2 | 2010/02/23 11:04:19 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) INFO | jvm 2 | 2010/02/23 11:04:19 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.lang.reflect.Method.invoke(Method.java:597) INFO | jvm 2 | 2010/02/23 11:04:19 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.lang.Thread.run(Thread.java:619) INFO | jvm 2 | 2010/02/23 11:04:19 | 4 [WrapperSimpleAppMain] FATAL com.atlassian.bamboo.agent.bootstrap.AgentBootstrap - Exiting due to fatal exception. INFO | jvm 2 | 2010/02/23 11:04:19 | java.net.ConnectException: Connection refused INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.socketConnect(Native Method) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) INFO | jvm 2 | 2010/02/23 11:04:19 | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) {noformat}

    Atlassian JIRA | 7 years ago | David Cheney [Atlassian]
    java.net.ConnectException: Connection refused

  1. michallos 1 times, last 6 days ago
  2. treefolk 2 times, last 2 days ago
  3. linxiaolong 18 times, last 4 weeks ago
  4. Kialandei 1 times, last 1 month ago
  5. DoktorDoener666 41 times, last 3 weeks ago
24 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

    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:430)
    6. java.net.Socket.connect(Socket.java:520)
    7. java.net.Socket.connect(Socket.java:470)
    8. java.net.Socket.<init>(Socket.java:367)
    9. java.net.Socket.<init>(Socket.java:240)
    9 frames
  3. HttpClient
    HttpClient.executeMethod
    1. org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
    2. org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121)
    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.atlassian.bamboo
    AgentClassLoader.findClass
    1. com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.findClass(AgentClassLoader.java:99)
    1 frame
  5. Java RT
    ClassLoader.loadClassInternal
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    3. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    3 frames
  6. ActiveMQ :: Core
    ActiveMQMessageConsumer.close
    1. org.apache.activemq.command.ConsumerInfo.createRemoveCommand(ConsumerInfo.java:267)
    2. org.apache.activemq.ActiveMQMessageConsumer.close(ActiveMQMessageConsumer.java:542)
    2 frames
  7. org.jencks.amqpool
    PooledSession.close
    1. org.jencks.amqpool.PooledSession.close(PooledSession.java:96)
    1 frame
  8. Lingo
    SingleThreadedRequestor.close
    1. org.logicblaze.lingo.jms.impl.OneWayRequestor.close(OneWayRequestor.java:81)
    2. org.logicblaze.lingo.jms.impl.SingleThreadedRequestor.close(SingleThreadedRequestor.java:83)
    2 frames
  9. com.atlassian.bamboo
    BambooMultiplexingRequestor.close
    1. com.atlassian.bamboo.lingo.BambooMultiplexingRequestor.close(BambooMultiplexingRequestor.java:49)
    1 frame
  10. Lingo
    JmsClientInterceptor.destroy
    1. org.logicblaze.lingo.jms.JmsClientInterceptor.destroy(JmsClientInterceptor.java:156)
    1 frame
  11. Spring Beans
    DefaultSingletonBeanRegistry.destroySingletons
    1. org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:146)
    2. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:344)
    3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:317)
    4. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:290)
    4 frames
  12. Spring Context
    AbstractApplicationContext.close
    1. org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:706)
    2. org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:684)
    3. org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:651)
    3 frames
  13. com.atlassian.bamboo
    AgentClassLoader.findClass
    1. com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.stop(RemoteAgent.java:110)
    2. com.atlassian.bamboo.agent.bootstrap.AgentRunner.stop(AgentRunner.java:38)
    3. com.atlassian.bamboo.agent.bootstrap.AgentContext.restart(AgentContext.java:112)
    4. com.atlassian.bamboo.agent.bootstrap.AgentClassLoader.findClass(AgentClassLoader.java:123)
    4 frames
  14. Java RT
    ClassLoader.loadClassInternal
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    3. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    3 frames
  15. ActiveMQ :: Broker
    ServiceSupport.stop
    1. org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:56)
    1 frame
  16. ActiveMQ :: Core
    TcpTransport.run
    1. org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:145)
    1 frame
  17. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:613)
    1 frame