org.springframework.dao.DataAccessResourceFailureException: Could not obtain current Hibernate Session; nested exception is org.hibernate.HibernateException: No Session found for current thread

GitHub | saw303 | 2 months ago
  1. 0

    Unit testing services with Hibernate is broken

    GitHub | 2 months ago | saw303
    org.springframework.dao.DataAccessResourceFailureException: Could not obtain current Hibernate Session; nested exception is org.hibernate.HibernateException: No Session found for current thread
  2. 0

    GitHub comment 114#236385049

    GitHub | 4 months ago | mmzen
    org.springframework.dao.DataAccessResourceFailureException: Could not obtain current Hibernate Session; nested exception is org.hibernate.HibernateException: No Session found for current thread
  3. 0

    java.sql.SQLException: Protocol violation-SQL state [99999]; error code [17412]; error code [17402] (Object Relational Mapping forum at Coderanch)

    coderanch.com | 3 months ago
    org.springframework.dao.DataAccessResourceFailureException: Hibernate operation: could not get next sequence value; SQL [select SEQIPERFDASHBOARDID.nextval from dual]; OALL8 is in an inconsistent state; nested exception is : OALL8 is in an inconsistent state
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't use HSQL sequences in JUnit

    Stack Overflow | 4 years ago | qxlab
    org.springframework.dao.DataAccessResourceFailureException: Could not obtain identity(); nested exception is java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: BATCH_JOB_SEQ
  6. 0

    How to configure C3P0 or BoneCP Datasources to withstand database failover/outage

    Stack Overflow | 3 years ago | user2836274
    org.springframework.dao.DataAccessResourceFailureException: could not inspect JDBC autocommit mode; nested exception is org.hibernate.exception.JDBCConnectionException: could not inspect JDBC autocommit mode

  1. Luka 1 times, last 2 months ago
  2. Luka 1 times, last 2 months ago
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.springframework.dao.DataAccessResourceFailureException

    Could not obtain current Hibernate Session; nested exception is org.hibernate.HibernateException: No Session found for current thread

    at org.grails.orm.hibernate.GrailsHibernateTemplate.getSession()
  2. Grails GORM
    HibernateGormStaticApi.list
    1. org.grails.orm.hibernate.GrailsHibernateTemplate.getSession(GrailsHibernateTemplate.java:274)
    2. org.grails.orm.hibernate.GrailsHibernateTemplate.doExecute(GrailsHibernateTemplate.java:230)
    3. org.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:187)
    4. org.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:110)
    5. org.grails.orm.hibernate.HibernateGormStaticApi.list(HibernateGormStaticApi.groovy:70)
    6. org.grails.orm.hibernate.HibernateGormStaticApi.list(HibernateGormStaticApi.groovy:69)
    6 frames
  3. Grails GORM
    GormEntity$Trait$Helper.list
    1. org.grails.datastore.gorm.GormEntity$Trait$Helper.list(GormEntity.groovy:654)
    1 frame
  4. grails.issues
    SeasonService.findAll_closure1
    1. grails.issues.SeasonService.$tt__findAll(SeasonService.groovy:10)
    2. grails.issues.SeasonService.findAll_closure1(SeasonService.groovy)
    2 frames
  5. Groovy
    Closure.call
    1. groovy.lang.Closure.call(Closure.java:414)
    2. groovy.lang.Closure.call(Closure.java:430)
    2 frames
  6. Grails
    GrailsTransactionTemplate$2.doInTransaction
    1. grails.transaction.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:96)
    1 frame
  7. Spring Tx
    TransactionTemplate.execute
    1. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
    1 frame
  8. Grails
    GrailsTransactionTemplate.execute
    1. grails.transaction.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:93)
    1 frame