javax.persistence.PersistenceException: org.hibernate.LazyInitializationException: failed to lazily initialize a collection, no session or session was closed

Hibernate JIRA | Stu White | 6 years ago
  1. 0

    Reading a Set in PostLoad on JPA/Hibernate

    Stack Overflow | 5 years ago | Christophe
    javax.persistence.PersistenceException: org.hibernate.LazyInitializationException: failed to lazily initialize a collection, no session or session was closed
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Glassfish not picking up POSTGRES properties

    Stack Overflow | 5 years ago | Dhanush Gopinath
    javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: could not inspect JDBC autocommit mode
  4. 0

    Hibernate LazyInitializationException on find() with EAGER @ElementCollection

    Stack Overflow | 4 years ago | fommil
    javax.persistence.PersistenceException: org.hibernate.LazyInitializationException: illegal access to loading collection

    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. javax.persistence.PersistenceException

      org.hibernate.LazyInitializationException: failed to lazily initialize a collection, no session or session was closed

      at org.hibernate.ejb.AbstractEntityManagerImpl.convert()
    2. Hibernate EJB
      AbstractEntityManagerImpl.find
      1. org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1235)
      2. org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:631)
      3. org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:585)
      3 frames