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

GitHub | rafaela00castro | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    SR: erro lazy initialization (LIE) ao buscar SrItemConfiguracao.meuItemHistoricoSet

    GitHub | 7 months ago | rafaela00castro
    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
  2. 0

    SR: erro de LazyInitializationException ao fechar solicitação

    GitHub | 9 months ago | rafaela00castro
    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)

    Root Cause Analysis

    1. 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()
    2. Hibernate
      PersistentBag.get
      1. org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:566)
      2. org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:186)
      3. org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:545)
      4. org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:124)
      5. org.hibernate.collection.internal.PersistentBag.get(PersistentBag.java:439)
      5 frames
    3. br.gov.jfrj
      SolicitacaoController.escalonarGravar
      1. br.gov.jfrj.siga.sr.model.SrItemConfiguracao.getAtual(SrItemConfiguracao.java:198)
      2. br.gov.jfrj.siga.sr.model.SrConfiguracaoBL.deduzFiltro(SrConfiguracaoBL.java:43)
      3. br.gov.jfrj.siga.cp.bl.CpConfiguracaoBL.buscaConfiguracao(CpConfiguracaoBL.java:308)
      4. br.gov.jfrj.siga.sr.model.SrConfiguracao.buscar(SrConfiguracao.java:454)
      5. br.gov.jfrj.siga.sr.model.SrConfiguracao.buscarAssociacao(SrConfiguracao.java:469)
      6. br.gov.jfrj.siga.sr.model.SrSolicitacao.getAtributoAssociados(SrSolicitacao.java:835)
      7. br.gov.jfrj.siga.sr.model.SrSolicitacao.getObrigatoriedadeTiposAtributoAssociados(SrSolicitacao.java:813)
      8. br.gov.jfrj.siga.sr.vraptor.SolicitacaoController.validarFormReclassificar(SolicitacaoController.java:348)
      9. br.gov.jfrj.siga.sr.vraptor.SolicitacaoController.escalonarGravar(SolicitacaoController.java:736)
      9 frames