From users-return-19270-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Wed Jun 03 03:13:53 2009 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 27293 invoked from network); 3 Jun 2009 03:13:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jun 2009 03:13:53 -0000 Received: (qmail 91185 invoked by uid 500); 3 Jun 2009 03:14:04 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 91118 invoked by uid 500); 3 Jun 2009 03:14:04 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 91108 invoked by uid 99); 3 Jun 2009 03:14:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jun 2009 03:14:04 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jun 2009 03:13:55 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MBguz-0006Zu-NN for users@activemq.apache.org; Tue, 02 Jun 2009 20:13:33 -0700 Message-ID: <23844659.post@talk.nabble.com> Date: Tue, 2 Jun 2009 20:13:33 -0700 (PDT) From: rstephens To: users@activemq.apache.org Subject: JDBC Master/Slave Problems MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_160298_17413069.1243998813720" X-Nabble-From: rstephens@previsor.com X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_160298_17413069.1243998813720 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Trying to test AMQ 5.2 with JDBC master slave... I am running two brokers on my dev machine, with separate ports...configs attached... http://www.nabble.com/file/p23844659/broker1.xml broker1.xml http://www.nabble.com/file/p23844659/broker2.xml broker2.xml I am testing with the example producer and consumer...url: failover:(tcp://localhost:61616,tcp://localhost:61617) I see the first broker start...I start the second one, and it waits for db lock... After the producer and consumer process ~500 msgs, I "kill" the first broker (ctrl-c) and see the second broker startup... I see more messages from producer/consumer after failover connect to broker2, but I get many errors like: 2009-06-02 22:46:23,619 [127.0.0.1:62897] ERROR Service - Async error occurred: javax.jms.JMSException: Unmatched acknowledege: MessageAck {commandId = 900, responseRequired = false, ackType = 2, consumerId = ID:rstephensvista-62872-1243997152219-0:0:1:1, firstMessageId = ID:rstephensvista-62880-1243997174981-0:0:1:1:895, lastMessageId = ID:rstephensvista-62880-1243997174981-0:0:1:1:895, destination = queue://TEST.FOO, transactionId = null, messageCount = 1}; Could not find Message-ID ID:rstephensvista-62880-1243997174981-0:0:1:1:895 in dispatched-list (start of ack) javax.jms.JMSException: Unmatched acknowledege: MessageAck {commandId = 900, responseRequired = false, ackType = 2, consumerId = ID:rstephensvista-62872-1243997152219-0:0:1:1, firstMessageId = ID:rstephensvista-62880-1243997174981-0:0:1:1:895, lastMessageId = ID:rstephensvista-62880-1243997174981-0:0:1:1:895, destination = queue://TEST.FOO, transactionId = null, messageCount = 1}; Could not find Message-ID ID:rstephensvista-62880-1243997174981-0:0:1:1:895 in dispatched-list (start of ack) at org.apache.activemq.broker.region.PrefetchSubscription.assertAckMatchesDispatched(PrefetchSubscription.java:438) at org.apache.activemq.broker.region.PrefetchSubscription.acknowledge(PrefetchSubscription.java:188) at org.apache.activemq.broker.region.AbstractRegion.acknowledge(AbstractRegion.java:373) at org.apache.activemq.broker.region.RegionBroker.acknowledge(RegionBroker.java:462) at org.apache.activemq.broker.TransactionBroker.acknowledge(TransactionBroker.java:194) at org.apache.activemq.broker.BrokerFilter.acknowledge(BrokerFilter.java:74) at org.apache.activemq.broker.BrokerFilter.acknowledge(BrokerFilter.java:74) at org.apache.activemq.broker.MutableBrokerFilter.acknowledge(MutableBrokerFilter.java:85) at org.apache.activemq.broker.TransportConnection.processMessageAck(TransportConnection.java:456) at org.apache.activemq.command.MessageAck.visit(MessageAck.java:205) 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:619) I also get JMS exceptions con consumer... Thoughts? -- View this message in context: http://www.nabble.com/JDBC-Master-Slave-Problems-tp23844659p23844659.html Sent from the ActiveMQ - User mailing list archive at Nabble.com. ------=_Part_160298_17413069.1243998813720--