Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 92466 invoked from network); 14 Sep 2006 07:19:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2006 07:19:49 -0000 Received: (qmail 31345 invoked by uid 500); 14 Sep 2006 07:19:48 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 31157 invoked by uid 500); 14 Sep 2006 07:19:48 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 31142 invoked by uid 99); 14 Sep 2006 07:19:48 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 00:19:48 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=aco@exist.com; spf=permerror X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: error (idunn.apache.osuosl.org: domain exist.com from 64.14.253.182 cause and error) Received: from ([64.14.253.182:9167] helo=mail.exist.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 99/51-02910-64209054 for ; Thu, 14 Sep 2006 00:19:45 -0700 Received: from [192.168.241.117] ([58.71.14.245]) (authenticated bits=0) by mail.exist.com (8.12.11/8.12.11) with ESMTP id k8E7ClBP022126 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 14 Sep 2006 00:12:51 -0700 Message-ID: <4509023C.1090808@exist.com> Date: Thu, 14 Sep 2006 15:18:20 +0800 From: Adrian Co User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: activemq-users@geronimo.apache.org Subject: Re: Activemq broker failover doesn't work References: <6282368.post@talk.nabble.com> In-Reply-To: <6282368.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Wonder if you're running into this problem: https://issues.apache.org/activemq/browse/AMQ-915 Could you try using the latest version of ActiveMQ? ravikiran wrote: > Hi, > > I'm trying to do single JBOSS instance, single broker configuration.. I was > succesful in both standalone, & embeded.. Below test was with standalone. > > a) MDB deployed > listening - Queue.. > Transaction - Container > Acknowledgment - Auto > > when i kill broker before MDB's onMessage() returns, N then restart the > broker.. It throws following Exception at MDB side > > > 4:20:56,717 WARN [TransactionImpl] XAException: > tx=TransactionImpl:XidImpl[FormatId=257, > GlobalId=gbe4.bangalore.corp.yahoo.com/34, BranchQual=, localId=34] > errorCode=XA_UNKNOWN(0) > javax.transaction.xa.XAException: Transaction > 'XID:257:676265342e62616e67616c6f72652e636f72702e7961686f6f2e636f6d2f3334:31' > has not been started. > at > org.apache.activemq.TransactionContext.toXAException(TransactionContext.java:585) > at > org.apache.activemq.TransactionContext.commit(TransactionContext.java:453) > at > org.apache.activemq.ra.LocalAndXATransaction.commit(LocalAndXATransaction.java:84) > at > org.jboss.tm.TransactionImpl$Resource.commit(TransactionImpl.java:2253) > at > org.jboss.tm.TransactionImpl.commitResources(TransactionImpl.java:1784) > at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:340) > at org.jboss.tm.TxManager.commit(TxManager.java:240) > at > org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.endTransaction(MessageEndpointInterceptor.java:423) > at > org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.finish(MessageEndpointInterceptor.java:296) > at > org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.after(MessageEndpointInterceptor.java:216) > at > org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.invoke(MessageEndpointInterceptor.java:128) > at > org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74) > at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100) > at $Proxy67.afterDelivery(Unknown Source) > at > org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.afterDelivery(MessageEndpointProxy.java:125) > at > org.apache.activemq.ra.MessageEndpointProxy.afterDelivery(MessageEndpointProxy.java:64) > at > org.apache.activemq.ra.ServerSessionImpl.afterDelivery(ServerSessionImpl.java:214) > at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:751) > at > org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:163) > at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204) > at > org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275) > at > EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743) > at java.lang.Thread.run(Thread.java:595) > > 14:21:16,633 INFO [ServerSessionImpl:7] Endpoint failed to process message. > Reason: java.lang.NullPointerException > > > At brokers end... > > INFO Service - Sync error occurred: > javax.transaction.xa.XAException: Transaction > 'XID:257:676265342e62616e67616c6f72652e636f72702e7961686f6f2e636f6d2f3430:31' > has not been started. > javax.transaction.xa.XAException: Transaction > 'XID:257:676265342e62616e67616c6f72652e636f72702e7961686f6f2e636f6d2f3430:31' > has not been started. > at > org.apache.activemq.broker.TransactionBroker.getTransaction(TransactionBroker.java:225) > at > org.apache.activemq.broker.TransactionBroker.commitTransaction(TransactionBroker.java:152) > at > org.apache.activemq.broker.BrokerFilter.commitTransaction(BrokerFilter.java:81) > at > org.apache.activemq.broker.BrokerFilter.commitTransaction(BrokerFilter.java:81) > at > org.apache.activemq.broker.MutableBrokerFilter.commitTransaction(MutableBrokerFilter.java:94) > at > org.apache.activemq.broker.AbstractConnection.processCommitTransactionOnePhase(AbstractConnection.java:302) > at > org.apache.activemq.command.TransactionInfo.visit(TransactionInfo.java:98) > at > org.apache.activemq.broker.AbstractConnection.service(AbstractConnection.java:201) > at > org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:62) > at > org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:97) > at > org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:63) > at > org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:114) > at > org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122) > at > org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87) > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:143) > at java.lang.Thread.run(Thread.java:595) > > > Further messages are not processed properly till i restart the JBOSS > server.. > > Any thoughts? > > Also, I want to acheive clustered JBOSS/ ActiveMQ set up with a) Load > distrubution b) High availability.. Please share your experience/thoughts in > this regard. > > Regards, > Ravikiran > > P.S : I'm newbee to JBOSS/ActiveMQ world.. > > >