java.net.ConnectException: Connection refused

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Atlassian JIRA by Adrian Hempel [Atlassian], 1 year ago
Connection refused
via Google Groups by Gokulal, 5 months ago
via Atlassian JIRA by David Cheney [Atlassian], 1 year ago
Connection refused
via Mirth Project by Peter Scholz, 1 year ago
Connection refused
via Oracle Community by user13684468, 1 year ago
Connection refused
via Oracle Community by gmilitel - oracle, 1 year ago
Connection refused
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.(Socket.java:367)
at java.net.Socket.(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 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 com.atlassian.bamboo.lingo.BambooMultiplexingRequestor.close(BambooMultiplexingRequestor.java:49)
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.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:706)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:684)
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 java.lang.Thread.run(Thread.java:613)

Users with the same issue

142 times, 2 days ago
8 times, 3 days ago
552 times, 3 days ago
11 times, 6 days ago
26943 times, 6 days ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.