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

Atlassian JIRA | Cheryl Jerozal [Atlassian] | 7 years 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

    seeing this on all builds on my local 3.0 trunk instance. the builds don't save all info (like passing tests info): 2010-07-08 12:32:32,254 INFO [BAM::Default Agent::Agent:pool-4-thread-1] [SaveBuildTask] Saving build results to disk... 2010-07-08 12:32:32,400 INFO [BAM::Default Agent::Agent:pool-4-thread-1] [DefaultErrorHandler] Recording error: Could not save the build results. Data could be in an inconsistent state. : UPM-TRUNK : 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 2010-07-08 12:32:32,401 FATAL [BAM::Default Agent::Agent:pool-4-thread-1] [SaveBuildTask] Could not save the build results BuildResults: UPM-TRUNK-1. Data could be in an inconsistent state. 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 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) 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) 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) 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) 2010-07-08 12:32:32,401 ERROR [BAM::Default Agent::Agent:pool-4-thread-1] [SaveBuildTask] Attempting to clean up build results data 2010-07-08 12:32:32,401 INFO [BAM::Default Agent::Agent:pool-4-thread-1] [SaveBuildTask] Finished building UPM-TRUNK-1. 2010-07-08 12:32:32,402 ERROR [BAM::Default Agent::Agent:pool-4-thread-1] [LocalBuildResultProcessor] Unable to call SaveBuildTask 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) 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: 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 2010-07-08 12:32:32,407 INFO [BAM::Default Agent::Agent:pool-4-thread-1] [DashboardCacheListener] event: com.atlassian.bamboo.event.BuildFinishedEvent[source=com.atlassian.bamboo.build.DefaultBuildExecutionManager@7ce66597] 2010-07-08 12:32:32,417 ERROR [BAM::Default Agent::Agent:pool-4-thread-1] [BuildAgentControllerImpl] Unknown exception occurred on 'Default Agent'. Agent will attempt to recover its normal operation... 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 2010-07-08 12:32:32,417 INFO [BAM::Default Agent::Agent:pool-4-thread-1] [DefaultErrorHandler] Recording error: Unknown exception occurred on 'Default Agent'. Agent will attempt to recover its normal operation... : All Builds : java.lang.Exception: Could not save the build results BuildResults: UPM-TRUNK-1. Data could be in an inconsistent state.

    Atlassian JIRA | 7 years ago | Cheryl Jerozal [Atlassian]
    java.lang.Exception: Could not save the build results BuildResults: UPM-TRUNK-1. Data could be in an inconsistent state.
  2. 0

    seeing this on all builds on my local 3.0 trunk instance. the builds don't save all info (like passing tests info): 2010-07-08 12:32:32,254 INFO [BAM::Default Agent::Agent:pool-4-thread-1] [SaveBuildTask] Saving build results to disk... 2010-07-08 12:32:32,400 INFO [BAM::Default Agent::Agent:pool-4-thread-1] [DefaultErrorHandler] Recording error: Could not save the build results. Data could be in an inconsistent state. : UPM-TRUNK : 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 2010-07-08 12:32:32,401 FATAL [BAM::Default Agent::Agent:pool-4-thread-1] [SaveBuildTask] Could not save the build results BuildResults: UPM-TRUNK-1. Data could be in an inconsistent state. 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 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) 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) 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) 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) 2010-07-08 12:32:32,401 ERROR [BAM::Default Agent::Agent:pool-4-thread-1] [SaveBuildTask] Attempting to clean up build results data 2010-07-08 12:32:32,401 INFO [BAM::Default Agent::Agent:pool-4-thread-1] [SaveBuildTask] Finished building UPM-TRUNK-1. 2010-07-08 12:32:32,402 ERROR [BAM::Default Agent::Agent:pool-4-thread-1] [LocalBuildResultProcessor] Unable to call SaveBuildTask 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) 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: 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 2010-07-08 12:32:32,407 INFO [BAM::Default Agent::Agent:pool-4-thread-1] [DashboardCacheListener] event: com.atlassian.bamboo.event.BuildFinishedEvent[source=com.atlassian.bamboo.build.DefaultBuildExecutionManager@7ce66597] 2010-07-08 12:32:32,417 ERROR [BAM::Default Agent::Agent:pool-4-thread-1] [BuildAgentControllerImpl] Unknown exception occurred on 'Default Agent'. Agent will attempt to recover its normal operation... 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 2010-07-08 12:32:32,417 INFO [BAM::Default Agent::Agent:pool-4-thread-1] [DefaultErrorHandler] Recording error: Unknown exception occurred on 'Default Agent'. Agent will attempt to recover its normal operation... : All Builds : java.lang.Exception: Could not save the build results BuildResults: UPM-TRUNK-1. Data could be in an inconsistent state.

    Atlassian JIRA | 7 years ago | Cheryl Jerozal [Atlassian]
    java.lang.Exception: Could not save the build results BuildResults: UPM-TRUNK-1. Data could be in an inconsistent state.
  3. 0

    I'm not sure if this is MySQL related or not, it occurs on the OpenSymphony Confluence instance trying to remove pages. org.springframework.orm.hibernate.HibernateSystemException: Flush during cascade is dangerous - this might occur if an object was deleted and then re-saved by cascade (remove deleted object from associations); nested exception is: net.sf.hibernate.HibernateException: Flush during cascade is dangerous - this might occur if an object was deleted and then re-saved by cascade (remove deleted object from associations) net.sf.hibernate.HibernateException: Flush during cascade is dangerous - this might occur if an object was deleted and then re-saved by cascade (remove deleted object from associations) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2174) at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:711) at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1319) at net.sf.hibernate.engine.Cascades$4.cascade(Cascades.java:114) at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:436) at net.sf.hibernate.engine.Cascades.cascadeCollection(Cascades.java:526) at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:452) at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:503) at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:482) at net.sf.hibernate.impl.SessionImpl.preFlushEntities(SessionImpl.java:2583) at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2190) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2179) at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61) at org.springframework.orm.hibernate.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:309) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:218) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:172) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:196) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:135) at $Proxy83.removeContentEntity(Unknown Source) at com.atlassian.confluence.pages.actions.RemovePageAction.doRemove(RemovePageAction.java:45)

    Atlassian JIRA | 1 decade ago | Mike Cannon-Brookes
    net.sf.hibernate.HibernateException: Flush during cascade is dangerous - this might occur if an object was deleted and then re-saved by cascade (remove deleted object from associations)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    trying to remove this page http://confluence.atlassian.com/display/DISC/testing%2Bsearch produces this error : Cause: org.springframework.orm.hibernate.HibernateSystemException: Flush during cascade is dangerous - this might occur if an object was deleted and then re-saved by cascade (remove deleted object from associations); nested exception is: net.sf.hibernate.HibernateException: Flush during cascade is dangerous - this might occur if an object was deleted and then re-saved by cascade (remove deleted object from associations) Stack Trace: [hide] org.springframework.orm.hibernate.HibernateSystemException: Flush during cascade is dangerous - this might occur if an object was deleted and then re-saved by cascade (remove deleted object from associations); nested exception is: net.sf.hibernate.HibernateException: Flush during cascade is dangerous - this might occur if an object was deleted and then re-saved by cascade (remove deleted object from associations) net.sf.hibernate.HibernateException: Flush during cascade is dangerous - this might occur if an object was deleted and then re-saved by cascade (remove deleted object from associations) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2174) at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:711) at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1319) at net.sf.hibernate.engine.Cascades$4.cascade(Cascades.java:114) at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:436) at net.sf.hibernate.engine.Cascades.cascadeCollection(Cascades.java:526) at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:452) at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:503) at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:482) at net.sf.hibernate.impl.SessionImpl.preFlushEntities(SessionImpl.java:2583) at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2190) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2179) at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61) at org.springframework.orm.hibernate.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:309) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:218) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:172) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:196) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:135) at $Proxy97.removeContentEntity(Unknown Source) at com.atlassian.confluence.pages.actions.RemovePageAction.doRemove(RemovePageAction.java:45) 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:324) at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:309) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:175) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:37) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:170) at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:58) at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:32) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:170) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:37) at com.atlassian.confluence.core.ConfluenceValidationInterceptor.intercept(ConfluenceValidationInterceptor.java:18) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:170) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:37) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:170) at com.atlassian.confluence.security.actions.PermissionCheckInterceptor.intercept(PermissionCheckInterceptor.java:40) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:170) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:37) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:170) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:37) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:170) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:37) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:170) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:37) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:170) at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116) at com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:182) at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:162) at javax.servlet.http.HttpServlet.service(HttpServlet.java:103) at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:129) at com.atlassian.confluence.util.profiling.ProfilingPageFilter.parsePage(ProfilingPageFilter.java:36) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:61) at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:161) at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:181) at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88) at com.atlassian.johnson.filters.JohnsonFilter.doFilter(JohnsonFilter.java:96) at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88) at org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:83) at com.atlassian.confluence.setup.SpringSessionInViewFilter.doFilterInternal(SpringSessionInViewFilter.java:32) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:39) at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:38) at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88) at com.caucho.server.http.Invocation.service(Invocation.java:315) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163) at com.caucho.server.TcpConnection.run(TcpConnection.java:139) at java.lang.Thread.run(Thread.java:534) Referer URL: http://confluence.atlassian.com/pages/removepage.action?spaceKey=DISC&title=testing+search System Information: System Date: Wednesday, 28 Jan 2004

    Atlassian JIRA | 1 decade ago | Zohar Melamed
    net.sf.hibernate.HibernateException: Flush during cascade is dangerous - this might occur if an object was deleted and then re-saved by cascade (remove deleted object from associations)
  6. 0

    I get this exception when trying to edit my personal description: org.springframework.orm.hibernate.HibernateSystemException: Found shared references to a collection; nested exception is: net.sf.hibernate.HibernateException: Found shared references to a collection net.sf.hibernate.HibernateException: Found shared references to a collection at net.sf.hibernate.impl.SessionImpl.updateReachableCollection(SessionImpl.java:2785) at net.sf.hibernate.impl.FlushVisitor.processCollection(FlushVisitor.java:63) at net.sf.hibernate.impl.AbstractVisitor.processValue(AbstractVisitor.java:137) at net.sf.hibernate.impl.AbstractVisitor.processValues(AbstractVisitor.java:71) at net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2500) at net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2366) at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2200) at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2179) at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61) at org.springframework.orm.hibernate.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:309) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:218) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:172) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:196) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:135) at $Proxy6.savePersonalInformation(Unknown Source) at com.atlassian.confluence.user.actions.EditMyProfileAction.updatePersonalInformation(EditMyProfileAction.java:113) at com.atlassian.confluence.user.actions.EditMyProfileAction.doEdit(EditMyProfileAction.java:70)

    Atlassian JIRA | 1 decade ago | Mike Cannon-Brookes
    net.sf.hibernate.HibernateException: Found shared references to a collection

    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. net.sf.hibernate.HibernateException

      Found shared references to a collection: com.atlassian.bamboo.resultsummary.AbstractResultsSummary.jiraIssues

      at net.sf.hibernate.impl.SessionImpl.updateReachableCollection()
    2. net.sf.hibernate
      JDBCTransaction.commit
      1. net.sf.hibernate.impl.SessionImpl.updateReachableCollection(SessionImpl.java:2905)
      2. net.sf.hibernate.impl.FlushVisitor.processCollection(FlushVisitor.java:32)
      3. net.sf.hibernate.impl.AbstractVisitor.processValue(AbstractVisitor.java:69)
      4. net.sf.hibernate.impl.AbstractVisitor.processValues(AbstractVisitor.java:36)
      5. net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2618)
      6. net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2484)
      7. net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2279)
      8. net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2258)
      9. net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
      9 frames
    3. Hibernate
      HibernateTransactionManager.doCommit
      1. org.springframework.orm.hibernate.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:510)
      1 frame
    4. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:662)
      2. org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:632)
      3. org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:314)
      4. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116)
      4 frames
    5. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    6. Unknown
      $Proxy26.savePlan
      1. $Proxy26.savePlan(Unknown Source)
      1 frame
    7. com.atlassian.bamboo
      DefaultPlanScheduler$3.run
      1. com.atlassian.bamboo.build.DefaultBuildDefinitionManager$1.run(DefaultBuildDefinitionManager.java:105)
      2. com.atlassian.bamboo.schedule.PlanSchedulerCallback.run(PlanSchedulerCallback.java:24)
      3. com.atlassian.bamboo.schedule.DefaultPlanScheduler$3.run(DefaultPlanScheduler.java:64)
      3 frames
    8. com.atlassian.util
      ManagedLocks$ManagedLockImpl.withLock
      1. com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:322)
      1 frame
    9. com.atlassian.bamboo
      SaveBuildTask.call
      1. com.atlassian.bamboo.schedule.DefaultPlanScheduler.executeWithoutPlanSchdules(DefaultPlanScheduler.java:57)
      2. com.atlassian.bamboo.build.DefaultBuildDefinitionManager.savePlanAndDefinition(DefaultBuildDefinitionManager.java:92)
      3. com.atlassian.bamboo.build.pipeline.tasks.SaveBuildTask.updateVcsBuildDefinition(SaveBuildTask.java:140)
      4. com.atlassian.bamboo.build.pipeline.tasks.SaveBuildTask.call(SaveBuildTask.java:76)
      4 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    11. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    12. Hibernate
      HibernateInterceptor.invoke
      1. org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
      1 frame
    13. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      1 frame
    14. Hibernate
      HibernateInterceptor.invoke
      1. org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
      1 frame
    15. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    16. Unknown
      $Proxy270.call
      1. $Proxy270.call(Unknown Source)
      1 frame
    17. com.atlassian.bamboo
      NamedThreadFactory$2.run
      1. com.atlassian.bamboo.v2.build.agent.LocalBuildResultProcessor.processBuildResult(LocalBuildResultProcessor.java:144)
      2. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:115)
      3. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102)
      4. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:47)
      4 frames
    18. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame