activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpederzolli <jpederzo...@gmail.com>
Subject Re: AMQ 3.2/Spring/Jencks/POJO and XA Transactions
Date Fri, 24 Mar 2006 21:52:03 GMT

I tried AMQ 4.0RC1 and had the following results:

throwing a runtiime exception in onMessage causes the following...

[WARN] 2006-03-24 14:41:09,180  - Transaction (TransactionImpl.java:526)-
Error ending association for XAResource
org.apache.geronimo.transaction.manager.WrapperNamedXAResource@16292a4;
transaction will roll back
javax.transaction.xa.XAException: The connection is already closed
	at
org.apache.activemq.TransactionContext.toXAException(TransactionContext.java:589)
	at
org.apache.activemq.TransactionContext.setXid(TransactionContext.java:554)
	at org.apache.activemq.TransactionContext.end(TransactionContext.java:327)
	at
org.apache.activemq.ra.LocalAndXATransaction.end(LocalAndXATransaction.java:89)
	at
org.apache.geronimo.transaction.manager.WrapperNamedXAResource.end(WrapperNamedXAResource.java:51)
	at
org.apache.geronimo.transaction.manager.TransactionImpl.endResources(TransactionImpl.java:524)
	at
org.apache.geronimo.transaction.manager.TransactionImpl.endResources(TransactionImpl.java:503)
	at
org.apache.geronimo.transaction.manager.TransactionImpl.rollback(TransactionImpl.java:444)
	at
org.apache.geronimo.transaction.manager.TransactionManagerImpl.rollback(TransactionManagerImpl.java:155)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.isRolledback(InheritableTransactionContext.java:280)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.complete(InheritableTransactionContext.java:168)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.rollback(InheritableTransactionContext.java:149)
	at
org.apache.geronimo.transaction.context.GeronimoTransactionManager.rollback(GeronimoTransactionManager.java:100)
	at
org.apache.geronimo.transaction.context.GeronimoTransactionDelegate.rollback(GeronimoTransactionDelegate.java:74)
	at org.jencks.XAEndpoint.release(XAEndpoint.java:133)
	at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointDead.enter(MessageEndpointProxy.java:140)
	at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointState.transition(MessageEndpointProxy.java:98)
	at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.release(MessageEndpointProxy.java:133)
	at
org.apache.activemq.ra.MessageEndpointProxy.release(MessageEndpointProxy.java:68)
	at
org.apache.activemq.ra.ServerSessionImpl.close(ServerSessionImpl.java:250)
	at
org.apache.activemq.ra.ServerSessionPoolImpl.removeFromPool(ServerSessionPoolImpl.java:180)
	at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:177)
	at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
	at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
	at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.activemq.ConnectionClosedException: The connection is
already closed
	at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1104)
	at
org.apache.activemq.TransactionContext.setXid(TransactionContext.java:550)
	... 23 more
[DEBUG] 2006-03-24 14:41:09,196  -
org.apache.activemq.transport.WireFormatNegotiator
(WireFormatNegotiator.java:85)- Received WireFormat: WireFormatInfo {
version=1, properties={StackTraceEnabled=true, TightEncodingEnabled=true,
TcpNoDelayEnabled=true, SizePrefixDisabled=false,
MaxInactivityDuration=30000, CacheEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}
[DEBUG] 2006-03-24 14:41:09,196  -
activemq.broker.region.Queue.transactionQueue (Queue.java:398)- No
subscriptions registered, will not dispatch message at this time.
[DEBUG] 2006-03-24 14:41:09,196  -
org.apache.activemq.transport.WireFormatNegotiator
(WireFormatNegotiator.java:85)- Received WireFormat: WireFormatInfo {
version=1, properties={StackTraceEnabled=true, TightEncodingEnabled=true,
TcpNoDelayEnabled=true, SizePrefixDisabled=false,
MaxInactivityDuration=30000, CacheEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}
[DEBUG] 2006-03-24 14:41:09,196  -
org.apache.activemq.transport.WireFormatNegotiator
(WireFormatNegotiator.java:92)- tcp:///127.0.0.1:2676 before negotiation:
OpenWireFormat{version=1, cacheEnabled=false, stackTraceEnabled=false,
tightEncodingEnabled=false, sizePrefixDisabled=false}
[DEBUG] 2006-03-24 14:41:09,196  - org.apache.activemq.TransactionContext
(TransactionContext.java:384)- Rollback:
[globalId=500000005748415420444f2057452043414c4c2049543f0000000000000000000000000000000000000,branchId=100000005748415420444f2057452043414c4c2049543f0000000000000000000000000000000000000]
[DEBUG] 2006-03-24 14:41:09,196  -
org.apache.activemq.transport.WireFormatNegotiator
(WireFormatNegotiator.java:92)- tcp://localhost/127.0.0.1:61616 before
negotiation: OpenWireFormat{version=1, cacheEnabled=false,
stackTraceEnabled=false, tightEncodingEnabled=false,
sizePrefixDisabled=false}
[DEBUG] 2006-03-24 14:41:09,196  -
apache.geronimo.connector.outbound.GeronimoConnectionEventListener
(GeronimoConnectionEventListener.java:64)- connectionClosed called with
org.apache.activemq.ra.ManagedConnectionProxy@1c480e8
[DEBUG] 2006-03-24 14:41:09,196  -
org.apache.activemq.transport.WireFormatNegotiator
(WireFormatNegotiator.java:103)- tcp:///127.0.0.1:2676 after negotiation:
OpenWireFormat{version=1, cacheEnabled=true, stackTraceEnabled=true,
tightEncodingEnabled=true, sizePrefixDisabled=false}
[ERROR] 2006-03-24 14:41:09,196  - Transaction (TransactionImpl.java:544)-
Unexpected exception rolling back
org.apache.geronimo.transaction.manager.WrapperNamedXAResource@16292a4;
continuing with rollback
javax.transaction.xa.XAException: The connection is already closed
	at
org.apache.activemq.TransactionContext.toXAException(TransactionContext.java:589)
	at
org.apache.activemq.TransactionContext.rollback(TransactionContext.java:414)
	at
org.apache.activemq.ra.LocalAndXATransaction.rollback(LocalAndXATransaction.java:126)
	at
org.apache.geronimo.transaction.manager.WrapperNamedXAResource.rollback(WrapperNamedXAResource.java:78)
	at
org.apache.geronimo.transaction.manager.TransactionImpl.rollbackResources(TransactionImpl.java:542)
	at
org.apache.geronimo.transaction.manager.TransactionImpl.rollback(TransactionImpl.java:446)
	at
org.apache.geronimo.transaction.manager.TransactionManagerImpl.rollback(TransactionManagerImpl.java:155)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.isRolledback(InheritableTransactionContext.java:280)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.complete(InheritableTransactionContext.java:168)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.rollback(InheritableTransactionContext.java:149)
	at
org.apache.geronimo.transaction.context.GeronimoTransactionManager.rollback(GeronimoTransactionManager.java:100)
	at
org.apache.geronimo.transaction.context.GeronimoTransactionDelegate.rollback(GeronimoTransactionDelegate.java:74)
	at org.jencks.XAEndpoint.release(XAEndpoint.java:133)
	at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointDead.enter(MessageEndpointProxy.java:140)
	at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointState.transition(MessageEndpointProxy.java:98)
	at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.release(MessageEndpointProxy.java:133)
	at
org.apache.activemq.ra.MessageEndpointProxy.release(MessageEndpointProxy.java:68)
	at
org.apache.activemq.ra.ServerSessionImpl.close(ServerSessionImpl.java:250)
	at
org.apache.activemq.ra.ServerSessionPoolImpl.removeFromPool(ServerSessionPoolImpl.java:180)
	at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:177)
	at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
	at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
	at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.activemq.ConnectionClosedException: The connection is
already closed
	at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1104)
	at
org.apache.activemq.TransactionContext.rollback(TransactionContext.java:403)
	... 21 more
[DEBUG] 2006-03-24 14:41:09,196  -
org.apache.activemq.transport.WireFormatNegotiator
(WireFormatNegotiator.java:103)- tcp://localhost/127.0.0.1:61616 after
negotiation: OpenWireFormat{version=1, cacheEnabled=true,
stackTraceEnabled=true, tightEncodingEnabled=true, sizePrefixDisabled=false}
[DEBUG] 2006-03-24 14:41:09,211  -
apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor
(AbstractSinglePoolConnectionInterceptor.java:92)- returning
connectionorg.apache.activemq.ra.ManagedConnectionProxy@1c480e8
[ERROR] 2006-03-24 14:41:09,227  -
apache.geronimo.transaction.context.AbstractTransactionContext
(InheritableTransactionContext.java:308)- Unable to roll back transaction
java.lang.IllegalStateException: Status is STATUS_NO_TRANSACTION
	at
org.apache.geronimo.transaction.manager.TransactionImpl.rollback(TransactionImpl.java:438)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.rollbackAndThrow(InheritableTransactionContext.java:305)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.complete(InheritableTransactionContext.java:196)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.rollback(InheritableTransactionContext.java:149)
	at
org.apache.geronimo.transaction.context.GeronimoTransactionManager.rollback(GeronimoTransactionManager.java:100)
	at
org.apache.geronimo.transaction.context.GeronimoTransactionDelegate.rollback(GeronimoTransactionDelegate.java:74)
	at org.jencks.XAEndpoint.release(XAEndpoint.java:133)
	at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointDead.enter(MessageEndpointProxy.java:140)
	at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointState.transition(MessageEndpointProxy.java:98)
	at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.release(MessageEndpointProxy.java:133)
	at
org.apache.activemq.ra.MessageEndpointProxy.release(MessageEndpointProxy.java:68)
	at
org.apache.activemq.ra.ServerSessionImpl.close(ServerSessionImpl.java:250)
	at
org.apache.activemq.ra.ServerSessionPoolImpl.removeFromPool(ServerSessionPoolImpl.java:180)
	at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:177)
	at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
	at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
	at java.lang.Thread.run(Thread.java:595)
[WARN] 2006-03-24 14:41:09,258  - org.jencks.XAEndpoint
(XAEndpoint.java:136)- Failed to rollback transaction:
javax.transaction.SystemException
javax.transaction.SystemException
	at
org.apache.geronimo.transaction.manager.TransactionImpl.rollbackResources(TransactionImpl.java:546)
	at
org.apache.geronimo.transaction.manager.TransactionImpl.rollback(TransactionImpl.java:446)
	at
org.apache.geronimo.transaction.manager.TransactionManagerImpl.rollback(TransactionManagerImpl.java:155)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.isRolledback(InheritableTransactionContext.java:280)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.complete(InheritableTransactionContext.java:168)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.rollback(InheritableTransactionContext.java:149)
	at
org.apache.geronimo.transaction.context.GeronimoTransactionManager.rollback(GeronimoTransactionManager.java:100)
	at
org.apache.geronimo.transaction.context.GeronimoTransactionDelegate.rollback(GeronimoTransactionDelegate.java:74)
	at org.jencks.XAEndpoint.release(XAEndpoint.java:133)
	at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointDead.enter(MessageEndpointProxy.java:140)
	at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointState.transition(MessageEndpointProxy.java:98)
	at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.release(MessageEndpointProxy.java:133)
	at
org.apache.activemq.ra.MessageEndpointProxy.release(MessageEndpointProxy.java:68)
	at
org.apache.activemq.ra.ServerSessionImpl.close(ServerSessionImpl.java:250)
	at
org.apache.activemq.ra.ServerSessionPoolImpl.removeFromPool(ServerSessionPoolImpl.java:180)
	at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:177)
	at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
	at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
	at java.lang.Thread.run(Thread.java:595)
--
View this message in context: http://www.nabble.com/AMQ-3.2-Spring-Jencks-POJO-and-XA-Transactions-t1337311.html#a3579911
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message