-->
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: 3.1 DB Connections not being closed
PostPosted: Thu Jan 12, 2006 5:39 am 
Beginner
Beginner

Joined: Thu Oct 14, 2004 5:07 am
Posts: 37
Location: Cambridge, UK
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:3.1

Mapping documents:Too many to post

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Connection pool exhausted

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

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Since upgrading from 3.0.5 to 3.1, I am running out of DB connections very quickly (easily repeatable)... to it would appear that something is not closing connections...

All I have done is changed a few mapping file values to conform to the stricter/slightly modified dtd in 3.1 ...

I am using apache dbcp with setting:

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">

Anyone else seen this?


Top
 Profile  
 
 Post subject: Also...
PostPosted: Thu Jan 12, 2006 5:47 am 
Beginner
Beginner

Joined: Thu Oct 14, 2004 5:07 am
Posts: 37
Location: Cambridge, UK
I am using Spring 1.2.4 and

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

OpenSessionInViewFilter etc...

is there any reason why this should not be compatible with 3.1? or is it that ThreadLocal are serializable/serialized now?

Not sure... any idea's appreciated... I will do some more digging...


Top
 Profile  
 
 Post subject: Reverted to 3.0.5
PostPosted: Thu Jan 12, 2006 6:04 am 
Beginner
Beginner

Joined: Thu Oct 14, 2004 5:07 am
Posts: 37
Location: Cambridge, UK
and changed back the attribute change I made on my

many-to-one relationships.. (which was changing lazy=no-proxy back to lazy=true)

and it works fine.......


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.