During my tests with the JDBCOptimisticLock strategy (which worked btw), I encountered
a problem: how can I catch the exception thrown by JBoss when an update error occured:
[java] JBossTransactionRolledbackException was:
org.jboss.tm.JBossTransactionRolledbackException: null; nested exception is:
[java] org.jboss.tm.JBossRollbackException: Unable to commit,
tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=HERTZ//186, BranchQual=] sta
tus=STATUS_NO_TRANSACTION; - nested throwable: (javax.ejb.EJBException: Update failed.
Expected one affected row: rowsAffected=0, id=1); - nested thro
wable: (org.jboss.tm.JBossRollbackException: Unable to commit,
tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=HERTZ//186, BranchQual=] status=STAT
US_NO_TRANSACTION; - nested throwable: (javax.ejb.EJBException: Update failed.
Expected one affected row: rowsAffected=0, id=1)
I am not able to catch this neither on the server nor on the client.
Any hints?
Thanks, marek
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841865#3841865
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841865
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user