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

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 GitHub by rafaela00castro
, 1 year ago
failed to lazily initialize a collection of role: br.gov.jfrj.siga.sr.model.SrItemConfiguracao.meuItemHistoricoSet, could not initialize proxy - no Session
via rapidminer.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
via Stack Overflow by Faraine
, 1 year ago
failed to lazily initialize a collection of role: xy.Employee.legitimacies, could not initialize proxy - no Session
via Stack Overflow by choquero70
, 2 years ago
failed to lazily initialize a collection of role: modelo.entidades.Categoria.clientes, could not initialize proxy - no Session
via Stack Overflow by svjn
, 2 years ago
failed to lazily initialize a collection of role: com.wpt.models.Item.itemCategory, could not initialize proxy - no Session
via Stack Overflow by Hemanth Gowda
, 2 years ago
failed to lazily initialize a collection of role: com.hemanths.expense.manager.api.hibernate.entity.Category.subCategories, could not initialize proxy - no Session
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(AbstractPersistentCollection.java:566)
at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:186)
at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:545)
at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:124)
at br.gov.jfrj.siga.sr.model.SrItemConfiguracao.getAtual(SrItemConfiguracao.java:198)
at br.gov.jfrj.siga.sr.model.SrConfiguracaoBL.deduzFiltro(SrConfiguracaoBL.java:43)
at br.gov.jfrj.siga.cp.bl.CpConfiguracaoBL.buscaConfiguracao(CpConfiguracaoBL.java:308)
at br.gov.jfrj.siga.sr.model.SrConfiguracao.buscar(SrConfiguracao.java:454)
at br.gov.jfrj.siga.sr.model.SrConfiguracao.buscarAssociacao(SrConfiguracao.java:469)
at br.gov.jfrj.siga.sr.model.SrSolicitacao.getAtributoAssociados(SrSolicitacao.java:835)
at br.gov.jfrj.siga.sr.model.SrSolicitacao.getObrigatoriedadeTiposAtributoAssociados(SrSolicitacao.java:813)
at br.gov.jfrj.siga.sr.vraptor.SolicitacaoController.validarFormReclassificar(SolicitacaoController.java:348)
at br.gov.jfrj.siga.sr.vraptor.SolicitacaoController.escalonarGravar(SolicitacaoController.java:736)

Users with the same issue

Once, 5 days ago
12 times, 6 days ago
Once, 4 months ago
5 times, 4 months ago
3 times, 4 months ago
41 more bugmates

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