没有Hibernate会话绑定到线程grails

时间:2014-05-27 05:24:12

标签: hibernate grails quartz-scheduler

实际上,我们的应用程序中有很多石英作业。有一段时间,所有的工作都很好。一段时间后,所有工作都抛出以下异常。

org.quartz.JobExecutionException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here [See nested exception: java.lang.IllegalStateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here]
at grails.plugins.quartz.QuartzDisplayJob.execute(QuartzDisplayJob.groovy:37)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)

Caused by: java.lang.IllegalStateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
at grails.plugins.quartz.QuartzDisplayJob.execute(QuartzDisplayJob.groovy:29)
... 2 more

0 个答案:

没有答案