activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eta <e...@ultracode.com>
Subject Async error?
Date Tue, 31 Jul 2007 07:56:46 GMT

I have a two-broker network of brokers, and I have clients that use
Spring+Jencks+Geronimo TM.  I started up the two brokers, then sent 2K
messages to a queue (while consumers were active) and got the following
error on the AMQ console: 

2007-07-31 00:40:33,368 [Thread-5       ] INFO  DemandForwardingBridge        
- Network connection between vm://broker1#0 and
tcp://chi06.kadoink.com/192.168.5.25:61616(broker2) has been established.
2007-07-31 00:50:56,150 [.168.5.23:56245] ERROR Service                       
- Async error occurred: javax.transaction.xa.XAException: Transaction
'XID:1197822575:99020000000000004a07b12e7f000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000:01000000000000004a07b12e7f000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
has not been started.
javax.transaction.xa.XAException: Transaction
'XID:1197822575:99020000000000004a07b12e7f000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000:01000000000000004a07b12e7f000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
has not been started.
        at
org.apache.activemq.broker.TransactionBroker.getTransaction(TransactionBroker.java:263)
        at
org.apache.activemq.broker.TransactionBroker.acknowledge(TransactionBroker.java:186)
        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:88)
        at
org.apache.activemq.broker.TransportConnection.processMessageAck(TransportConnection.java:488)
        at org.apache.activemq.command.MessageAck.visit(MessageAck.java:179)
        at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:283)
        at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:188)
        at
org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:65)
        at
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:133)
        at
org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:126)
        at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:85)
        at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:137)
        at java.lang.Thread.run(Thread.java:619)

On one of the clients, I see the following stack dump, and message delivery
comes to a halt:
2007-07-31 00:50:56,199 [pool-1-thread-1] WARN Transaction - Error ending
association for XAResource
org.apache.geronimo.transaction.manager.WrapperNamedXAResource@366412da;
transaction will roll back. XA error code: -7
javax.transaction.xa.XAException: The connection is already closed
        at
org.apache.activemq.TransactionContext.toXAException(TransactionContext.java:619)
        at
org.apache.activemq.TransactionContext.setXid(TransactionContext.java:556)
        at
org.apache.activemq.TransactionContext.end(TransactionContext.java:339)
        at
org.apache.activemq.ra.LocalAndXATransaction.end(LocalAndXATransaction.java:90)
        at
org.apache.geronimo.transaction.manager.WrapperNamedXAResource.end(WrapperNamedXAResource.java:51)
        at
org.apache.geronimo.transaction.manager.TransactionImpl.endResources(TransactionImpl.java:566)
        at
org.apache.geronimo.transaction.manager.TransactionImpl.endResources(TransactionImpl.java:545)
        at
org.apache.geronimo.transaction.manager.TransactionImpl.beforePrepare(TransactionImpl.java:400)
        at
org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:256)
        at
org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:264)
        at org.jencks.XAEndpoint.afterDelivery(XAEndpoint.java:105)
        at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.afterDelivery(MessageEndpointProxy.java:126)
        at
org.apache.activemq.ra.MessageEndpointProxy.afterDelivery(MessageEndpointProxy.java:65)
        at
org.apache.activemq.ra.ServerSessionImpl.afterDelivery(ServerSessionImpl.java:216)
        at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:827)
        at
org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:165)
        at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:290)
        at
org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.activemq.ConnectionClosedException: The connection is
already closed
        at
org.apache.activemq.ActiveMQConnection.checkClosed(ActiveMQConnection.java:1293)
        at
org.apache.activemq.ActiveMQConnection.checkClosedOrFailed(ActiveMQConnection.java:1280)
        at
org.apache.activemq.TransactionContext.setXid(TransactionContext.java:553)
        ... 19 more

Could this be something I'm doing wrong or is it more likely an AMQ bug? 
This build is from svn last week.

Tnx,
Eric
-- 
View this message in context: http://www.nabble.com/Async-error--tf4191454s2354.html#a11919724
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message