org.hibernate.LazyInitializationException

failed to lazily initialize a collection of role: br.gov.jfrj.siga.sr.model.SrItemConfiguracao.meuItemHistoricoSet, could not initialize proxy - no Session at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersist entCollection.java:569) at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentC ollection.java:188) at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:548 ) at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:126)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web714

  • failed to lazily initialize a collection of role: br.gov.jfrj.siga.sr.model.SrItemConfiguracao.meuItemHistoricoSet, could not initialize proxy - no Session at
  • failed to lazily initialize a collection of role: test.Parent.children, could not initialize proxy - no Session at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java
  • failed to lazily initialize a collection of role: com.previsionx.entities.Po.PoBuList, could not initialize proxy - no Session at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:572)
  • Stack trace

    • org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: br.gov.jfrj.siga.sr.model.SrItemConfiguracao.meuItemHistoricoSet, could not initialize proxy - no Session at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersist entCollection.java:569) at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentC ollection.java:188) at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:548 ) at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:126) at org.hibernate.collection.internal.PersistentBag.get(PersistentBag.java:439) at br.gov.jfrj.siga.sr.model.SrItemConfiguracao.getAtual(SrItemConfiguracao.java:198) at br.gov.jfrj.siga.sr.model.SrConfiguracaoBL.deduzFiltro(SrConfiguracaoBL.java:43)

    Write tip

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

    Users with the same issue

    You’re the first here who have seen this exception.