Bugs item #606942, was opened at 2002-09-09 20:24
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=606942&group_id=22866

Category: JBossServer
Group: v3.0 Rabbit Hole
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Bob Cotton (bcotton969)
Assigned to: David Jencks (d_jencks)
Summary: No TransRolledbackEx upon commit failure

Initial Comment:
Summary: TxInterceptorCMT.runWithTransactions() in a
transaction context of REQUIRED, will not throw a
TransactionRolledbackException upon transaction commit
failure.

I have a JCA adaptor participating in a two-phase
transaction. This JCA resource, upon commit, is failing
due to a write-write conflict. 

This JCA resource is throwing a XAException, which is
caught and handled by TxCapsule, who throws a
RollbackException. 

My calling client is expecting to receive a
TransactionRolledbackException, but this is not happening.

Why is the client not recieving the proper exception?

Here are the stacks:



2002-09-06 22:12:05,519 WARN  [org.jboss.tm.TxCapsule]
(RMI TCP Connection(4)-192.168.3.57) XAException:
tx=XidImpl [F
ormatId=257, GlobalId=malt//21, BranchQual=]
errorCode=XA_RBROLLBACK
javax.transaction.xa.XAException
        at
com.gemstone.persistence.connection.internal.ContainerXAResource.prepare(ContainerXAResource.java:343)
        at
org.jboss.tm.TxCapsule.prepareResources(TxCapsule.java:1587)
        at
org.jboss.tm.TxCapsule.commit(TxCapsule.java:370)
        at
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:73)
        at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:201)
        at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
        at
org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:164)
        at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
        at
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:380)
        at
org.jboss.ejb.Container.invoke(Container.java:720)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
        at
org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
        at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
        at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
        at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
        at
org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:117)
        at
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
        at $Proxy103.processSell(Unknown Source)


one more:

Exception: Unable to commit, tx=XidImpl [FormatId=257,
GlobalId=malt//21, BranchQual=] status=STATUS_
ROLLEDBACK
2002-09-06 22:12:05,553 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.tm.TxCapsule.commit(TxCapsule.java:393)
2002-09-06 22:12:05,553 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:73)
2002-09-06 22:12:05,554 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:201)
2002-09-06 22:12:05,554 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
2002-09-06 22:12:05,554 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:164)
2002-09-06 22:12:05,555 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
2002-09-06 22:12:05,555 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:380)
2002-09-06 22:12:05,556 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.ejb.Container.invoke(Container.java:720)
2002-09-06 22:12:05,556 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
2002-09-06 22:12:05,556 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
2002-09-06 22:12:05,557 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
2002-09-06 22:12:05,557 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
2002-09-06 22:12:05,557 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
2002-09-06 22:12:05,558 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:117)
2002-09-06 22:12:05,558 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
2002-09-06 22:12:05,558 ERROR [STDERR] (RMI TCP
Connection(4)-192.168.3.57)     at
$Proxy103.processSell(Unknown Source)





----------------------------------------------------------------------

>Comment By: David Jencks (d_jencks)
Date: 2002-09-11 23:47

Message:
Logged In: YES 
user_id=60525

I don't see the behavior you claim.  I fixed logging in the
TestManagedConnection and if you run the
XAExceptionUnitTestCase you can see both resources being
rolled back with the correct xids.  Please explain what is
different about your scenario than the test case.

----------------------------------------------------------------------

Comment By: Bob Cotton (bcotton969)
Date: 2002-09-11 21:02

Message:
Logged In: YES 
user_id=424902

This is now throwing a TransactionRolledbackException, but
now the other resources participating in the transaction are
not being rolled back.

Do you need to add tx.rollback() in each of the catch blocks
in endTransaction()?

Bob

----------------------------------------------------------------------

Comment By: David Jencks (d_jencks)
Date: 2002-09-11 19:46

Message:
Logged In: YES 
user_id=60525

Fixed in cvs HEAD and Branch_3_2

Tests in org.jboss.test.jca.test.XAExceptionUnitTestCase

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=606942&group_id=22866


-------------------------------------------------------
In remembrance
www.osdn.com/911/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to