org.hibernate.LazyInitializationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • session 1 « Transaction « Spring Q&A
    via by Unknown author,
  • could not initialize proxy - no Session
    via Stack Overflow by Taha berserk
    ,
  • AppFuse - User - Lazy Exception again. WTF?
    via by Unknown author,
    • org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:57) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150) at beans.Country$$EnhancerByCGLIB$$e757f40e.getStringId(<generated>) at beans.Address.getCountryStringId(Address.java:137) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    Users with the same issue

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