Skip to content

Cannot get a connection, pool error Timeout waiting for idle object

Post any question you may have in regards to GoAnywhere Services and let our talented support staff and other users assist you.

Cannot get a connection, pool error Timeout waiting for idle object

Post by Shoma_Costco »

Hi,

I'm getting the below error on a random basis while trying to execute a GoAnywhere projectr. This projects creates a workspace, calls an HTTPS post method and deletes the work space. This jobs gets called once every 2 minutes and is also multi threaded. I'm suspecting its unable to handle too many connections. Is there a way to check the threshold and expand it if needed? Please advise.

16/12/18 4:01:52 AM ERROR Cannot get a connection, pool error Timeout waiting for idle object
com.linoma.dpa.dao.DAOException: Cannot get a connection, pool error Timeout waiting for idle object
at com.linoma.dpa.dao.rdbms.RDBMSDataSource.getConnection(Unknown Source)
at com.linoma.ga.core.scheduler.SchedulerController.getSchedulesDue(Unknown Source)
at com.linoma.ga.core.scheduler.SchedulerAPI.getSchedulesDue(Unknown Source)
at com.linoma.dpa.scheduler.ScheduledProjectMonitor.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:483)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:316)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:190)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:627)
at java.lang.Thread.run(Thread.java:809)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:114)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
... 11 more
Caused by: java.util.NoSuchElementException: Timeout waiting for idle object
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1174)
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
... 12 more

Thanks,
Shoma.