You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by vkcse <va...@yahoo.com> on 2014/02/05 10:45:55 UTC

ActiveMQ Connection failed when network failed

Hi,

I am using ActiveMQ 5.8. I have consumer app which is running on one server1
and the ActiveMQ is running on another server2 now what happen is because of
some network problem ActiveMQ is not available to consumer app and getting
below error

*javax.jms.JMSException: Could not connect to broker URL:
tcp://server2:61616. Reason: java.net.ConnectException: Connection timed
out: connect
	at
org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:308)
*

and through jconsole I connected to ActiveMQ in server2 and I saw
ConsumerCount 1 for queue even there is no consumer i.e consumer
disconnected because of network problem.

After establishing network between server1(consumer app) and
server2(ActiveMQ) I am getting below error

*javax.jms.InvalidClientIDException: Broker: localhost - Client:
consumerClient already connected from tcp://10.30.31.41:54251*

After restarting ActiveMQ it came to normal. Is there anyway to avoid this
case without restarting ActiveMQ?

Thanks,
Vamsi.




--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Connection-failed-when-network-failed-tp4677455.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ Connection failed when network failed

Posted by Rodrigo Ramos <cr...@gmail.com>.
You should use a sniffer such as tcpdump or whireshark, in order to know
all about the packages transmitted between two points.

Good look


2014-02-06 Christian Posta <ch...@gmail.com>:

> Odd... seems like the connection context was not cleaned up correctly
> (and/or) activemq didn't notice the connection drop somehow.... can
> you try a newer version to see if it also behaves like this? best to
> try a 5.10-SNAPSHOT
>
> On Wed, Feb 5, 2014 at 2:45 AM, vkcse <va...@yahoo.com> wrote:
> > Hi,
> >
> > I am using ActiveMQ 5.8. I have consumer app which is running on one
> server1
> > and the ActiveMQ is running on another server2 now what happen is
> because of
> > some network problem ActiveMQ is not available to consumer app and
> getting
> > below error
> >
> > *javax.jms.JMSException: Could not connect to broker URL:
> > tcp://server2:61616. Reason: java.net.ConnectException: Connection timed
> > out: connect
> >         at
> >
> org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:308)
> > *
> >
> > and through jconsole I connected to ActiveMQ in server2 and I saw
> > ConsumerCount 1 for queue even there is no consumer i.e consumer
> > disconnected because of network problem.
> >
> > After establishing network between server1(consumer app) and
> > server2(ActiveMQ) I am getting below error
> >
> > *javax.jms.InvalidClientIDException: Broker: localhost - Client:
> > consumerClient already connected from tcp://10.30.31.41:54251*
> >
> > After restarting ActiveMQ it came to normal. Is there anyway to avoid
> this
> > case without restarting ActiveMQ?
> >
> > Thanks,
> > Vamsi.
> >
> >
> >
> >
> > --
> > View this message in context:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-Connection-failed-when-network-failed-tp4677455.html
> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
>
> --
> Christian Posta
> http://www.christianposta.com/blog
> twitter: @christianposta
>

Re: ActiveMQ Connection failed when network failed

Posted by Christian Posta <ch...@gmail.com>.
Odd... seems like the connection context was not cleaned up correctly
(and/or) activemq didn't notice the connection drop somehow.... can
you try a newer version to see if it also behaves like this? best to
try a 5.10-SNAPSHOT

On Wed, Feb 5, 2014 at 2:45 AM, vkcse <va...@yahoo.com> wrote:
> Hi,
>
> I am using ActiveMQ 5.8. I have consumer app which is running on one server1
> and the ActiveMQ is running on another server2 now what happen is because of
> some network problem ActiveMQ is not available to consumer app and getting
> below error
>
> *javax.jms.JMSException: Could not connect to broker URL:
> tcp://server2:61616. Reason: java.net.ConnectException: Connection timed
> out: connect
>         at
> org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:308)
> *
>
> and through jconsole I connected to ActiveMQ in server2 and I saw
> ConsumerCount 1 for queue even there is no consumer i.e consumer
> disconnected because of network problem.
>
> After establishing network between server1(consumer app) and
> server2(ActiveMQ) I am getting below error
>
> *javax.jms.InvalidClientIDException: Broker: localhost - Client:
> consumerClient already connected from tcp://10.30.31.41:54251*
>
> After restarting ActiveMQ it came to normal. Is there anyway to avoid this
> case without restarting ActiveMQ?
>
> Thanks,
> Vamsi.
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Connection-failed-when-network-failed-tp4677455.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta