play.api.UnexpectedException: Unexpected exception[SQLTransientConnectionException: db - Connection is not available, request timed out after 2020ms.]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

This might be cause due to an overload in your database accesses. Try to implement a queue or using an Executor to access the database server.

Solutions on the web

via Google Groups by Nadav Samet, 1 year ago
Unexpected exception[SQLTransientConnectionException: db - Connection is not available, request timed out after 2020ms.]
via GitHub by dkovalenko
, 3 months ago
Unexpected exception[IllegalStateException: Entry.next=null, data[removeIndex]=Mozilla/5.0 (Windows NT 6.1; rv:41.0) Gecko/20100101 Firefox/41.0=Client(UserAgent(Firefox,Some(41),Some(0),None),OS(Windows 7,None,None,None,None),Device(Other,None,None
via GitHub by mbarton
, 11 months ago
Unexpected exception[IOException: not valid as a java.net.URI: https://preview.content.guardianapis.com/atoms?types=media&q=\&searchFields=data.title]
via GitHub by eperry
, 7 months ago
Unexpected exception[JsResultException: JsResultException(errors:List((,List(ValidationError(List('jUs3FZC7QD21038gQKx9zg' is undefined on object: {"v9fEyAu_QFeL9-x-gwg8zw":{"timestamp":1489942956391,"name":"hd1melk25lx-es-data","transport_address
via Google Groups by Praveen Yadav, 8 months ago
Unexpected exception[IllegalStateException: cannot enqueue after timer shutdown]
via Google Groups by Praveen Yadav, 8 months ago
Unexpected exception[IllegalStateException: cannot enqueue after timer shutdown]
java.sql.SQLTransientConnectionException: db - Connection is not available, request timed out after 2020ms.
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:196)
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:147)
at slick.jdbc.hikaricp.HikariCPJdbcDataSource.createConnection(HikariCPJdbcDataSource.scala:12)
at slick.jdbc.JdbcBackend$BaseSession.conn$lzycompute(JdbcBackend.scala:415)
at slick.jdbc.JdbcBackend$BaseSession.conn(JdbcBackend.scala:414)
at slick.jdbc.JdbcBackend$SessionDef$class.prepareStatement(JdbcBackend.scala:297)
at slick.jdbc.JdbcBackend$BaseSession.prepareStatement(JdbcBackend.scala:407)
at slick.jdbc.StatementInvoker.results(StatementInvoker.scala:33)
at slick.jdbc.StatementInvoker.iteratorTo(StatementInvoker.scala:22)
at slick.jdbc.Invoker$class.foreach(Invoker.scala:48)
at slick.jdbc.StatementInvoker.foreach(StatementInvoker.scala:16)
at slick.jdbc.StreamingInvokerAction$class.run(StreamingInvokerAction.scala:22)
at slick.driver.JdbcActionComponent$QueryActionExtensionMethodsImpl$$anon$1.run(JdbcActionComponent.scala:218)
at slick.driver.JdbcActionComponent$QueryActionExtensionMethodsImpl$$anon$1.run(JdbcActionComponent.scala:218)
at slick.backend.DatabaseComponent$DatabaseDef$$anon$2.liftedTree1$1(DatabaseComponent.scala:237)
at slick.backend.DatabaseComponent$DatabaseDef$$anon$2.run(DatabaseComponent.scala:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 10 months ago
Once, 10 months ago
Once, 1 year ago
Once, 1 year ago
40 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.