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

  1. ,
    via Stack Overflow by JamesENL

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

  2. ,
    via Stack Overflow by Kleber Mota

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

Solutions on the web

via co.jp by Unknown author, 1 year ago
failed to lazily initialize a collection of role: entity.Order.orderLine, could not initialize proxy - no Session
via co.jp by Unknown author, 1 year ago
failed to lazily initialize a collection of role: entity.Order.orderLine, could not initialize proxy - no Session
via Stack Overflow by ProSyth
, 2 years ago
failed to lazily initialize a collection of role: com.atorresbr.springapp.model.Empresa.ldiarios, could not initialize proxy - no Session
via Stack Overflow by alexander
, 11 months ago
failed to lazily initialize a collection of role: de.financeme.model.MonthOverview.records, could not initialize proxy - no Session
via Stack Overflow by Vercryger
, 2 years ago
failed to lazily initialize a collection of role: org.myorg.testing.domains.Person.tasks, could not initialize proxy - no Session
via jhuep.com by Unknown author, 2 years ago
failed to lazily initialize a collection of role: org.myorg.jpatickets.bo.Event.tickets, could not initialize proxy - no Session
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(AbstractPersistentCollection.java:575)	at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:214)	at org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:155)	at org.hibernate.collection.internal.PersistentBag.size(PersistentBag.java:278)	at javax.faces.model.ListDataModel.isRowAvailable(ListDataModel.java:109)	at javax.faces.model.ListDataModel.setRowIndex(ListDataModel.java:184)