org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <g:message>: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here at /WEB-INF/grails-app/views/layouts/htmlheader.gsp:6

Atlassian JIRA | Jacek Jaroczynski [Atlassian] Bugmaster | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    {code} [130688884] errors.GrailsExceptionResolver Exception occurred when processing request: [HEAD] / Stacktrace follows: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <g:message>: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here at /WEB-INF/grails-app/views/layouts/htmlheader.gsp:6 at gsp_translate_layoutshtmlheader_gsp$_run_closure1_closure3.doCall(gsp_translate_layoutshtmlheader_gsp.groovy:22) at gsp_translate_layoutshtmlheader_gsp$_run_closure1_closure3.doCall(gsp_translate_layoutshtmlheader_gsp.groovy) at gsp_translate_layoutshtmlheader_gsp$_run_closure1.doCall(gsp_translate_layoutshtmlheader_gsp.groovy:24) at gsp_translate_layoutshtmlheader_gsp$_run_closure1.doCall(gsp_translate_layoutshtmlheader_gsp.groovy) at gsp_translate_layoutshtmlheader_gsp.run(gsp_translate_layoutshtmlheader_gsp.groovy:31) at com.studentsonly.grails.plugins.uiperformance.CacheFilter.doFilter(CacheFilter.java:67) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here at translate.CustomMessageSource.resolveCodeWithoutArguments(CustomMessageSource.groovy:56) ... 9 more {code}

    Atlassian JIRA | 3 years ago | Jacek Jaroczynski [Atlassian] Bugmaster
    org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <g:message>: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here at /WEB-INF/grails-app/views/layouts/htmlheader.gsp:6
  2. 0

    {code} [130688884] errors.GrailsExceptionResolver Exception occurred when processing request: [HEAD] / Stacktrace follows: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <g:message>: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here at /WEB-INF/grails-app/views/layouts/htmlheader.gsp:6 at gsp_translate_layoutshtmlheader_gsp$_run_closure1_closure3.doCall(gsp_translate_layoutshtmlheader_gsp.groovy:22) at gsp_translate_layoutshtmlheader_gsp$_run_closure1_closure3.doCall(gsp_translate_layoutshtmlheader_gsp.groovy) at gsp_translate_layoutshtmlheader_gsp$_run_closure1.doCall(gsp_translate_layoutshtmlheader_gsp.groovy:24) at gsp_translate_layoutshtmlheader_gsp$_run_closure1.doCall(gsp_translate_layoutshtmlheader_gsp.groovy) at gsp_translate_layoutshtmlheader_gsp.run(gsp_translate_layoutshtmlheader_gsp.groovy:31) at com.studentsonly.grails.plugins.uiperformance.CacheFilter.doFilter(CacheFilter.java:67) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here at translate.CustomMessageSource.resolveCodeWithoutArguments(CustomMessageSource.groovy:56) ... 9 more {code}

    Atlassian JIRA | 3 years ago | Jacek Jaroczynski [Atlassian] Bugmaster
    org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <g:message>: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here at /WEB-INF/grails-app/views/layouts/htmlheader.gsp:6
  3. 0

    Remote procedure call error

    GitHub | 3 years ago | paxanga
    org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set INFO | jvm 1 | 2013/10/31 01:47:16 | at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:97) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:67) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:170) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:77) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2276) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2272) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1741) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57) INFO | jvm 1 | 2013/10/31 01:47:16 | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) INFO | jvm 1 | 2013/10/31 01:47:16 | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.traccar.web.server.model.DataServiceImpl.init(DataServiceImpl.java:66) INFO | jvm 1 | 2013/10/31 01:47:16 | at javax.servlet.GenericServlet.init(GenericServlet.java:244) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:534) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:417) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:659) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.server.Server.handle(Server.java:370) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) INFO | jvm 1 | 2013/10/31 01:47:16 | at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Illegal attempt to associate a collection with two open sessions - Spring Forum

    spring.io | 2 years ago
    org.hibernate.HibernateException: Illegal attempt to associate a collection with two open sessions at org.hibernate.collection.AbstractPersistentCollect ion.setCurrentSession(AbstractPersistentCollection .java:237) at org.hibernate.event.def.OnUpdateVisitor.processCol lection(OnUpdateVisitor.java:41) at org.hibernate.event.def.AbstractVisitor.processVal ue(AbstractVisitor.java:104) at org.hibernate.event.def.AbstractVisitor.processVal ue(AbstractVisitor.java:64) at org.hibernate.event.def.AbstractVisitor.processEnt ityPropertyValues(AbstractVisitor.java:58) at org.hibernate.event.def.AbstractVisitor.process(Ab stractVisitor.java:129) at org.hibernate.event.def.DefaultDeleteEventListener .onDelete(DefaultDeleteEventListener.java:74) at org.hibernate.impl.SessionImpl.delete(SessionImpl. java:579) at org.springframework.orm.hibernate3.HibernateTempla te$26.doInHibernate(HibernateTemplate.java:703) at org.springframework.orm.hibernate3.HibernateTempla te.execute(HibernateTemplate.java:312) at org.springframework.orm.hibernate3.HibernateTempla te.deleteAll(HibernateTemplate.java:699) at org.tiaa.secarchive.dao.impl.SecProductionCltDAOIm pl.deleteSourceData(SecProductionCltDAOImpl.java:7 6) at org.tiaa.secarchive.delegate.impl.SecArchiveDelega teImpl.archive(SecArchiveDelegateImpl.java:86) at org.tiaa.secarchive.schedule.impl.JobImpl.archive( JobImpl.java:328) at org.tiaa.secarchive.schedule.impl.JobImpl.execute( JobImpl.java:210) at org.tiaa.secarchive.schedule.impl.DaemonImpl.run(D aemonImpl.java:239)
  6. 0

    Re: Apache ODE 1.3.6 on Oracle DB with Hibernate 3.2.0

    ode-user | 3 years ago | Sathwik B P
    org.hibernate.HibernateException: CGLIB Enhancement failed: > org.apache.ode.daohib.bpel.hobj.HMessage > at > org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl. > java:478) > at > org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl. > java:450) > at > org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleSche > duler.java:523) > at > org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleSche > duler.java:517) > at > org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleSc > heduler.java:289) > at > org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleSc > heduler.java:244) > at > org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleSchedu > ler.java:517) > at > org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleSchedu > ler.java:501) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138)

    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.HibernateException

      No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here

      at translate.CustomMessageSource.resolveCodeWithoutArguments()
    2. translate
      CustomMessageSource.resolveCodeWithoutArguments
      1. translate.CustomMessageSource.resolveCodeWithoutArguments(CustomMessageSource.groovy:56)
      1 frame
    3. Unknown
      gsp_translate_layoutshtmlheader_gsp.run
      1. gsp_translate_layoutshtmlheader_gsp$_run_closure1_closure3.doCall(gsp_translate_layoutshtmlheader_gsp.groovy:22)
      2. gsp_translate_layoutshtmlheader_gsp$_run_closure1_closure3.doCall(gsp_translate_layoutshtmlheader_gsp.groovy)
      3. gsp_translate_layoutshtmlheader_gsp$_run_closure1.doCall(gsp_translate_layoutshtmlheader_gsp.groovy:24)
      4. gsp_translate_layoutshtmlheader_gsp$_run_closure1.doCall(gsp_translate_layoutshtmlheader_gsp.groovy)
      5. gsp_translate_layoutshtmlheader_gsp.run(gsp_translate_layoutshtmlheader_gsp.groovy:31)
      5 frames
    4. com.studentsonly.grails
      CacheFilter.doFilter
      1. com.studentsonly.grails.plugins.uiperformance.CacheFilter.doFilter(CacheFilter.java:67)
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:662)
      3 frames