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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by JamesENL

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

,
via Stack Overflow by Kleber Mota

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

Solutions on the web

via Stack Overflow by LeoK
, 11 months ago
failed to lazily initialize a collection of role: contacts.resources.Category.subcategory, could not initialize proxy - no Session
via Stack Overflow by diminuta
, 3 months ago
failed to lazily initialize a collection of role: es.mycompany.myapp.Patient.ids, could not initialize proxy - no Session
via Tridion by Will Price
, 1 year ago
failed to lazily initialize a collection of role: com.sdl.web.discovery.datalayer.model.jpa.JPAConfigurationItem.using, could not initialize proxy - no Session
via Coderanch by Markus Schmider, 11 months ago
failed to lazily initialize a collection of role: de.bwl.uis.module.wasserrecht.entity.Gesamtentscheidung.einzelentscheidungen, no session or session was closed
via Stack Overflow by Fabio Ebner
, 6 months ago
failed to lazily initialize a collection of role: br.com.lumera.cartoriointeligente.backend.entity.TbMovimentacao.pedidos, could not initialize proxy - no Session
via rapid-i.com by Unknown author, 1 year ago
failed to lazily initialize a collection of role: de.rapidanalytics.entity.PropertiesMap.properties, could not initialize proxy - no Session
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: contacts.resources.Category.subcategory, could not initialize proxy - no Session

Users with the same issue

22 times, 1 week ago
87 times, 2 weeks ago
Once, 3 weeks ago
12 times, 3 weeks ago
Once, 4 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.