org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection

GitHub | njovy | 2 months ago
  1. 0

    GitHub comment 729#249481722

    GitHub | 2 months ago | njovy
    org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection
  2. 0

    [2.4.7] Server hangs when it is unable to acquire JDBC Connection

    GitHub | 2 months ago | njovy
    org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection
  3. 0

    GitHub comment 729#250366236

    GitHub | 2 months ago | njovy
    org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 418#141114687

    GitHub | 1 year ago | Shredder121
    java.sql.SQLTransientConnectionException: infoHikariCP - Connection is not available, request timed out after 30001ms.
  6. 0

    HikariCP - connection is not available

    Stack Overflow | 1 year ago | dfche
    java.sql.SQLTransientConnectionException: HikariPool-0 - Connection is not available, request timed out after 30000ms.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.sql.SQLTransientConnectionException

    db-pool - Connection is not available, request timed out after 33289ms.

    at com.zaxxer.hikari.pool.HikariPool.createTimeoutException()
  2. HikariCP-java6
    HikariDataSource.getConnection
    1. com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:548)[com.zaxxer.HikariCP-2.5.1.jar:na]
    2. com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:186)[com.zaxxer.HikariCP-2.5.1.jar:na]
    3. com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:145)[com.zaxxer.HikariCP-2.5.1.jar:na]
    4. com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:83)[com.zaxxer.HikariCP-2.5.1.jar:na]
    4 frames
  3. org.hibernate.engine
    DatasourceConnectionProviderImpl.getConnection
    1. org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    1 frame
  4. Hibernate
    AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection
    1. org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:386)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    1 frame
  5. org.hibernate.resource
    LogicalConnectionManagedImpl.getPhysicalConnection
    1. org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:84)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    2. org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:109)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    2 frames
  6. Hibernate
    CriteriaImpl.uniqueResult
    1. org.hibernate.engine.jdbc.internal.StatementPreparerImpl.connection(StatementPreparerImpl.java:47)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    2. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$5.doPrepare(StatementPreparerImpl.java:146)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    3. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:172)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    4. org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:148)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    5. org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1934)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    6. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1903)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    7. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1881)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    8. org.hibernate.loader.Loader.doQuery(Loader.java:925)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    9. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:342)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    10. org.hibernate.loader.Loader.doList(Loader.java:2622)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    11. org.hibernate.loader.Loader.doList(Loader.java:2605)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    12. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2434)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    13. org.hibernate.loader.Loader.list(Loader.java:2429)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    14. org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:109)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    15. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1787)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    16. org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:363)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    17. org.hibernate.internal.CriteriaImpl.uniqueResult(CriteriaImpl.java:385)[org.hibernate.hibernate-core-5.1.1.Final.jar:5.1.1.Final]
    17 frames
  7. models.db
    DbModel$Query.byId
    1. models.db.DbModel$Query.byId(DbModel.java:111)[rancam-api.rancam-api-0.1.1.1.jar:0.1.1.1]
    1 frame
  8. models.db.chat
    Chat.lambda$peerId$0
    1. models.db.chat.Chat.lambda$peerId$0(Chat.java:78)[rancam-api.rancam-api-0.1.1.1.jar:0.1.1.1]
    1 frame
  9. utils
    JPA.transaction
    1. utils.JPA.transaction(JPA.java:43)[rancam-api.rancam-api-0.1.1.1.jar:0.1.1.1]
    2. utils.JPA.transaction(JPA.java:86)[rancam-api.rancam-api-0.1.1.1.jar:0.1.1.1]
    2 frames
  10. models.db.chat
    Chat.peerId
    1. models.db.chat.Chat.peerId(Chat.java:77)[rancam-api.rancam-api-0.1.1.1.jar:0.1.1.1]
    1 frame
  11. modules.rpc.handler
    AuthorizedRancamImpl.sendTextMessage
    1. modules.rpc.handler.AuthorizedRancamImpl.sendTextMessage(AuthorizedRancamImpl.java:828)[rancam-api.rancam-api-0.1.1.1.jar:0.1.1.1]
    1 frame
  12. com.rancam.models
    AuthorizedRancamGrpc$MethodHandlers.invoke
    1. com.rancam.models.rpc.AuthorizedRancamGrpc$MethodHandlers.invoke(AuthorizedRancamGrpc.java:2356)[rancam-api.rancam-api-0.1.1.1.jar:0.1.1.1]
    1 frame
  13. io.grpc.stub
    ServerCalls$1$1.onHalfClose
    1. io.grpc.stub.ServerCalls$1$1.onHalfClose(ServerCalls.java:150)[io.grpc.grpc-stub-1.0.0.jar:1.0.0]
    1 frame
  14. io.grpc
    Contexts$ContextualizedServerCallListener.onHalfClose
    1. io.grpc.PartialForwardingServerCallListener.onHalfClose(PartialForwardingServerCallListener.java:48)[io.grpc.grpc-core-1.0.0.jar:1.0.0]
    2. io.grpc.ForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:38)[io.grpc.grpc-core-1.0.0.jar:1.0.0]
    3. io.grpc.ForwardingServerCallListener$SimpleForwardingServerCallListener.onHalfClose(ForwardingServerCallListener.java:55)[io.grpc.grpc-core-1.0.0.jar:1.0.0]
    4. io.grpc.Contexts$ContextualizedServerCallListener.onHalfClose(Contexts.java:102)[io.grpc.grpc-core-1.0.0.jar:1.0.0]
    4 frames
  15. io.grpc.internal
    SerializingExecutor$TaskRunner.run
    1. io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:260)[io.grpc.grpc-core-1.0.0.jar:1.0.0]
    2. io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$2.runInContext(ServerImpl.java:503)[io.grpc.grpc-core-1.0.0.jar:1.0.0]
    3. io.grpc.internal.ContextRunnable.run(ContextRunnable.java:52)[io.grpc.grpc-core-1.0.0.jar:1.0.0]
    4. io.grpc.internal.SerializingExecutor$TaskRunner.run(SerializingExecutor.java:154)[io.grpc.grpc-core-1.0.0.jar:1.0.0]
    4 frames
  16. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_74]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_74]
    3. java.lang.Thread.run(Thread.java:745)[na:1.8.0_74]
    3 frames