-->
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: Connection close, I need to open
PostPosted: Wed Feb 11, 2009 8:31 am 
Newbie

Joined: Mon Sep 01, 2008 3:41 am
Posts: 19
Hi all,

I have a web application that show a certains reports with Crystal Report. The problem is that the database is backup at nights and it close the connection and I want to reopen the connection if it's close but I don't know how can I do it. May you help me?

Thank you!

Praedos


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 11, 2009 4:03 pm 
Senior
Senior

Joined: Tue Aug 01, 2006 9:24 pm
Posts: 120
This does not seem to have anything to do with hibernate?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 12, 2009 4:30 am 
Newbie

Joined: Mon Sep 01, 2008 3:41 am
Posts: 19
This is the message of the log

ERROR org.hibernate.util.JDBCExceptionReporter - Already closed.

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 12, 2009 5:16 am 
Beginner
Beginner

Joined: Sat Jan 26, 2008 6:33 am
Posts: 24
for me it looks like you are opening a session once and keep that object reference during all the runtime, never checking if it actually was closed. try to recreate the session with the factory. if its still not able to connect, the backup is still running.


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.