-->
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: Problem with a transaction
PostPosted: Thu Feb 26, 2004 10:24 am 
Newbie

Joined: Thu Feb 26, 2004 10:15 am
Posts: 7
Hi Guys,
I have the following Warning any time I try to update an Object through Hibernate 2.1.1.
[ WARN] net.sf.hibernate.impl.SessionImpl - afterTransactionCompletion() was never called

The code I execute is like this :

Session sess = null;
Transaction tx = null;
Object result = null;
try {
sess = this.openSession();
tx = sess.beginTransaction();
sess.saveOrUpdate(object);
tx.commit();
} catch (Exception e) {
/*log*/ if(log.isFatalEnabled())
log.fatal("Exception", e);
if (tx != null) {
try {
tx.rollback();
} catch (Exception ex) {
}
}
} finally {
if (sess != null) {
try {
sess.close();
} catch (Exception ex) {
}

Do you have any idea what's going wrong??
Thank you
Moh.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 01, 2004 11:33 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
In a CMT context ?

_________________
Emmanuel


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.