wood burning stoves*
The moose likes JBoss/WildFly and the fly likes JTA Transaction rollback exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JTA Transaction rollback exception" Watch "JTA Transaction rollback exception" New topic
Author

JTA Transaction rollback exception

abhijit Ohal
Ranch Hand

Joined: Mar 10, 2006
Posts: 64
When one of the sql query get failed to execute i need to rollback transaction, so i get an exception " JTA Transaction rollback Failed exception" .but i remove following property from cfg files

......

<hibernate-configuration>
<session-factory>
<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
.........................

It works fine. I am using JBOSS server for developement

see some logs below.Please anybody help me .

JTA rollback failed
java.lang.IllegalStateException: No transaction.
at org.jboss.tm.TxManager.setRollbackOnly(TxManager.java:356)
at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.setRollbackOnly(ServerVMClientUserTransaction.java:141)
at org.hibernate.transaction.JTATransaction.rollback(JTATransaction.java:179)
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Well it looks like it is trying to rollback a transaction, but there is no transaction there to begin with.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JTA Transaction rollback exception
 
Similar Threads
Hibernate with EJB3
Problem with understanding Transaction Management Demarcation
Newbie problem with Hibernate/WL/Eclipse
WebSphere 8 - Unable to locate current JTA transaction
Hibernate Exception: Could not insert and JDBC Rollback failed..