org.hibernate.exception.GenericJDBCException: Cannot open connection

coderanch.com | 4 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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    init runscript with relative path ends in FileNotFoundException

    Google Groups | 5 years ago | michael.nitschke
    org.hibernate.exception.GenericJDBCException: Cannot open connection
  3. 0

    Mobicents presence service beta 5 subscription error..

    Google Groups | 7 years ago | shax
    org.hibernate.exception.GenericJDBCException: Cannot open connection

  1. esaar 2 times, last 7 months ago
  2. qavid 551 times, last 9 months ago
2 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

    Cannot open connection

    at org.hibernate.exception.SQLStateConverter.handledNonSpecificException()
  2. Hibernate
    QueryLoader.list
    1. org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:140)
    2. org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:128)
    3. org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
    4. org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
    5. org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)
    6. org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
    7. org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
    8. org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1596)
    9. org.hibernate.loader.Loader.doQuery(Loader.java:717)
    10. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270)
    11. org.hibernate.loader.Loader.doList(Loader.java:2294)
    12. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2172)
    13. org.hibernate.loader.Loader.list(Loader.java:2167)
    14. org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:448)
    14 frames
  3. Hibernate HQL/JP-QL Parser
    QueryTranslatorImpl.list
    1. org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)
    1 frame
  4. Hibernate
    QueryImpl.list
    1. org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
    2. org.hibernate.impl.SessionImpl.list(SessionImpl.java:1258)
    3. org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
    3 frames
  5. Hibernate EJB
    QueryImpl.getResultList
    1. org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:241)
    2. org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1235)
    3. org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1168)
    4. org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:250)
    4 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  7. Spring ORM
    SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke
    1. org.springframework.orm.jpa.SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke(SharedEntityManagerCreator.java:310)
    1 frame
  8. Unknown
    $Proxy52.getResultList
    1. $Proxy52.getResultList(Unknown Source)
    1 frame