javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection

GitHub | jackrabb1t | 8 months 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

    GitHub comment 1#242584464

    GitHub | 8 months ago | jackrabb1t
    javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection
  2. 0

    Newbi please check my log

    GitHub | 3 years ago | d7071
    org.hibernate.exception.GenericJDBCException: could not inspect JDBC autocommit mode
  3. 0

    Spring 3.2.13 + Hibernate 4.2.7 + JTA: works on tomee with jotm but fails on WebLogic 12c

    Stack Overflow | 10 months ago | H.B
    org.hibernate.exception.GenericJDBCException: Could not open connection
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Tomcat - User - DBCP2 connection pool leak?

    nabble.com | 2 years ago
    org.hibernate.exception.GenericJDBCException: could not > > > inspect JDBC autocommit mode at > > > org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54) at > > > org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:124) at > > > org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:109) at > > > org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.isAutoCommit(LogicalConnectionImpl.java:311) at > > > org.hibernate.engine.transaction.internal.TransactionCoordinatorImpl.afterNonTransactionalQuery(TransactionCoordinatorImpl.java:200) at > > org.hibernate.internal.SessionImpl.afterOperation(SessionImpl.java:477)
  6. 0

    Re: DBCP2 connection pool leak?

    apache.org | 1 year ago
    org.hibernate.exception.GenericJDBCException: could not prepare statement at > org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1387) at > org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1310)

  1. Piz 6 times, last 9 months ago
3 unregistered visitors
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. org.hibernate.exception.GenericJDBCException

    Could not open connection

    at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert()
  2. Hibernate
    QueryImpl.list
    1. org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    2. org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    3. org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    4. org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:221)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    5. org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:157)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    6. org.hibernate.engine.jdbc.internal.StatementPreparerImpl.connection(StatementPreparerImpl.java:56)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    7. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$5.doPrepare(StatementPreparerImpl.java:161)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    8. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:182)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    9. org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:159)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    10. org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1854)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    11. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1831)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    12. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1811)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    13. org.hibernate.loader.Loader.doQuery(Loader.java:899)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    14. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:341)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    15. org.hibernate.loader.Loader.doList(Loader.java:2516)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    16. org.hibernate.loader.Loader.doList(Loader.java:2502)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    17. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2332)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    18. org.hibernate.loader.Loader.list(Loader.java:2327)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    19. org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:490)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    20. org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:355)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    21. org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:195)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    22. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1268)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    23. org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)[hibernate-core-4.2.0.Final.jar:4.2.0.Final]
    23 frames
  3. Hibernate EJB
    QueryImpl.getResultList
    1. org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:264)[hibernate-entitymanager-4.2.0.Final.jar:4.2.0.Final]
    1 frame