The log of error is as under :
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection,
pool error Timeout waiting for idle object
at
org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:104
=root/
/Context
The log of error is as under :
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection,
pool error Timeout waiting for idle object
at
org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:104
timeBetweenEvictionRunsMillis=6
type=javax.sql.DataSource url=jdbc:mysql://localhost:3306/pafdb
username=root/
/Context
The log of error is as under :
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection,
pool error Timeout waiting for idle object
Setting the maxactive other than 0 did the trick. Thanks David. You were
right, I was after no limit (which I have now set to -1)
regards
Devinder
--
View this message in context:
fusion35 wrote:
Setting the maxactive other than 0 did the trick. Thanks David. You were
right, I was after no limit (which I have now set to -1)
regards
Devinder
FYI including a path attribute in the default context.xml is pointless,
as that attribute is ignored when a Context is defined
://localhost:3306/pafdb
username=root/
/Context
The log of error is as under :
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection,
pool error Timeout waiting for idle object
at
org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:104
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Devinder,
fusion35 wrote:
Setting the maxactive other than 0 did the trick. Thanks David. You were
right, I was after no limit (which I have now set to -1)
I would highly recommend /against/ no limit connection pools. Even if
you set the
Hello,
I get the captioned error. Same works good with Tomcat 5.5
Tomcat 6.0.14
JDK 1.6_2
WinXP
The text of the error is :
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection,
pool error Timeout waiting for idle object
I get the captioned exception when I try to connect to a mysql DB.
Tomcat 6.0.14
JDK 1.6_2
WinXP
what causes the error to occur? The same application works in tomcat 5.5
thanks in advance
Devinder
-
To start a new topic,
Your not providing a lot of context here, so we can only guess. The
error implies the pool is exhausted. Can you provide details on the
pool config and when/where this error occurs? Additionally, you might
want to check out the DBCP website at http://jakarta.apache.org/commons/dbcp
--David
10 matches
Mail list logo