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
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  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

    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