org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: entity.Order.orderLine, could not initialize proxy - no Session

co.jp | 2 months ago
  1. 0

    質問の編集履歴 - QA@IT

    co.jp | 8 months ago
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: entity.Order.orderLine, could not initialize proxy - no Session
  2. 0

    JPQLでhibernateを使用した際にLazyInitializationExceptionがでる - QA@IT

    co.jp | 2 months ago
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: entity.Order.orderLine, could not initialize proxy - no Session
  3. 0

    What is the best practice in handling proxy objects with hibernate?

    Stack Overflow | 2 years ago | Vercryger
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.myorg.testing.domains.Person.tasks, could not initialize proxy - no Session
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Glassfish to wildfly migration (from Eclipse link to Hibernate) : LazyInitializationException

    Stack Overflow | 2 years ago | Mr_and_Mrs_D
    movie.xhtml: javax.servlet.ServletException: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: dvd_store.entities.Movie.categories, could not initialize proxy - no Session
  6. 0

    FetchType.EAGER not working, as well as @Proxy(lazy=false)

    Stack Overflow | 2 years ago | lunatikz
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection, could not initialize proxy - no Session

  1. MoYapro 1 times, last 2 weeks ago
  2. MoYapro 3 times, last 4 months ago
  3. Shadd518 1 times, last 4 months ago
  4. linxiaolong 6 times, last 5 months ago
7 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

    failed to lazily initialize a collection of role: entity.Order.orderLine, could not initialize proxy - no Session

    at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException()
  2. Hibernate
    PersistentBag.size
    1. org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:575)
    2. org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:214)
    3. org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:155)
    4. org.hibernate.collection.internal.PersistentBag.size(PersistentBag.java:278)
    4 frames
  3. JavaEE 7
    ListDataModel.setRowIndex
    1. javax.faces.model.ListDataModel.isRowAvailable(ListDataModel.java:109)
    2. javax.faces.model.ListDataModel.setRowIndex(ListDataModel.java:184)
    2 frames