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.

  • Lazy Initialization Exception
    via jpasecurity by nurquiza
    ,
  • LIE on commit from Hibernate Search
    via by Unknown author,
  • GitHub comment 86#1193182
    via GitHub by sumitverma
    ,
  • could not initialize proxy - no Session
    via Stack Overflow by Taha berserk
    ,
  • Stateless is not working in AS 7
    via by Unknown author,
    • org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215) at net.sf.jpasecurity.persistence.JpaEntityWrapper$HibernateObjectWrapper.unwrap(JpaEntityWrapper.java:62) at net.sf.jpasecurity.persistence.JpaEntityWrapper.unwrap(JpaEntityWrapper.java:45) at net.sf.jpasecurity.entity.SecureEntityDecorator.refresh(SecureEntityDecorator.java:100) at net.sf.jpasecurity.entity.SecureEntityDecorator.refresh(SecureEntityDecorator.java:90) 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 net.sf.jpasecurity.proxy.CgLibSecureEntityProxyFactory$CgLibSecureEntityMethod.invoke(CgLibSecureEntityProxyFactory.java:134) at net.sf.jpasecurity.entity.SecureEntityInterceptor.intercept(SecureEntityInterceptor.java:70) at net.sf.jpasecurity.proxy.CgLibSecureEntityProxyFactory$CgLibMethodInterceptor.intercept(CgLibSecureEntityProxyFactory.java:102) at com.nu.model.Client$$EnhancerByCGLIB$$35369632.refresh(<generated>) at net.sf.jpasecurity.entity.SecureEntityInterceptor.intercept(SecureEntityInterceptor.java:68) at net.sf.jpasecurity.proxy.CgLibSecureEntityProxyFactory$CgLibMethodInterceptor.intercept(CgLibSecureEntityProxyFactory.java:102) at com.nu.model.Client$$EnhancerByCGLIB$$35369632.finalize(<generated>) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) at java.lang.ref.Finalizer.access$100(Finalizer.java:14) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

    Users with the same issue

    derprogger
    49 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    linxiaolong
    2 times, last one,
    SteVio1989
    124 times, last one,
    17 more bugmates