-->
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.  [ 4 posts ] 
Author Message
 Post subject: "You can't operate on a closed connection!!!"
PostPosted: Tue Sep 27, 2005 2:18 am 
Beginner
Beginner

Joined: Sun May 02, 2004 8:04 am
Posts: 36
Hi,

I've updated my code to use Hibernate 3 after using Hibernate 2 successfully. I'm using Postgres and now when my web application starts up, I get:

25261 [http-8080-Processor25] (JDBCExceptionReporter.java:72) ERROR org.hibernate.util.JDBCExceptionReporter - You can't operate on a closed connection!!!

What could cause this to happen, I never had this problem with Hibernate2 and Postgres

Thanks, Jason


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 2:51 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
apparently you are calling connection.close() somewhere ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 3:01 am 
Beginner
Beginner

Joined: Sun May 02, 2004 8:04 am
Posts: 36
Sure I'm doing session.open(), session.save/update/delete and session.close() for every transaction. I wonder why I never see this error when I use hsqldb or when I used Hibernate version 2 before?

Thanks, Jason


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 3:10 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
don't know - you probably changed something more but didnt realize it ,)

or maybe you didn't change everything and has a mix of H2/H3 running....just guessing out loud

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.