-->
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 pool Question ??
PostPosted: Wed Jul 07, 2004 3:07 am 
Newbie

Joined: Wed Feb 25, 2004 11:41 pm
Posts: 19
Location: China
resin-2.0 on Red Hat 9 AD server 3.0
hibernate 2.1.2
SQLserver 2k

When resin start everything is ok but after one hundred hours(maybe more) I get a Exception...

java.sql.SQLException: can't create statement from closed connection.
at com.caucho.sql.UserConnectionAdapter.prepareStatement(UserConnectionAdapter.java:389)
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:249)
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:223)
at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:65)
at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:704)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java:185)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133)
at net.sf.hibernate.loader.Loader.doList(Loader.java:950)
at net.sf.hibernate.loader.Loader.list(Loader.java:941)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:834)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1512)
......
......

I think its connection pool's error(I use Resin's database pool) ??
Who can tell me why?appreciate..
I have read some FAQ and searched for forums ... - -

Sorry for my pool English

_________________
who can tell me why?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 07, 2004 3:11 am 
Newbie

Joined: Wed Feb 25, 2004 11:41 pm
Posts: 19
Location: China
MY database pool configuration in resin.conf

<resource-ref>
<res-ref-name>jdbc/ladder</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<init-param driver-name="com.microsoft.jdbc.sqlserver.SQLServerDriver"/>
<init-param url="jdbc:microsoft:sqlserver://xxx.xxx.xx.x;DatabaseName=dbname;SelectMethod=cursor"/>
<init-param user="sa"/>
<init-param password="pass"/>
<init-param max-connections="500"/>
<init-param max-idle-time="30"/>
</resource-ref>

_________________
who can tell me why?


Top
 Profile  
 
 Post subject: Maybe some error in your application code
PostPosted: Wed Jul 07, 2004 3:50 am 
Newbie

Joined: Wed Jul 07, 2004 3:06 am
Posts: 3
Your application does not release your connection resource .
Please check your log to find the errors.


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.