This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Could not retrieve connection info from pool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Could not retrieve connection info from pool" Watch "Could not retrieve connection info from pool" New topic

Could not retrieve connection info from pool

Anurag Mishra
Ranch Hand

Joined: Sep 27, 2001
Posts: 133
I am using Apache Torque for making connection with my Oracle 9i server.
My file configuration is as follows:-

torque.dsfactory.cpm.pool.validationQuery=SELECT 1 from dual
torque.dsfactory.cpm.connection.driver = oracle.jdbc.driver.OracleDriver

I am getting the following error:-

Caused by: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool
at org.apache.commons.dbcp.datasources.SharedPoolDataSource.getPooledConnectionAndInfo(

According to me the cause of error is because of the database connection was not available in the connection pool. Or it might be due to The connection was not closed properly becuase of the some issue in the persistent layer.

My Research till now:-

Checked all the connection object properly closed in my classes as well as Torque Classes.
Do anyone have any idea regarding this error. If yes, please suggest some solution for it.

I agree. Here's the link:
subject: Could not retrieve connection info from pool
It's not a secret anymore!