Return-Path: Delivered-To: apmail-geronimo-activemq-dev-archive@www.apache.org Received: (qmail 74424 invoked from network); 23 Jan 2007 14:31:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2007 14:31:42 -0000 Received: (qmail 10520 invoked by uid 500); 23 Jan 2007 14:31:48 -0000 Delivered-To: apmail-geronimo-activemq-dev-archive@geronimo.apache.org Received: (qmail 10506 invoked by uid 500); 23 Jan 2007 14:31:48 -0000 Mailing-List: contact activemq-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-dev@geronimo.apache.org Received: (qmail 10497 invoked by uid 99); 23 Jan 2007 14:31:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 06:31:48 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 06:31:41 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E45C17142D1 for ; Tue, 23 Jan 2007 06:31:19 -0800 (PST) Message-ID: <8586657.1169562679931.JavaMail.jira@brutus> Date: Tue, 23 Jan 2007 06:31:19 -0800 (PST) From: "Rob Davies (JIRA)" To: activemq-dev@geronimo.apache.org Subject: [jira] Resolved: (AMQ-1077) Bug in STOMP transport unsubscribe In-Reply-To: <30391421.1164805083112.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rob Davies resolved AMQ-1077. ----------------------------- Resolution: Fixed Fix Version/s: 4.2.0 resolved by SVN revision 499032 > Bug in STOMP transport unsubscribe > ---------------------------------- > > Key: AMQ-1077 > URL: https://issues.apache.org/activemq/browse/AMQ-1077 > Project: ActiveMQ > Issue Type: Bug > Components: Transport > Affects Versions: 4.0.2 > Environment: linux 2.6, java 1.5 > Reporter: Danielius Jurna > Assigned To: Rob Davies > Fix For: 4.2.0 > > 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.broker.AbstractConnection.processRemoveConsumer(AbstractConnection.java:551) > at org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:64) > at org.apache.activemq.broker.AbstractConnection.service(AbstractConnection.java:237) > at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:61) > at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:92) > at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67) > at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:123) > at org.apache.activemq.transport.stomp.StompTransportFilter.sendToActiveMQ(StompTransportFilter.java:70) > at org.apache.activemq.transport.stomp.ProtocolConverter.sendToActiveMQ(ProtocolConverter.java:112) > at org.apache.activemq.transport.stomp.ProtocolConverter.onStompUnsubscribe(ProtocolConverter.java:376) > at org.apache.activemq.transport.stomp.ProtocolConverter.onStompCommad(ProtocolConverter.java:144) > at org.apache.activemq.transport.stomp.StompTransportFilter.onCommand(StompTransportFilter.java:60) > at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:88) > at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:137) > at java.lang.Thread.run(Thread.java:595) > 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 ProtocolConverter.java) fixes this bug -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.