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

Atlassian JIRA | Jacek Jaroczynski [Atlassian] Bugmaster | 2 years ago
  1. 0

    {code} [3068800461] listeners.ExceptionPrinterJobListener Exception occured in job: GRAILS_JOBS.translate.GengoImportJob 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 {code}

    Atlassian JIRA | 2 years ago | Jacek Jaroczynski [Atlassian]
    org.quartz.JobExecutionException: could not initialize proxy - no Session [See nested exception: org.hibernate.LazyInitializationException: could not initialize proxy - no Session]
  2. 0

    {code} [3068800461] listeners.ExceptionPrinterJobListener Exception occured in job: GRAILS_JOBS.translate.GengoImportJob 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 {code}

    Atlassian JIRA | 2 years ago | Jacek Jaroczynski [Atlassian] Bugmaster
    org.quartz.JobExecutionException: could not initialize proxy - no Session [See nested exception: org.hibernate.LazyInitializationException: could not initialize proxy - no Session]
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Hibernate search problem - could not initialize proxy - no Session

    Stack Overflow | 7 years ago
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session

    2 unregistered visitors
    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.LazyInitializationException

      could not initialize proxy - no Session

      at org.hibernate.proxy.AbstractLazyInitializer.initialize()
    2. Hibernate
      AbstractLazyInitializer.getImplementation
      1. org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:86)
      2. org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:140)
      2 frames
    3. Grails
      GroovyAwareJavassistLazyInitializer.invoke
      1. org.codehaus.groovy.grails.orm.hibernate.proxy.GroovyAwareJavassistLazyInitializer.invoke(GroovyAwareJavassistLazyInitializer.java:195)
      1 frame
    4. translate
      Version_$$_javassist_21.toString
      1. translate.Version_$$_javassist_21.toString(Version_$$_javassist_21.java)
      1 frame
    5. Groovy
      ScriptBytecodeAdapter.castToType
      1. org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:550)
      2. org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:504)
      3. org.codehaus.groovy.runtime.InvokerHelper.toString(InvokerHelper.java:114)
      4. org.codehaus.groovy.runtime.InvokerHelper.write(InvokerHelper.java:494)
      5. groovy.lang.GString.writeTo(GString.java:189)
      6. groovy.lang.GString.toString(GString.java:161)
      7. org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:226)
      8. org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:602)
      8 frames
    6. translate
      GengoOrder.toString
      1. translate.GengoOrder.toString(GengoOrder.groovy:21)
      1 frame
    7. Groovy
      AbstractCallSite.call
      1. org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:550)
      2. org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:504)
      3. org.codehaus.groovy.runtime.InvokerHelper.formatMap(InvokerHelper.java:570)
      4. org.codehaus.groovy.runtime.InvokerHelper.toMapString(InvokerHelper.java:647)
      5. org.codehaus.groovy.runtime.InvokerHelper.toMapString(InvokerHelper.java:636)
      6. org.codehaus.groovy.runtime.InvokerHelper.toString(InvokerHelper.java:113)
      7. org.codehaus.groovy.runtime.DefaultGroovyMethods.toString(DefaultGroovyMethods.java:8880)
      8. org.codehaus.groovy.runtime.DefaultGroovyMethods.plus(DefaultGroovyMethods.java:8314)
      9. org.codehaus.groovy.runtime.dgm$470.invoke(Unknown Source)
      10. org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
      11. org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
      12. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
      13. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      14. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
      14 frames
    8. translate
      GengoImportJob$_execute_closure1.doCall
      1. translate.GengoImportJob$_execute_closure1.doCall(GengoImportJob.groovy:30)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor7810.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    10. Groovy
      AbstractCallSite.callCurrent
      1. org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225)
      2. org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
      3. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
      4. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
      5. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
      5 frames
    11. translate
      GengoImportJob$_execute_closure1.doCall
      1. translate.GengoImportJob$_execute_closure1.doCall(GengoImportJob.groovy)
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor7809.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    13. Groovy
      Closure$call$56.call
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
      3. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
      4. groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
      5. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
      6. groovy.lang.Closure.call(Closure.java:282)
      7. groovy.lang.Closure.call(Closure.java:277)
      8. groovy.lang.Closure$call$56.call(Unknown Source)
      8 frames
    14. translate.imports
      ImportService$acquireImportLock.call
      1. translate.imports.ImportService.acquireImportLock(ImportService.groovy:29)
      2. translate.imports.ImportService$acquireImportLock.call(Unknown Source)
      2 frames
    15. Groovy
      AbstractCallSite.call
      1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
      2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
      3 frames
    16. translate
      GengoImportJob.execute
      1. translate.GengoImportJob.execute(GengoImportJob.groovy:24)
      1 frame
    17. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    18. Spring Core
      ReflectionUtils.invokeMethod
      1. org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:186)
      2. org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:171)
      2 frames
    19. org.codehaus.groovy
      GrailsJobFactory$GrailsTaskClassJob.execute
      1. org.codehaus.groovy.grails.plugins.quartz.GrailsJobFactory$GrailsTaskClassJob.execute(GrailsJobFactory.java:77)
      1 frame
    20. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
      2 frames