db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Courcoux <pe...@courcoux.biz>
Subject Re: Still Problems with null connections
Date Tue, 03 Jun 2003 06:43:29 GMT
Ralf,

I may be wrong but it looks like you are using torques own pool
implementation. This has known problems. If I'm right, try commenting
out torques own pool in torque.properties and using the jdbc2 pool (next
section in torque.props) instead.

HTH

Peter


On Mon, 2003-06-02 at 23:26, Ralf Baumert wrote:
> Hi List,
> 
> my Application still won't run properly. Since noone answered my last Mail, 
> here goes another one. I really appreciate every Hint !
> 
> Ok, here's my Problem again:
> I have Torque 3.0 configured like this:
> 
> torque.dsfactory.mydb.pool.defaultMaxConnections=5
> torque.dsfactory.mydb.pool.maxExpiryTime=3600
> torque.dsfactory.mydb.pool.connectionWaitTimeout=5
> 
> MySQL is configured to kill idle Sessions after 30 secs.
> 
> Here's what happens:
> When MySQL kills the Connection I get this Error:
> 
> org.apache.torque.TorqueException
> Communication link failure: java.io.IOException 
> 
> When I hit reload, Torque reconnects as wanted. Everything works fine.
> 
> Then I wait some Minutes and suddenly I get this Error:
> 
> org.apache.torque.TorqueException
> Timed out waiting for pooled connection from 'null' 
> 
> There's no Message in torque.log, and no Messege in catalina.out either, so I 
> fancy Torque must have lost its init Parameters. Here's what I do in my jsps:
> 
> if (! Torque.isInit()) { Torque t = new Torque(); 
> t.init(getServletContext().getInitParameter("torque-path")); }
> Connection con = Torque.getConnection();
> 
> 
> This is serious. I spent a lot of time migrating my whole app to torque, and 
> really like to use it with my customers, but this Error freezes my whole 
> Website. After a Tomcat restart everything works fine for some time and then 
> everything gets messed up ("He's dead, Jim"). 
> 
> Please help me out with this one, I've been trying for 2 Days already :-(
> 
> regards,
> Ralf
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
-- 
Peter Courcoux <peter@courcoux.biz>

Mime
View raw message