-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grails 3.0.15 & Quartz: No Session Found For Current Thread #75
Comments
Which version of the plugin are you using? You need to make sure you enable the Quartz plugin Config to enable hibernate support. |
Quartz Plugin 2.0.9 There are other Quartz jobs that are working correctly accessing the database. I have not been able to identify what is different in this one case. |
happens because of quartz startup order.. it will correct itself on next execution but if there is a job right at the beginning it will try to execute before hibernate session has been injected ... super annoying bug |
…as starting up too early and not spring artifact aware or session bind aware. Also fixes shutdown to properly shutdown before the session gets wiped out from underneath
2.0.10 |
Using Grails 3.0.15. From Quartz calling Grails Service, which explicitly calls domain class withTransaction. Getting error "No Session found for current thread". See stack traceback below:
Have tried:
The project has similar code from Quartz calling withTransaction() successfully. No idea what is different about this one and why this one does not work.
The text was updated successfully, but these errors were encountered: