-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: HibernateUtil
PostPosted: Wed Nov 23, 2005 1:12 pm 
Senior
Senior

Joined: Wed Sep 24, 2003 3:01 pm
Posts: 158
Location: Bragan�a Paulista - Brasil
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

_________________
Tads


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 23, 2005 2:07 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Please use the regular user forum, after reading http://hibernate.org/42.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.