activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danielius Jurna (JIRA)" <>
Subject [jira] Created: (AMQ-1077) Bug in STOMP transport unsubscribe
Date Wed, 29 Nov 2006 12:58:03 GMT
Bug in STOMP transport unsubscribe

                 Key: AMQ-1077
             Project: ActiveMQ
          Issue Type: Bug
          Components: Transport
    Affects Versions: 4.0.2
         Environment: linux 2.6, java 1.5
            Reporter: Danielius Jurna
         Attachments: patch.txt

After several ubscribe/unsubscribe commands to activemq, subscribtions are not removed and
there's error log in the broker: 
java.lang.IllegalStateException: Cannot remove a consumer that had not been registered: ID:das-32775-1164773607925-3:1881:-1:2
        at org.apache.activemq.command.RemoveInfo.visit(
        at org.apache.activemq.transport.ResponseCorrelator.onCommand(
        at org.apache.activemq.transport.TransportFilter.onCommand(
        at org.apache.activemq.transport.InactivityMonitor.onCommand(
        at org.apache.activemq.transport.stomp.StompTransportFilter.sendToActiveMQ(
        at org.apache.activemq.transport.stomp.ProtocolConverter.sendToActiveMQ(
        at org.apache.activemq.transport.stomp.ProtocolConverter.onStompUnsubscribe(
        at org.apache.activemq.transport.stomp.ProtocolConverter.onStompCommad(
        at org.apache.activemq.transport.stomp.StompTransportFilter.onCommand(
        at org.apache.activemq.transport.TransportSupport.doConsume(

The problem is that there's internal map of subscriptions in ProtocolConverter class. On unsubscribe
command, subscription is not removed from this internal map. Attached patch (against
fixes this bug

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message