org.springframework.dao.DataAccessResourceFailureException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web209

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

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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.