-->
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: Error session is closed while commit transaction
PostPosted: Sun Jul 03, 2005 12:36 pm 
Newbie

Joined: Sat Jun 25, 2005 7:38 am
Posts: 5
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.0.5

Name and version of the database you are using: Oracle 9i

Dears,
I just didn't want to post the whole code as it is already copy and paste from "Hiberante in Action" book.

I'm just wondering how come I get:
Error commit: Session is closed

in the method commitTransaction, even after passing & checking
if ( tx != null && !tx.wasCommitted() && !tx.wasRolledBack )

All my code is getting a row from db with id, and update a column in it, and it works fine, but when before I render the page and I want to commit transaction, I get this error.

Thanks in advance.

_________________
Thanks, best reagrds,
Ashraf Fouad


Top
 Profile  
 
 Post subject: Re: Error session is closed while commit transaction
PostPosted: Mon Dec 02, 2013 1:40 pm 
Newbie

Joined: Mon Dec 02, 2013 1:32 pm
Posts: 2
Hello, I know this thread is very old.. But I have the same exact problem!
I need help about this exact issue.

Did you manage to solve it?

Pleas help me, I am using the same HibernateUtil class posted in that book.
This is very frustrating not to know what is going on, plus my problem appears randomly.

Regards


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.