Could not retrieve connection info from torque connection pool

Hi,

I am using Apache Torque for making connection with my Oracle 9i server.

My Torque.properties file configuration is as follows:-

torque.dsfactory.cpm.factory=org.apache.torque.dsfactory.SharedPoolDataSourceFactory

torque.dsfactory.cpm.pool.maxActive=10

torque.dsfactory.cpm.pool.maxWait=60

torque.dsfactory.cpm.pool.testOnBorrow=true

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(SharedPoolDataSource.java:169)

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.

-Anurag-

[1269 byte] By [anumishra1a] at [2007-10-2 12:35:43]
# 1
You should check your server you should have your jdbc driver.Also i think your property file not complit.
Edgar_Crossa at 2007-7-13 9:36:14 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2

Hi,

I have my complete Torque.properties file, just for the reference, I have pasted few lines from my torque.properties file. Secondly, I am using the JDBC Driver for my oracle connection & its working fine. The problem is when my application tries to access connection from connection pool, & if it finds no connection in the pool it gives error. After increasing the size of the connection in the pool, still I am getting the same error. Do you have some idea regarding this.

anumishra1a at 2007-7-13 9:36:14 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...