org.hibernate.exception.GenericJDBCException: Cannot open connection

Coderanch | hitendra sunkara | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Problem with Hibernate ConnectionPooling,Getting error as Too many Conections

    Coderanch | 3 years ago | hitendra sunkara
    org.hibernate.exception.GenericJDBCException: Cannot open connection
  2. 0

    establishing c3p0 connection pool with mysql

    Stack Overflow | 2 years ago | jayendra bhatt
    org.hibernate.exception.GenericJDBCException: Cannot open connection
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Crash log when submitting many jobs to the grid

    GitHub | 4 years ago | georgebyelas
    java.sql.SQLException: Connections could not be acquired from the underlying database!
  5. 0

    How to determine connection pool size programmatically?

    Stack Overflow | 6 years ago | Umer Hayat
    org.hibernate.exception.GenericJDBCException: Cannot open connection
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. com.mchange.v2.resourcepool.CannotAcquireResourceException

    A ResourcePool could not acquire a resource from its primary factory or source.

    at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable()
  2. c3p0:JDBC DataSources/Resource Pools
    AbstractPoolBackedDataSource.getConnection
    1. com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1319)
    2. com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
    3. com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
    4. com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
    5. com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
    5 frames
  3. Hibernate
    C3P0ConnectionProvider.getConnection
    1. org.hibernate.connection.C3P0ConnectionProvider.getConnection(C3P0ConnectionProvider.java:35)
    1 frame
  4. Hibernate
    QueryLoader.iterate
    1. org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:417)
    2. org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
    3. org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
    4. org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1538)
    5. org.hibernate.loader.hql.QueryLoader.iterate(QueryLoader.java:411)
    5 frames
  5. Hibernate HQL/JP-QL Parser
    QueryTranslatorImpl.iterate
    1. org.hibernate.hql.ast.QueryTranslatorImpl.iterate(QueryTranslatorImpl.java:380)
    1 frame
  6. Hibernate
    QueryImpl.iterate
    1. org.hibernate.engine.query.HQLQueryPlan.performIterate(HQLQueryPlan.java:224)
    2. org.hibernate.impl.SessionImpl.iterate(SessionImpl.java:1192)
    3. org.hibernate.impl.QueryImpl.iterate(QueryImpl.java:46)
    3 frames
  7. com.kyber.action
    UserHelper.getApplicableAccounts
    1. com.kyber.action.UserHelper.getApplicableAccounts(UserHelper.java:397)
    1 frame
  8. com.kyber.timeentry
    ProcessStartDayAction.execute
    1. com.kyber.timeentry.ActionHelper.populateEntries(ActionHelper.java:27)
    2. com.kyber.timeentry.ProcessStartDayAction.execute(ProcessStartDayAction.java:46)
    2 frames
  9. Struts Core
    ActionCommandBase.execute
    1. org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
    2. org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
    3. org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
    3 frames
  10. Commons Chain
    ChainBase.execute
    1. org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    2. org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
    3. org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    3 frames
  11. Struts Core
    ComposableRequestProcessor.process
    1. org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
    1 frame
  12. struts
    ActionServlet.doGet
    1. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
    2. org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
    2 frames
  13. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    2 frames
  14. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    10 frames
  15. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
    3 frames
  16. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    3. java.lang.Thread.run(Unknown Source)
    3 frames