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

jpasecurity | nurquiza | 5 years ago
  1. 0

    Lazy Initialization Exception

    jpasecurity | 5 years ago | nurquiza
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  2. 0

    Error while indexing in Hibernate Search (before transaction completion)

    Stack Overflow | 4 years ago | Dangling Piyush
    org.springframework.orm.hibernate3.HibernateSystemException: Error while indexing in Hibernate Search (before transaction completion); nested exception is org.hibernate.HibernateException: Error while indexing in Hibernate Search (before transaction completion)
  3. 0

    LIE on commit from Hibernate Search

    Stack Overflow | 2 years ago
    org.springframework.orm.hibernate3.HibernateSystemException: Error while indexing in Hibernate Search (before transaction completion); nested exception is org.hibernate.HibernateException: Error while indexing in Hibernate Search (before transaction completion)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    could not initialize proxy - no Session

    GitHub | 5 years ago | dcrouch
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  6. 0

    GitHub comment 86#1193182

    GitHub | 6 years ago | sumitverma
    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:167)
      2. org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
      2 frames
    3. net.sf.jpasecurity
      SecureEntityDecorator.refresh
      1. net.sf.jpasecurity.persistence.JpaEntityWrapper$HibernateObjectWrapper.unwrap(JpaEntityWrapper.java:62)
      2. net.sf.jpasecurity.persistence.JpaEntityWrapper.unwrap(JpaEntityWrapper.java:45)
      3. net.sf.jpasecurity.entity.SecureEntityDecorator.refresh(SecureEntityDecorator.java:100)
      4. net.sf.jpasecurity.entity.SecureEntityDecorator.refresh(SecureEntityDecorator.java:90)
      4 frames
    4. 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
    5. net.sf.jpasecurity
      CgLibSecureEntityProxyFactory$CgLibMethodInterceptor.intercept
      1. net.sf.jpasecurity.proxy.CgLibSecureEntityProxyFactory$CgLibSecureEntityMethod.invoke(CgLibSecureEntityProxyFactory.java:134)
      2. net.sf.jpasecurity.entity.SecureEntityInterceptor.intercept(SecureEntityInterceptor.java:70)
      3. net.sf.jpasecurity.proxy.CgLibSecureEntityProxyFactory$CgLibMethodInterceptor.intercept(CgLibSecureEntityProxyFactory.java:102)
      3 frames
    6. com.nu.model
      TradeImport$$EnhancerByCGLIB$$a667862f.refresh
      1. com.nu.model.tradeimport.TradeImport$$EnhancerByCGLIB$$a667862f.refresh(<generated>)
      1 frame
    7. net.sf.jpasecurity
      CgLibSecureEntityProxyFactory$CgLibMethodInterceptor.intercept
      1. net.sf.jpasecurity.entity.SecureEntityInterceptor.intercept(SecureEntityInterceptor.java:68)
      2. net.sf.jpasecurity.proxy.CgLibSecureEntityProxyFactory$CgLibMethodInterceptor.intercept(CgLibSecureEntityProxyFactory.java:102)
      2 frames
    8. com.nu.model
      TradeImport$$EnhancerByCGLIB$$a667862f.finalize
      1. com.nu.model.tradeimport.TradeImport$$EnhancerByCGLIB$$a667862f.finalize(<generated>)
      1 frame
    9. Java RT
      Finalizer$FinalizerThread.run
      1. java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
      2. java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
      3. java.lang.ref.Finalizer.access$100(Finalizer.java:14)
      4. java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
      4 frames