activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mahadikar, Megaraj" <>
Subject JMS Exception : Cannot remove session from connection that had not been registered
Date Fri, 01 Mar 2019 05:00:26 GMT

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(
                at org.apache.activemq.ActiveMQConnection.onAsyncException(
                at org.apache.activemq.ActiveMQConnection$3$
                at java.util.concurrent.ThreadPoolExecutor.runWorker(
                at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.lang.IllegalStateException: Cannot remove session from connection that had
not been registered: ID: <connection-id>
                at org.apache.activemq.command.RemoveInfo.visit(
                at org.apache.activemq.transport.MutexTransport.onCommand(
                at org.apache.activemq.transport.TransportFilter.onCommand(
                at org.apache.activemq.transport.WireFormatNegotiator.onCommand(
                at org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(
                at org.apache.activemq.transport.TransportSupport.doConsume(
                at org.apache.activemq.transport.nio.NIOSSLTransport.doConsume(
                at org.apache.activemq.transport.nio.NIOSSLTransport.processCommand(
                at org.apache.activemq.transport.nio.NIOSSLTransport.serviceRead(
                at org.apache.activemq.transport.nio.NIOSSLTransport$1.onSelect(
                at org.apache.activemq.transport.nio.SelectorSelection.onSelect(
                at org.apache.activemq.transport.nio.SelectorWorker$
                ... 3 common frames omitted

Has anyone faced a similar issue and what might be the cause for such an error.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message