org.hibernate.LazyInitializationException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Use the proper ORM annotations (@ManyToOne and @OneToMany).

tip

Use eager fetch (fetch = FetchType.EAGER) annotation.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 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(AbstractPersistentCollection.java:575)

Users with the same issue

Pilleo
1 times, last one,
slash
1 times, last one,
ivanszkypeter
132 times, last one,
Unknown visitor1 times, last one,
linxiaolong
2 times, last one,
38 more bugmates