org.hibernate.LazyInitializationException: could not initialize proxy - no Session

Oracle Community | Eric ZHOU | 5 years ago
  1. 0

    Batch error:org.hibernate.LazyInitializationException:could not initialize

    Oracle Community | 5 years ago | Eric ZHOU
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  2. 0

    What is wrong with my Spring Hibernate Transaction Management Configuration?

    Stack Overflow | 6 years ago | despot
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  3. 0

    Hibernate/Spring3: could not initialize proxy - no Session

    Stack Overflow | 7 years ago | niklassaers
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    could not initialize proxy - no Session

    Stack Overflow | 3 years ago | Taha berserk
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  6. 0

    Why am I getting a Hibernate LazyInitializationException in this Spring MVC web application when the data displays correctly?

    Stack Overflow | 8 years ago | James McMahon
    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:57)
      2. org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111)
      2 frames
    3. Hibernate
      CGLIBLazyInitializer.invoke
      1. org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150)
      1 frame
    4. com.splwg.domain
      Field$$EnhancerByCGLIB$$2ea140ac.equals
      1. com.splwg.domain.database.field.Field$$EnhancerByCGLIB$$2ea140ac.equals(<generated>)
      1 frame
    5. Hibernate
      EqualsHelper.equals
      1. org.hibernate.util.EqualsHelper.equals(EqualsHelper.java:10)
      1 frame
    6. Hibernate
      CacheKey.equals
      1. org.hibernate.type.AbstractType.isEqual(AbstractType.java:108)
      2. org.hibernate.type.ComponentType.isEqual(ComponentType.java:125)
      3. org.hibernate.cache.CacheKey.equals(CacheKey.java:56)
      3 frames
    7. Java RT
      HashMap.put
      1. java.util.HashMap.eq(HashMap.java:299)
      2. java.util.HashMap.removeEntryForKey(HashMap.java:602)
      3. java.util.LinkedHashMap.addEntry(LinkedHashMap.java:403)
      4. java.util.HashMap.put(HashMap.java:431)
      4 frames
    8. Ehcache
      Cache.put
      1. net.sf.ehcache.store.MemoryStore.put(MemoryStore.java:107)
      2. net.sf.ehcache.Cache.put(Cache.java:569)
      3. net.sf.ehcache.Cache.put(Cache.java:522)
      3 frames
    9. Hibernate
      AbstractEntityPersister.load
      1. org.hibernate.cache.EhCache.put(EhCache.java:119)
      2. org.hibernate.cache.ReadOnlyCache.put(ReadOnlyCache.java:59)
      3. org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:156)
      4. org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:854)
      5. org.hibernate.loader.Loader.doQuery(Loader.java:729)
      6. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
      7. org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
      8. org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
      9. org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42)
      10. org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3044)
      10 frames
    10. Hibernate
      SessionImpl.immediateLoad
      1. org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:395)
      2. org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:375)
      3. org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:139)
      4. org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:98)
      5. org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
      6. org.hibernate.impl.SessionImpl.immediateLoad(SessionImpl.java:836)
      6 frames
    11. Hibernate
      AbstractLazyInitializer.getImplementation
      1. org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:66)
      2. org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111)
      2 frames
    12. Hibernate
      CGLIBLazyInitializer.invoke
      1. org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150)
      1 frame
    13. com.splwg.domain
      Table$$EnhancerByCGLIB$$45175954.getEntityId
      1. com.splwg.domain.database.table.Table$$EnhancerByCGLIB$$45175954.getEntityId(<generated>)
      1 frame
    14. com.splwg.base
      ForeignKeyReference_Impl.getEntityId
      1. com.splwg.base.domain.common.foreignKeyReference.ForeignKeyReference_Impl.getEntityId(ForeignKeyReference_Impl.java:113)
      1 frame
    15. com.splwg.domain
      ForeignKeyReference__$$FastClassByCGLIB$$2da43d5d.invoke
      1. com.splwg.domain.common.foreignKeyReference.ForeignKeyReference__.CGLIB$getEntityId$36(<generated>)
      2. com.splwg.domain.common.foreignKeyReference.ForeignKeyReference__$$FastClassByCGLIB$$2da43d5d.invoke(<generated>)
      2 frames
    16. IDEA
      MethodProxy.invokeSuper
      1. net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
      1 frame
    17. com.splwg.base
      BusinessMethodInterceptor.intercept
      1. com.splwg.base.support.interception.BusinessMethodInterceptor.intercept(BusinessMethodInterceptor.java:84)
      1 frame
    18. com.splwg.domain
      ForeignKeyReference__.getEntityId
      1. com.splwg.domain.common.foreignKeyReference.ForeignKeyReference__.getEntityId(<generated>)
      1 frame
    19. com.splwg.base
      ToDoCreator_Impl__$$FastClassByCGLIB$$34cc8eda.invoke
      1. com.splwg.base.support.changehandlers.characteristic.AbstractCharacteristicValueInstance.getFKEntityId(AbstractCharacteristicValueInstance.java:110)
      2. com.splwg.base.support.changehandlers.characteristic.SimpleCharacteristicValueValidation.verifyFKIsValid(SimpleCharacteristicValueValidation.java:218)
      3. com.splwg.base.support.changehandlers.characteristic.SimpleCharacteristicValueValidation.validateFKCharacteristic(SimpleCharacteristicValueValidation.java:119)
      4. com.splwg.base.support.changehandlers.characteristic.SimpleCharacteristicValueValidation.validateAddOrChange(SimpleCharacteristicValueValidation.java:84)
      5. com.splwg.base.support.changehandlers.characteristic.EntityCharacteristicValueValidation.validateAddOrChange(EntityCharacteristicValueValidation.java:125)
      6. com.splwg.base.support.changehandlers.characteristic.EntityCharacteristicValueValidation.validateAddOrChange(EntityCharacteristicValueValidation.java:117)
      7. com.splwg.base.api.changehandling.AbstractCustomRule.handleWhenConditionalsAreTrue(AbstractCustomRule.java:61)
      8. com.splwg.base.support.changehandlers.AbstractValidationRule.applyRule(AbstractValidationRule.java:92)
      9. com.splwg.base.support.changehandlers.ChangeEventHandler.applyRule(ChangeEventHandler.java:289)
      10. com.splwg.base.support.changehandlers.ChangeEventHandler.access$300(ChangeEventHandler.java:37)
      11. com.splwg.base.support.changehandlers.ChangeEventHandler$2.run(ChangeEventHandler.java:220)
      12. com.splwg.base.support.changehandlers.ChangeEventHandler$JumpToChangeHandlerRunner.run(ChangeEventHandler.java:334)
      13. com.splwg.base.support.interception.SessionInterceptionManager.notifyGenericCallStackJump(SessionInterceptionManager.java:264)
      14. com.splwg.base.support.context.FrameworkSession.notifyGenericCallStackJump(FrameworkSession.java:1361)
      15. com.splwg.base.support.changehandlers.ChangeEventHandler.executeValidation(ChangeEventHandler.java:224)
      16. com.splwg.base.support.changehandlers.SessionChangeManager.fireEagerValidations(SessionChangeManager.java:157)
      17. com.splwg.base.support.changehandlers.SessionChangeManager.fireEvents(SessionChangeManager.java:110)
      18. com.splwg.base.support.changehandlers.SessionChangeManager.setDTOCalled(SessionChangeManager.java:64)
      19. com.splwg.base.support.context.FrameworkSession.setDTOCalled(FrameworkSession.java:709)
      20. com.splwg.base.support.api.AbstractBusinessEntity.completeSetAbstractDTO(AbstractBusinessEntity.java:133)
      21. com.splwg.base.support.context.FrameworkSession.createBusinessEntity(FrameworkSession.java:952)
      22. com.splwg.base.support.impl.AbstractDataTransferObject$1.run(AbstractDataTransferObject.java:76)
      23. com.splwg.base.support.impl.AbstractDataTransferObject$JumpFromDTORunner.run(AbstractDataTransferObject.java:166)
      24. com.splwg.base.support.interception.SessionInterceptionManager.notifyGenericCallStackJump(SessionInterceptionManager.java:264)
      25. com.splwg.base.support.context.FrameworkSession.notifyGenericCallStackJump(FrameworkSession.java:1361)
      26. com.splwg.base.support.impl.AbstractDataTransferObject.abstractNewEntity(AbstractDataTransferObject.java:82)
      27. com.splwg.base.domain.todo.toDoEntry.ToDoEntryCharacteristic_DTO.newEntity(ToDoEntryCharacteristic_DTO.java:215)
      28. com.splwg.base.domain.todo.toDoEntry.ToDoEntryCharacteristics_Gen.add(ToDoEntryCharacteristics_Gen.java:57)
      29. com.splwg.base.domain.todo.toDoEntry.ToDoCreator_Impl.createCharacteristics(ToDoCreator_Impl.java:254)
      30. com.splwg.base.domain.todo.toDoEntry.ToDoCreator_Impl.create(ToDoCreator_Impl.java:159)
      31. com.splwg.base.domain.todo.toDoEntry.ToDoCreator_Impl__.CGLIB$create$0(<generated>)
      32. com.splwg.base.domain.todo.toDoEntry.ToDoCreator_Impl__$$FastClassByCGLIB$$34cc8eda.invoke(<generated>)
      32 frames
    20. IDEA
      MethodProxy.invokeSuper
      1. net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
      1 frame
    21. com.splwg.base
      ToDoCreator_Impl__.create
      1. com.splwg.base.support.interception.BusinessMethodInterceptor.intercept(BusinessMethodInterceptor.java:84)
      2. com.splwg.base.domain.todo.toDoEntry.ToDoCreator_Impl__.create(<generated>)
      2 frames
    22. com.splwg.ccb
      ToDoEntryProcessor_Impl__$$FastClassByCGLIB$$e2ab76d1.invoke
      1. com.splwg.ccb.domain.todo.toDoEntry.ToDoEntryProcessor_Impl.add(ToDoEntryProcessor_Impl.java:166)
      2. com.splwg.ccb.domain.todo.toDoEntry.ToDoEntryProcessor_Impl.addToDo(ToDoEntryProcessor_Impl.java:61)
      3. com.splwg.ccb.domain.todo.toDoEntry.ToDoEntryProcessor_Impl__.CGLIB$addToDo$0(<generated>)
      4. com.splwg.ccb.domain.todo.toDoEntry.ToDoEntryProcessor_Impl__$$FastClassByCGLIB$$e2ab76d1.invoke(<generated>)
      4 frames
    23. IDEA
      MethodProxy.invokeSuper
      1. net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
      1 frame
    24. com.splwg.base
      BusinessMethodInterceptor.intercept
      1. com.splwg.base.support.interception.BusinessMethodInterceptor.intercept(BusinessMethodInterceptor.java:84)
      1 frame
    25. com.splwg.ccb
      ToDoEntryProcessor_Impl__.addToDo
      1. com.splwg.ccb.domain.todo.toDoEntry.ToDoEntryProcessor_Impl__.addToDo(<generated>)
      1 frame
    26. com.splwg.cm
      CmlPayment_CHandler.prepareToAdd
      1. com.splwg.cm.domain.payment.payment.CmlPayment_CHandler.createToDoEntryForAdjustment(CmlPayment_CHandler.java:250)
      2. com.splwg.cm.domain.payment.payment.CmlPayment_CHandler.prepareToAdd(CmlPayment_CHandler.java:150)
      2 frames
    27. com.splwg.base
      JavaRowUserExitHandler.handle
      1. com.splwg.base.support.changehandlers.HandlerPrepareMethodRunner$1.run(HandlerPrepareMethodRunner.java:44)
      2. com.splwg.base.support.changehandlers.HandlerPrepareMethodRunner$JumpToChangeHandlerRunner.run(HandlerPrepareMethodRunner.java:64)
      3. com.splwg.base.support.interception.SessionInterceptionManager.notifyGenericCallStackJump(SessionInterceptionManager.java:264)
      4. com.splwg.base.support.context.FrameworkSession.notifyGenericCallStackJump(FrameworkSession.java:1361)
      5. com.splwg.base.support.changehandlers.HandlerPrepareMethodRunner.fireForOneHandler(HandlerPrepareMethodRunner.java:53)
      6. com.splwg.base.support.cobol.JavaRowUserExitHandler.processPrechangeEvent(JavaRowUserExitHandler.java:280)
      7. com.splwg.base.support.cobol.JavaRowUserExitHandler.handleAboutToAdd(JavaRowUserExitHandler.java:274)
      8. com.splwg.base.support.cobol.JavaRowUserExitHandler.handleCHandler(JavaRowUserExitHandler.java:242)
      9. com.splwg.base.support.cobol.JavaRowUserExitHandler.privateHandle(JavaRowUserExitHandler.java:193)
      10. com.splwg.base.support.cobol.JavaRowUserExitHandler.handle(JavaRowUserExitHandler.java:68)
      10 frames
    28. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor1723.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:592)
      3 frames
    29. com.splwg.base
      CobolToJavaClient.callJava
      1. com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache$MethodDispatcher.dispatchToRequestedMethod(CobolToJavaGateway.java:337)
      2. com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache$MethodDispatcher.access$300(CobolToJavaGateway.java:255)
      3. com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache.dispatchToRequestedMethod(CobolToJavaGateway.java:250)
      4. com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache.access$000(CobolToJavaGateway.java:232)
      5. com.splwg.base.support.cobol.CobolToJavaGateway.callJava(CobolToJavaGateway.java:65)
      6. com.splwg.base.support.cobol.host.command.CobolToJavaGatewayCommand.invoke(CobolToJavaGatewayCommand.java:33)
      7. com.splwg.base.support.cobol.host.SingleJvmRunner.invoke(SingleJvmRunner.java:22)
      8. com.splwg.base.support.cobol.host.CommandRunnerHolder.invoke(CommandRunnerHolder.java:31)
      9. com.splwg.base.support.cobol.host.CobolToJavaClient.privateCallJava(CobolToJavaClient.java:166)
      10. com.splwg.base.support.cobol.host.CobolToJavaClient.callJava(CobolToJavaClient.java:134)
      10 frames
    30. com.microfocus.cobol
      RuntimeSystem.cobcall
      1. com.microfocus.cobol.RuntimeSystem.cobcall(Native Method)
      1 frame
    31. com.splwg.base
      NewCobolThreadExecuter.run
      1. com.splwg.base.support.cobol.host.command.CallCobolCommand.invoke(CallCobolCommand.java:73)
      2. com.splwg.base.support.cobol.host.SingleJvmRunner.invoke(SingleJvmRunner.java:22)
      3. com.splwg.base.support.cobol.host.CommandRunnerHolder.invoke(CommandRunnerHolder.java:31)
      4. com.splwg.base.support.cobol.AbstractCobolProgram$CallCobolClosure.run(AbstractCobolProgram.java:195)
      5. com.splwg.base.support.interception.SessionInterceptionManager.notifyGenericCallStackJump(SessionInterceptionManager.java:264)
      6. com.splwg.base.support.context.FrameworkSession.notifyGenericCallStackJump(FrameworkSession.java:1361)
      7. com.splwg.base.support.cobol.AbstractCobolProgram$1.run(AbstractCobolProgram.java:115)
      8. com.splwg.base.support.batch.NewCobolThreadExecuter.run(NewCobolThreadExecuter.java:94)
      8 frames
    32. Dough Lea's util.concurrent package
      PooledExecutor$Worker.run
      1. EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
      1 frame