org.quartz.JobExecutionException

could not initialize proxy - no Session [See nested exception: org.hibernate.LazyInitializationException: could not initialize proxy - no Session]

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web225

  • via Unknown by Jacek Jaroczynski [Atlassian],
  • via Unknown by Jacek Jaroczynski [Atlassian] Bugmaster,
  • Stack trace

    • org.quartz.JobExecutionException: could not initialize proxy - no Session [See nested exception: org.hibernate.LazyInitializationException: could not initialize proxy - no Session] at org.codehaus.groovy.grails.plugins.quartz.GrailsJobFactory$GrailsTaskClassJob.execute(GrailsJobFactory.java:81) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) Caused by: org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:86) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:140) at org.codehaus.groovy.grails.orm.hibernate.proxy.GroovyAwareJavassistLazyInitializer.invoke(GroovyAwareJavassistLazyInitializer.java:195) at translate.Version_$$_javassist_21.toString(Version_$$_javassist_21.java) at org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:550) at org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:504) at org.codehaus.groovy.runtime.InvokerHelper.toString(InvokerHelper.java:114) at org.codehaus.groovy.runtime.InvokerHelper.write(InvokerHelper.java:494) at groovy.lang.GString.writeTo(GString.java:189) at groovy.lang.GString.toString(GString.java:161) at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:226) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:602) at translate.GengoOrder.toString(GengoOrder.groovy:21) at org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:550) at org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:504) at org.codehaus.groovy.runtime.InvokerHelper.formatMap(InvokerHelper.java:570) at org.codehaus.groovy.runtime.InvokerHelper.toMapString(InvokerHelper.java:647) at org.codehaus.groovy.runtime.InvokerHelper.toMapString(InvokerHelper.java:636) at org.codehaus.groovy.runtime.InvokerHelper.toString(InvokerHelper.java:113) at org.codehaus.groovy.runtime.DefaultGroovyMethods.toString(DefaultGroovyMethods.java:8880) at org.codehaus.groovy.runtime.DefaultGroovyMethods.plus(DefaultGroovyMethods.java:8314) at org.codehaus.groovy.runtime.dgm$470.invoke(Unknown Source) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124) at translate.GengoImportJob$_execute_closure1.doCall(GengoImportJob.groovy:30) at sun.reflect.GeneratedMethodAccessor7810.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149) at translate.GengoImportJob$_execute_closure1.doCall(GengoImportJob.groovy) at sun.reflect.GeneratedMethodAccessor7809.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058) at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886) at groovy.lang.Closure.call(Closure.java:282) at groovy.lang.Closure.call(Closure.java:277) at groovy.lang.Closure$call$56.call(Unknown Source) at translate.imports.ImportService.acquireImportLock(ImportService.groovy:29) at translate.imports.ImportService$acquireImportLock.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128) at translate.GengoImportJob.execute(GengoImportJob.groovy:24) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:186) at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:171) at org.codehaus.groovy.grails.plugins.quartz.GrailsJobFactory$GrailsTaskClassJob.execute(GrailsJobFactory.java:77) ... 2 more

    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

    derproggerderprogger
    49 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    linxiaolonglinxiaolong
    2 times, last one
    SteVio1989SteVio1989
    124 times, last one
    17 more bugmates