-->
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.  [ 3 posts ] 
Author Message
 Post subject: Connection in Hibernate
PostPosted: Sat Jan 31, 2004 5:16 am 
Beginner
Beginner

Joined: Sun Dec 21, 2003 9:18 pm
Posts: 21
Hi ,

I am develping a webapplication with hibernate. And my resin keep throwing me this error :

[04:55:35.254] Closing dangling connections. All connections must have a close(
) in a finally block.
[04:55:35.264] java.lang.IllegalStateException: Connection com.caucho.sql.Manage
dConnectionImpl@878c4c was not closed. Connections must have a close() in a fina
lly block.
[04:55:35.264] at com.caucho.jca.UserTransactionImpl.abortTransaction(UserTrans
actionImpl.java:244)
[04:55:35.264] at com.caucho.jca.UserTransactionProxy.abortTransaction(UserTran
sactionProxy.java:175)
[04:55:35.264] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFil
terChain.java:191)
[04:55:35.264] at com.caucho.server.dispatch.ServletInvocation.service(ServletI
nvocation.java:221)
[04:55:35.264] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.
java:253)
[04:55:35.264] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:3
05)
[04:55:35.264] at com.caucho.util.ThreadPool.run(ThreadPool.java:273)
[04:55:35.264] at java.lang.Thread.run(Thread.java:534).

I am sure that I have closed open session in hibernate. So I was wondering if there a good way to check whether there are still unclosed connection in hibernate.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 31, 2004 7:57 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
debug log level should show you that

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Re: Connection in Hibernate
PostPosted: Sun Mar 28, 2004 9:18 pm 
Senior
Senior

Joined: Wed Mar 24, 2004 11:40 am
Posts: 146
Location: Indianapolis, IN, USA
inoel131081 wrote:
I am sure that I have closed open session in hibernate. So I was wondering if there a good way to check whether there are still unclosed connection in hibernate.


If you are using Resin connection pooling, you can turn on SQL logging in your resin.conf file and see which process may be closing a connection leak.


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