activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khandelwalanuj <khandelwal.anu...@gmail.com>
Subject "java.net.ConnectException: Connection refused" in client logs
Date Mon, 22 Dec 2014 15:55:52 GMT
Hi,

We have seen this warning lot of time in client side logs.
"java.net.ConnectException: Connection refused"

As we can see in stacktrace that this is not generated from ActiveMQ code or
any JMSException. This is coming from lower layer.

Can someone help me to understand this exception? When can cause this? 


[20141222 09:53:34.308 EST (ActiveMQ Task-3)
org.apache.activemq.ActiveMQConnection#onAsyncException 2010 DEBUG] - Async
exception with no exception listener: java.net.ConnectException: Connection
refused 
*java.net.ConnectException: Connection refused*
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
        at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at
org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
        at
org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
        at
org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
        at
org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
        at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
        at
org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
        at
org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:1017)
        at
org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:148)
        at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
        at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)






--
View this message in context: http://activemq.2283324.n4.nabble.com/java-net-ConnectException-Connection-refused-in-client-logs-tp4689178.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message