activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravikiran <mravikira...@rediffmail.com>
Subject Activemq broker failover doesn't work
Date Wed, 13 Sep 2006 09:55:45 GMT

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..


-- 
View this message in context: http://www.nabble.com/Activemq-broker-failover-doesn%27t-work-tf2264108.html#a6282368
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message