Hibernate version:2.1.4
Hi all,
I was using a template with basic methods like save, update, and so on,
where these methods "manage" the beginTransaction, openSession, and others.
I´m afraid that this template is causing the following error:
Code:
10:56:58,843 ERROR [JTATransaction] Could not register Synchronization
javax.transaction.RollbackException: Already marked for rollback
at org.jboss.tm.TransactionImpl.registerSynchronization(TransactionImpl.java:704)
at net.sf.hibernate.transaction.JTATransaction.begin(JTATransaction.java:169)
at net.sf.hibernate.transaction.JTATransactionFactory.beginTransaction(JTATransactionFactory.java:58)
at net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:2227)
.
.
.
So, I´ve started the use of HibernateUtil com threadLocal to sessions, transactions.
Is it possible that this error doesn´t occurs more?
I´m testing here, but this error only occurs sometimes.
thanks