org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.atlassian.bamboo.resultsummary.vcs.Reposit oryChangesetImpl.commits, no session or session was closed

Atlassian JIRA | Andre Borzzatto [Atlassian] | 1 year ago
  1. 0

    {code} 2015-07-22 01:55:37,556 ERROR [http-bio-8085-exec-66] [MovePlanServiceImpl] Error while moving plan org.springframework.orm.hibernate3.HibernateSystemException: failed to lazily initialize a collection of role: com.atlassian.bamboo.resultsummary.vcs.RepositoryChangesetImpl.commits, no se ssion or session was closed; nested exception is org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.atlassian.bamboo.resultsummary.vcs.Reposit oryChangesetImpl.commits, no session or session was closed at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:708) at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:414) (...) Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.atlassian.bamboo.resultsummary.vcs.RepositoryChangesetImpl.commits, no session or session was closed at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383) at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375) at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:122) at org.hibernate.collection.PersistentSet.size(PersistentSet.java:162) at com.google.common.collect.ImmutableList$Builder.addAll(ImmutableList.java:598) at com.atlassian.bamboo.resultsummary.BaseResultSummary.getCommits(BaseResultSummary.java:386) at com.atlassian.bamboo.resultsummary.BaseResultSummary.getUniqueAuthors(BaseResultSummary.java:280) at com.atlassian.bamboo.index.buildresult.BuildResultsSummaryDocumentFactory$5.run(BuildResultsSummaryDocumentFactory.java:220) at com.atlassian.bamboo.util.BambooProfilingUtils.withUtilTimerStack(BambooProfilingUtils.java:98) at com.atlassian.bamboo.index.buildresult.BuildResultsSummaryDocumentFactory.addAuthorDataToDocument(BuildResultsSummaryDocumentFactory.java:215) at com.atlassian.bamboo.index.buildresult.BuildResultsSummaryDocumentFactory.access$200(Bu {code} Changin LAZY to FULL in indexPlan is possibly a solution.

    Atlassian JIRA | 1 year ago | Andre Borzzatto [Atlassian]
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.atlassian.bamboo.resultsummary.vcs.Reposit oryChangesetImpl.commits, no session or session was closed
  2. 0

    {code} 2015-07-22 01:55:37,556 ERROR [http-bio-8085-exec-66] [MovePlanServiceImpl] Error while moving plan org.springframework.orm.hibernate3.HibernateSystemException: failed to lazily initialize a collection of role: com.atlassian.bamboo.resultsummary.vcs.RepositoryChangesetImpl.commits, no se ssion or session was closed; nested exception is org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.atlassian.bamboo.resultsummary.vcs.Reposit oryChangesetImpl.commits, no session or session was closed at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:708) at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:414) (...) Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.atlassian.bamboo.resultsummary.vcs.RepositoryChangesetImpl.commits, no session or session was closed at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383) at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375) at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:122) at org.hibernate.collection.PersistentSet.size(PersistentSet.java:162) at com.google.common.collect.ImmutableList$Builder.addAll(ImmutableList.java:598) at com.atlassian.bamboo.resultsummary.BaseResultSummary.getCommits(BaseResultSummary.java:386) at com.atlassian.bamboo.resultsummary.BaseResultSummary.getUniqueAuthors(BaseResultSummary.java:280) at com.atlassian.bamboo.index.buildresult.BuildResultsSummaryDocumentFactory$5.run(BuildResultsSummaryDocumentFactory.java:220) at com.atlassian.bamboo.util.BambooProfilingUtils.withUtilTimerStack(BambooProfilingUtils.java:98) at com.atlassian.bamboo.index.buildresult.BuildResultsSummaryDocumentFactory.addAuthorDataToDocument(BuildResultsSummaryDocumentFactory.java:215) at com.atlassian.bamboo.index.buildresult.BuildResultsSummaryDocumentFactory.access$200(Bu {code} Changin LAZY to FULL in indexPlan is possibly a solution.

    Atlassian JIRA | 1 year ago | Andre Borzzatto [Atlassian]
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.atlassian.bamboo.resultsummary.vcs.Reposit oryChangesetImpl.commits, no session or session was closed
  3. 0

    Problem with LazyInitializationException

    Stack Overflow | 6 years ago | DaJackal
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: model.Transformator.poze, no session or session was closed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to save pojo

    Google Groups | 8 years ago | zobilamouche
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: net.homeip.eric13.elib.core.model.Rubric.bookRubrics, no session or session was closed
  6. 0

    LazyInitializationException when update child collection back to parent

    manning.com | 2 months ago
    org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: Parent.Ks no session or session was closed

    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: com.atlassian.bamboo.resultsummary.vcs.Reposit oryChangesetImpl.commits, no session or session was closed

      at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException()
    2. Hibernate
      HibernateAccessor.convertHibernateAccessException
      1. org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:708)
      2. org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:414)
      2 frames