Hi,
We are using ActiveMq in a master/slave configuration. When a failover of the
broker is triggered, some of the clients experience a connection drop and would
never recover back. On the client we see the below exceptions.
An problem has been detected with the JMS Connection.javax.jms.JMSException:
Cannot remove session from connection that had not been registered:
<connection-id>
at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
at
org.apache.activemq.ActiveMQConnection.onAsyncException(ActiveMQConnection.java:1967)
at
org.apache.activemq.ActiveMQConnection$3$1.run(ActiveMQConnection.java:1887)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
at java.lang.Thread.run(Thread.java:807)
Caused by: java.lang.IllegalStateException: Cannot remove session from
connection that had not been registered: ID: <connection-id>
at
org.apache.activemq.broker.TransportConnection.processRemoveSession(TransportConnection.java:683)
at
org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:74)
at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:329)
at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:184)
at
org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)
at
org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69)
at
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
at
org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:288)
at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
at
org.apache.activemq.transport.nio.NIOSSLTransport.doConsume(NIOSSLTransport.java:449)
at
org.apache.activemq.transport.nio.NIOSSLTransport.processCommand(NIOSSLTransport.java:288)
at
org.apache.activemq.transport.nio.NIOSSLTransport.serviceRead(NIOSSLTransport.java:203)
at
org.apache.activemq.transport.nio.NIOSSLTransport$1.onSelect(NIOSSLTransport.java:158)
at
org.apache.activemq.transport.nio.SelectorSelection.onSelect(SelectorSelection.java:94)
at
org.apache.activemq.transport.nio.SelectorWorker$1.run(SelectorWorker.java:119)
... 3 common frames omitted
Has anyone faced a similar issue and what might be the cause for such an error.
Regards,
Megaraj