activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: "java.net.ConnectException: Connection refused" in client logs
Date Mon, 22 Dec 2014 16:14:18 GMT
On 12/22/2014 10:55 AM, khandelwalanuj wrote:
> 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.
>
Connection refused indicates that there is not broker or no route to 
that host so the client can't connect.  Ensure that you have a valid URI 
and that the host name maps to correct IP

-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message