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 | 3 months ago
  1. 0

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

    GitHub | 3 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 | 4 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)
  3. 0

    Failed to lazily initialize a collection of role in tree structure data

    Stack Overflow | 2 years ago
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.mypackage.Category.subcategories, could not initialize proxy - no Session
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Hibernate Lazy loading - no session

    Stack Overflow | 1 year ago | user3227576
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.test.product.domain.ProductBase.productComponent, could not initialize proxy - no Session
  6. 0

    Why does Spring close the DB-session in Runnable after first Repository method call?

    Stack Overflow | 2 years ago | Michael
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: eu.cite.model.Project.scenarios, could not initialize proxy - no Session

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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