java.lang.RuntimeException

java.lang.Exception: Could not save the build results BuildResults: UPM-TRUNK-1. Data could be in an inconsistent state.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web35378

  • via Atlassian JIRA by Cheryl Jerozal [Atlassian], 11 months ago
    java.lang.Exception: Could not save the build results BuildResults: UPM-TRUNK-1. Data could be in an inconsistent state.
  • via Atlassian JIRA by Cheryl Jerozal [Atlassian], 1 year ago
    java.lang.Exception: Could not save the build results BuildResults: UPM-TRUNK-1. Data could be in an inconsistent state.
  • via Atlassian JIRA by Krystian Brazulewicz [Atlassian], 11 months ago
    java.lang.Exception: Could not save the build results BuildResults: RAN88534083-MAIN88534083-DEFAULT-1. Data could be in an inconsistent state.
  • Stack trace

    • java.lang.RuntimeException: java.lang.Exception: Could not save the build results BuildResults: UPM-TRUNK-1. Data could be in an inconsistent state. at com.atlassian.bamboo.v2.build.agent.LocalBuildResultProcessor.processBuildResult(LocalBuildResultProcessor.java:149) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:115) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:47) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.Exception: Could not save the build results BuildResults: UPM-TRUNK-1. Data could be in an inconsistent state. at com.atlassian.bamboo.build.pipeline.tasks.SaveBuildTask.call(SaveBuildTask.java:110) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy270.call(Unknown Source) at com.atlassian.bamboo.v2.build.agent.LocalBuildResultProcessor.processBuildResult(LocalBuildResultProcessor.java:144) ... 4 more Caused by: org.springframework.orm.hibernate.HibernateSystemException: Found shared references to a collection: com.atlassian.bamboo.resultsummary.AbstractResultsSummary.jiraIssues; nested exception is net.sf.hibernate.HibernateException: Found shared references to a collection: com.atlassian.bamboo.resultsummary.AbstractResultsSummary.jiraIssues at org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:597) at org.springframework.orm.hibernate.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:607) at org.springframework.orm.hibernate.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:518) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:662) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:632) at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:314) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy26.savePlan(Unknown Source) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager$1.run(DefaultBuildDefinitionManager.java:105) at com.atlassian.bamboo.schedule.PlanSchedulerCallback.run(PlanSchedulerCallback.java:24) at com.atlassian.bamboo.schedule.DefaultPlanScheduler$3.run(DefaultPlanScheduler.java:64) at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:322) at com.atlassian.bamboo.schedule.DefaultPlanScheduler.executeWithoutPlanSchdules(DefaultPlanScheduler.java:57) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.savePlanAndDefinition(DefaultBuildDefinitionManager.java:92) at com.atlassian.bamboo.build.pipeline.tasks.SaveBuildTask.updateVcsBuildDefinition(SaveBuildTask.java:140) at com.atlassian.bamboo.build.pipeline.tasks.SaveBuildTask.call(SaveBuildTask.java:76) ... 18 more Caused by: net.sf.hibernate.HibernateException: Found shared references to a collection: com.atlassian.bamboo.resultsummary.AbstractResultsSummary.jiraIssues at net.sf.hibernate.impl.SessionImpl.updateReachableCollection(SessionImpl.java:2905) at net.sf.hibernate.impl.FlushVisitor.processCollection(FlushVisitor.java:32) at net.sf.hibernate.impl.AbstractVisitor.processValue(AbstractVisitor.java:69) at net.sf.hibernate.impl.AbstractVisitor.processValues(AbstractVisitor.java:36) at net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2618) at net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2484) at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2279) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2258) at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61) at org.springframework.orm.hibernate.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:510) ... 33 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.