Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 5812 invoked from network); 9 Sep 2010 17:52:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Sep 2010 17:52:21 -0000 Received: (qmail 88317 invoked by uid 500); 9 Sep 2010 17:52:20 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 88285 invoked by uid 500); 9 Sep 2010 17:52:20 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 88277 invoked by uid 99); 9 Sep 2010 17:52:20 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Sep 2010 17:52:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Sep 2010 17:52:02 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o89HpeWF022701 for ; Thu, 9 Sep 2010 17:51:41 GMT Message-ID: <21792007.13231284054700416.JavaMail.jira@thor> Date: Thu, 9 Sep 2010 13:51:40 -0400 (EDT) From: "Lekan Omotayo (JIRA)" To: dev@activemq.apache.org Subject: [jira] Updated: (AMQ-1548) Mutlicast discovery with persistent topics leads to errors In-Reply-To: <19261040.1200433603705.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lekan Omotayo updated AMQ-1548: ------------------------------- Attachment: log.txt > Mutlicast discovery with persistent topics leads to errors > ---------------------------------------------------------- > > Key: AMQ-1548 > URL: https://issues.apache.org/activemq/browse/AMQ-1548 > Project: ActiveMQ > Issue Type: Bug > Components: Broker, Connector > Affects Versions: 5.0.0 > Environment: 2 Ubuntu machines running virualized named activemq1 and activemq2 set up for multicast discovery. Broker names are set to be the same as the host name > Reporter: Jeff Ward > Fix For: NEEDS_REVIEWED > > Attachments: activemq-broker.xml, activemq-broker2.xml, jms configuration.txt, log.txt > > > After bringing the brokers up and down a few times, I'll get the following errors: > INFO DemandForwardingBridge - Network connection between vm://activemq2#0 and tcp://activemq1/192.168.2.129:61616(activemq1) has been established. > ERROR Service - Async error occurred: javax.jms.JMSException: Durable consumer is in use for client: NC_activemq1_inboundactivemq2 and subscriptionName: activemq2_fof > javax.jms.JMSException: Durable consumer is in use for client: NC_activemq1_inboundactivemq2 and subscriptionName: activemq2_fof > at org.apache.activemq.broker.region.TopicRegion.addConsumer(TopicRegion.java:75) > at org.apache.activemq.broker.region.RegionBroker.addConsumer(RegionBroker.java:338) > at org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:85) > at org.apache.activemq.advisory.AdvisoryBroker.addConsumer(AdvisoryBroker.java:80) > at org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:85) > at org.apache.activemq.broker.MutableBrokerFilter.addConsumer(MutableBrokerFilter.java:95) > at org.apache.activemq.broker.TransportConnection.processAddConsumer(TransportConnection.java:525) > at org.apache.activemq.command.ConsumerInfo.visit(ConsumerInfo.java:334) > at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:281) > at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:178) > at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100) > at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67) > at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:202) > at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98) > at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36) > INFO DemandForwardingBridge - Network connection between vm://activemq2#0 and tcp://activemq1/192.168.2.129:61616 shutdown due to a local error: javax.jms.JMSException: Durable consumer is in use for client: NC_activemq1_inboundactivemq2 and subscriptionName: activemq2_fof > INFO TransportConnector - Connector vm://activemq2 Stopped > INFO DemandForwardingBridge - activemq2 bridge to activemq1 stopped > My two servers are activemq1 and activemq2. The queue is specified in the activemq.xml using: > > > > Through debugging, I tracked this down to a race condition between the listening port (61616) and the created port (incremental) creating the connection. In the one case, it creates a durable topic, in the other it doesn't (I can't remember which is which). Regardless, when the connection fails (or is shutdown) the durable topic isn't stopped, and thus the reconnection fails. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.