org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: contacts.resources.Category.subcategory, could not initialize proxy - no Session

Stack Overflow | LeoK | 1 month ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0
    samebug tip
    Use eager fetch (fetch = FetchType.EAGER) annotation.
  2. 0

    How to retrieve data from Hibernate bidirectional OneToMany ManyToOne in Java Spring

    Stack Overflow | 1 month ago | LeoK
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: contacts.resources.Category.subcategory, could not initialize proxy - no Session
  3. 0

    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role

    Stack Overflow | 2 years ago | Hemanth Gowda
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.hemanths.expense.manager.api.hibernate.entity.Category.subCategories, could not initialize proxy - no Session
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    A server error 500 occurred: ....

    rapid-i.com | 11 months ago
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: de.rapidanalytics.entity.PropertiesMap.properties, could not initialize proxy - no Session
  6. 0

    Hibernate problem for accessing monolingualExternalRefs

    GitHub | 2 years ago | judithek
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: de.tudarmstadt.ukp.lmf.model.core.Sense.monolingualExternalRefs, could not initialize proxy - no Session

    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: contacts.resources.Category.subcategory, could not initialize proxy - no Session

      at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException()
    2. Hibernate
      AbstractPersistentCollection.throwLazyInitializationException
      1. org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:575)
      1 frame