Database throws Unable to Close Resource exception daily on first request

312 Views Asked by At

I get the following exception for the first request that comes to my server every day: org.skife.jdbi.v2.exceptions.UnableToCloseResourceException: Unable to close Connection. After the first request, any subsequent requests can access the database without any trouble until the next day. I am using jdbi and mysql db.

1

There are 1 best solutions below

0
On BEST ANSWER

I had to add a ValidationQuery which could be SELECT 1