-->
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.  [ 5 posts ] 
Author Message
 Post subject: WARN SessionImpl
PostPosted: Tue Jun 01, 2004 8:30 am 
Regular
Regular

Joined: Sat May 29, 2004 2:16 pm
Posts: 81
when i finish running my app i get this msg:
Quote:
11:50:48,875 WARN SessionImpl:3381 - afterTransactionCompletion() was never called
11:50:48,875 WARN SessionImpl:3388 - finalizing unclosed session with closed connection

How can i correct this?
I'm using winXP Pro, MySql 4.0.12-nt, hibernate 2.1 and j2sdk1.4.2_03
thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 01, 2004 6:13 pm 
Senior
Senior

Joined: Wed Mar 24, 2004 11:40 am
Posts: 146
Location: Indianapolis, IN, USA
could you please provide a sample of your code i.e. the try-catch-finally of creating a session, executing a method, committing and closing the session etc? also, please provide your version.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 02, 2004 4:06 am 
Regular
Regular

Joined: Sat May 29, 2004 2:16 pm
Posts: 81
here


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 02, 2004 4:31 am 
Regular
Regular

Joined: Wed Apr 21, 2004 10:57 am
Posts: 62
Location: Hasselt, Belgium
in your total() method you open a session but never close it. The same in listaComRel(). And in totalNegMat().

A few hints for the rest of your code.

Why don't you combine all 7 HibernateExceptions in your setTudo() method? Just catch the 7 lines with one exception. The HibernateException message should be clear enough for you to see where the error is.

Also don't open and close a session for every single database call. See http://www.hibernate.org/168.html for more info on this.

Peter


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 02, 2004 6:47 pm 
Regular
Regular

Joined: Sat May 29, 2004 2:16 pm
Posts: 81
thank you


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