1 Reply Latest reply on Mar 13, 2009 12:36 PM by socallag

    Cannot remove a producer from a session that had not been registered

    sweet

      I am seeing the above message in my ActiveMQLogs. Can anyone throw any light on what it means.?

       

       

      The full trace is as follows

       

      ERROR Service                        - Async error occurred: java.lang.IllegalStateException: Cannot remove a producer from a session that had not been registered: 38f7a1c0-7059-445c-b2b3-1833718d6e6d:1

      java.lang.IllegalStateException: Cannot remove a producer from a session that had not been registered: 38f7a1c0-7059-445c-b2b3-1833718d6e6d:1

              at org.apache.activemq.broker.TransportConnection.processRemoveProducer(TransportConnection.java:518)

              at org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:66)

              at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:305)

              at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179)

              at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)

              at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:143)

              at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:206)

              at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)

              at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:203)

              at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:185)

              at java.lang.Thread.run(Thread.java:595)

        • 1. Re: Cannot remove a producer from a session that had not been registered
          socallag

          Hi,

           

          This exception is thrown as the session has either been removed from the ConnectionState or the ConnectionState has been reset prior to the producer associated with that session being removed.

          It may be that that one thread has removed the session before another one has tried to remove the producer associated with that session.

           

          Do you have any information on what was happening within your application when this exception was thrown?

          Is this exception thrown regularly, a testcase which reproduces this would help us to get to the bottom of the problem.

           

          Regards,

           

          Seán.