[jboss-jira] [JBoss JIRA] Commented: (JBAS-4238) javax.transaction.RollbackException root cause

Flavius Burca (JIRA) jira-events at lists.jboss.org
Fri Mar 23 08:47:53 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBAS-4238?page=comments#action_12357136 ] 
            
Flavius Burca commented on JBAS-4238:
-------------------------------------

Example:

try {
   tx.commit();
} catch (RollbackException ex) {
   Throwable rootCause = ex;
   while ( rootCause.getCause() != null) {
       rootCause = rootCause.getCause();
   }
}

rootCause is javax.transaction.RollbackException when it should be a SQLException.


> 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: Mark Little
>            Priority: Critical
>
> 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

        



More information about the jboss-jira mailing list