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

GitHub | mmzen | 7 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 114#236385049

    GitHub | 7 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

    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 grails.plugin.springsecurity.oauthprovider.GormClientDetailsService.loadClientByClientId()
    2. grails.plugin.springsecurity
      SecurityRequestHolderFilter.doFilter
      1. grails.plugin.springsecurity.oauthprovider.GormClientDetailsService.loadClientByClientId(GormClientDetailsService.groovy:25)
      2. grails.plugin.springsecurity.oauthprovider.provider.GrailsOAuth2RequestFactory.extractScopes(GrailsOAuth2RequestFactory.java:102)
      3. grails.plugin.springsecurity.oauthprovider.provider.GrailsOAuth2RequestFactory.createAuthorizationRequest(GrailsOAuth2RequestFactory.java:60)
      4. grails.plugin.springsecurity.oauthprovider.endpoint.WrappedAuthorizationEndpoint.authorize(WrappedAuthorizationEndpoint.java:20)
      5. grails.plugin.springsecurity.web.UpdateRequestContextHolderExceptionTranslationFilter.doFilter(UpdateRequestContextHolderExceptionTranslationFilter.groovy:64)
      6. grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.groovy:53)
      7. grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.groovy:62)
      8. grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.groovy:58)
      8 frames
    3. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      2 frames