0

I understand there are other posts that discussed this problem. I tried their solutions but none of them actually works.

I have been frustated and getting this error:

Caused by: java.sql.SQLException: Timed out waiting for a free available connection.
    at com.jolbox.bonecp.DefaultConnectionStrategy.getConnectionInternal(DefaultConnectionStrategy.java:88) ~[com.jolbox.bonecp-0.8.0.RELEASE.jar:na]
    at com.jolbox.bonecp.AbstractConnectionStrategy.getConnection(AbstractConnectionStrategy.java:90) ~[com.jolbox.bonecp-0.8.0.RELEASE.jar:na]

Also my bonecp configuration:

db.default.idleConnectionTestPeriod=10 minutes

db.default.maxConnectionsPerPartition=10
db.default.minConnectionsPerPartition=4

db.default.connectionTestStatement="SELECT 1"

Help would be much appreciated.

Etheryte
  • 24,589
  • 11
  • 71
  • 116

1 Answers1

0

I had a similar problem which I tracked to returning data using QueryIterator. I changed my ebean logic to findList() and the problem went away. I'm guessing that my problem had something to do with resources not being released which in turn created the timeout issue.

I am using Play 2.2.3 with Java.