[
http://jira.jboss.com/jira/browse/JBAS-4238?page=comments#action_12358183 ]
Jonathan Halliday commented on JBAS-4238:
-----------------------------------------
Without a test case I can't be sure, but I suspect this is occuring in situations
where one or more Synchronizations registered with the transaction is failing during
beforeCompletion(). Since processing must continue in order to resolve the transaction, we
don't throw the exception all the way back to the user at that point of failure.
Instead we continue to process the transaction through to a resolution, then throw a
RollbackException. The internal architecture makes it difficult to store the original
exception and attach it to this new RollbackException at a later time. Hence no root cause
is provided.
That said, it is possible to obtain some information on the original failure. By enabling
WARN level logging for the com.arjuna.ats.arjuna.coordinator package, you should see a
warning when the beforeCompletion fails. "TwoPhaseCoordinator.beforeCompletion -
failed" I've enhanced this reporting in the latest build, so that it should also
log the exception itself.
javax.transaction.RollbackException root cause
----------------------------------------------
Key: JBAS-4238
URL:
http://jira.jboss.com/jira/browse/JBAS-4238
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: JB5-Transaction Manager
Affects Versions: JBossAS-4.2.0.CR1
Environment: Windows XP, Java 6, JBoss 4.2.0.CR1
Reporter: Flavius Burca
Assigned To: Jonathan Halliday
Priority: Critical
Fix For: JBossAS-4.2.0.GA
On transaction commit, if the commit failes then a javax.transaction.RollbackException is
thrown. This exception does not contain a root cause, so one cannot determine the cause of
the failure.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira