• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 2.6 rc1, 2.6
    • 2.6 M6
    • None
    • None
    • tardigrade

      java.lang.NullPointerException
      at com.atlassian.bamboo.resultsummary.BuildResultsSummaryManagerImpl.updateBuildSummaryFromBuildResults(BuildResultsSummaryManagerImpl.java:133)
      at sun.reflect.GeneratedMethodAccessor980.invoke(Unknown Source)
      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 com.atlassian.bamboo.security.acegi.intercept.aopalliance.AuthorityOverrideMethodSecurityInterceptor.invoke(AuthorityOverrideMethodSecurityInterceptor.java:30)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.atlassian.bamboo.security.acegi.intercept.aopalliance.AuthorityOverrideMethodSecurityInterceptor.invoke(AuthorityOverrideMethodSecurityInterceptor.java:30)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy22.updateBuildSummaryFromBuildResults(Unknown Source)
      at com.atlassian.bamboo.build.pipeline.tasks.SaveBuildTask.call(SaveBuildTask.java:58)
      at sun.reflect.GeneratedMethodAccessor537.invoke(Unknown Source)
      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 $Proxy206.call(Unknown Source)
      at com.atlassian.bamboo.v2.build.agent.LocalBuildResultProcessor.processBuildResult(LocalBuildResultProcessor.java:150)
      at com.atlassian.bamboo.v2.build.agent.messages.ProcessBuildResult.deliver(ProcessBuildResult.java:27)
      at com.atlassian.bamboo.v2.build.agent.messages.BatchRemoteBambooMessage.deliver(BatchRemoteBambooMessage.java:39)
      at com.atlassian.bamboo.v2.build.agent.BambooAgentMessageDeliverer.deliverObject(BambooAgentMessageDeliverer.java:20)
      at com.atlassian.bamboo.v2.build.agent.BambooAgentMessageListener.onMessage(BambooAgentMessageListener.java:34)
      at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:510)
      at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:445)
      at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:414)
      at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:309)
      at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:254)
      at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:870)
      at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:810)
      at java.lang.Thread.run(Thread.java:637)

            [BAM-5783] NPE on build finish

            Marcin Gardias added a comment - see full analysis here: https://extranet.atlassian.com/display/BAMBOO/NPE+during+saving+of+build+results

            more info from bamboo log:
            2010-05-11 17:24:16,095 INFO [BAM::Events:pool-1-thread-5] [ChildDependencyBuildDetectionAction] Build triggered by child DIST-MAIN
            2010-05-11 17:24:16,143 INFO [BAM::Events:pool-1-thread-13] [BuildCompletedEventListener] Running build post actions 'Bamboo - HEAD'
            2010-05-11 17:24:16,177 INFO [BAM::Events:pool-1-thread-5] [DefaultDependencyBlockingManager] DIST-MAIN : Triggering for this build was blocked because its pare
            nt 'Bamboo - HEAD' has changes and has been put on the build queue.
            2010-05-11 17:24:16,221 WARN [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] SQL Error: 0, SQLState: 25006
            2010-05-11 17:24:16,221 ERROR [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] Batch entry 0 insert into BUILDRESULTSUMMARY (CREATED_DATE, UPDATED_DATE, BUILD_KEY, BUILD_NUMBER, BUILD_STATE, BUILD_DATE, BUILD_COMPLETED_DATE, VCS_UPDATE_TIME, QUEUE_TIME, DURATION, TIME_TO_FIX, TRIGGER_REASON, REVISION_KEY, DELTA_STATE, BUILD_AGENT_ID, FAILURE_TEST_COUNT, SUCCESS_TEST_COUNT, TOTAL_TEST_COUNT, BROKEN_TEST_COUNT, EXISTING_TEST_COUNT, FIXED_TEST_COUNT, TOTAL_TEST_DURATION, BUILDRESULTSUMMARY_ID) values ('2010-05-11 17:24:16.176000 +10:00:00', '2010-05-11 17:24:16.176000 +10:00:00', 'BAM-MAIN', '7689', 'Pending', '2010-05-11 17:24:16.168000 +10:00:00', '2010-05-11 17:24:16.168000 +10:00:00', NULL, NULL, '0', NULL, 'com.atlassian.bamboo.plugin.system.triggerReason:ChildDependencyTriggerReason', '114595', NULL, NULL, '0', '0', '0', '0', '0', '0', '0', '91226841') was aborted. Call getNextException to see the cause.
            2010-05-11 17:24:16,221 WARN [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] SQL Error: 0, SQLState: 25006
            2010-05-11 17:24:16,221 ERROR [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] ERROR: transaction is read-only
            2010-05-11 17:24:16,223 WARN [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] SQL Error: 0, SQLState: 25006
            2010-05-11 17:24:16,223 ERROR [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] Batch entry 0 insert into BUILDRESULTSUMMARY (CREATED_DATE, UPDATED_DATE, BUILD_KEY, BUILD_NUMBER, BUILD_STATE, BUILD_DATE, BUILD_COMPLETED_DATE, VCS_UPDATE_TIME, QUEUE_TIME, DURATION, TIME_TO_FIX, TRIGGER_REASON, REVISION_KEY, DELTA_STATE, BUILD_AGENT_ID, FAILURE_TEST_COUNT, SUCCESS_TEST_COUNT, TOTAL_TEST_COUNT, BROKEN_TEST_COUNT, EXISTING_TEST_COUNT, FIXED_TEST_COUNT, TOTAL_TEST_DURATION, BUILDRESULTSUMMARY_ID) values ('2010-05-11 17:24:16.176000 +10:00:00', '2010-05-11 17:24:16.176000 +10:00:00', 'BAM-MAIN', '7689', 'Pending', '2010-05-11 17:24:16.168000 +10:00:00', '2010-05-11 17:24:16.168000 +10:00:00', NULL, NULL, '0', NULL, 'com.atlassian.bamboo.plugin.system.triggerReason:ChildDependencyTriggerReason', '114595', NULL, NULL, '0', '0', '0', '0', '0', '0', '0', '91226841') was aborted. Call getNextException to see the cause.
            2010-05-11 17:24:16,223 WARN [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] SQL Error: 0, SQLState: 25006
            2010-05-11 17:24:16,223 ERROR [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] ERROR: transaction is read-only
            2010-05-11 17:24:16,227 ERROR [BAM::Events:pool-1-thread-5] [SessionImpl] Could not synchronize database state with session
            2010-05-11 17:24:16,245 ERROR [BAM::Events:pool-1-thread-5] [DependencyBuildListener] Failed to start dependencies for Bamboo - HEAD, org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Could not execute JDBC batch update; uncategorized SQLException for SQL []; SQL state [25006]; error code [0]; Batch entry 0 insert into BUILDRESULTSUMMARY (CREATED_DATE, UPDATED_DATE, BUILD_KEY, BUILD_NUMBER, BUILD_STATE, BUILD_DATE, BUILD_COMPLETED_DATE, VCS_UPDATE_TIME, QUEUE_TIME, DURATION, TIME_TO_FIX, TRIGGER_REASON, REVISION_KEY, DELTA_STATE, BUILD_AGENT_ID, FAILURE_TEST_COUNT, SUCCESS_TEST_COUNT, TOTAL_TEST_COUNT, BROKEN_TEST_COUNT, EXISTING_TEST_COUNT, FIXED_TEST_COUNT, TOTAL_TEST_DURATION, BUILDRESULTSUMMARY_ID) values ('2010-05-11 17:24:16.176000 +10:00:00', '2010-05-11 17:24:16.176000 +10:00:00', 'BAM-MAIN', '7689', 'Pending', '2010-05-11 17:24:16.168000 +10:00:00', '2010-05-11 17:24:16.168000 +10:00:00', NULL, NULL, '0', NULL, 'com.atlassian.bamboo.plugin.system.triggerReason:ChildDependencyTriggerReason', '114595', NULL, NULL, '0', '0', '0', '0', '0', '0', '0', '91226841') was aborted. Call getNextException to see the cause.; nested exception is java.sql.BatchUpdateException: Batch entry 0 insert into BUILDRESULTSUMMARY (CREATED_DATE, UPDATED_DATE, BUILD_KEY, BUILD_NUMBER, BUILD_STATE, BUILD_DATE, BUILD_COMPLETED_DATE, VCS_UPDATE_TIME, QUEUE_TIME, DURATION, TIME_TO_FIX, TRIGGER_REASON, REVISION_KEY, DELTA_STATE, BUILD_AGENT_ID, FAILURE_TEST_COUNT, SUCCESS_TEST_COUNT, TOTAL_TEST_COUNT, BROKEN_TEST_COUNT, EXISTING_TEST_COUNT, FIXED_TEST_COUNT, TOTAL_TEST_DURATION, BUILDRESULTSUMMARY_ID) values ('2010-05-11 17:24:16.176000 +10:00:00', '2010-05-11 17:24:16.176000 +10:00:00', 'BAM-MAIN', '7689', 'Pending', '2010-05-11 17:24:16.168000 +10:00:00', '2010-05-11 17:24:16.168000 +10:00:00', NULL, NULL, '0', NULL, 'com.atlassian.bamboo.plugin.system.triggerReason:ChildDependencyTriggerReason', '114595', NULL, NULL, '0', '0', '0', '0', '0', '0', '0', '91226841') was aborted. Call getNextException to see the cause.
            2010-05-11 17:24:16,246 INFO [BAM::Events:pool-1-thread-19] [BuildQueueManagerImpl] Attempting to queue BAM-MAIN with BAM-MAIN-7689.
            2010-05-11 17:24:16,249 INFO [BAM::Events:pool-1-thread-19] [BuildQueueManagerImpl] Attempting to add to build queue...
            2010-05-11 17:24:16,250 INFO [BAM::Events:pool-1-thread-19] [BuildQueueManagerImpl] Obtained write lock to add to build queue

            Marcin Gardias added a comment - more info from bamboo log: 2010-05-11 17:24:16,095 INFO [BAM::Events:pool-1-thread-5] [ChildDependencyBuildDetectionAction] Build triggered by child DIST-MAIN 2010-05-11 17:24:16,143 INFO [BAM::Events:pool-1-thread-13] [BuildCompletedEventListener] Running build post actions 'Bamboo - HEAD' 2010-05-11 17:24:16,177 INFO [BAM::Events:pool-1-thread-5] [DefaultDependencyBlockingManager] DIST-MAIN : Triggering for this build was blocked because its pare nt 'Bamboo - HEAD' has changes and has been put on the build queue. 2010-05-11 17:24:16,221 WARN [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] SQL Error: 0, SQLState: 25006 2010-05-11 17:24:16,221 ERROR [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] Batch entry 0 insert into BUILDRESULTSUMMARY (CREATED_DATE, UPDATED_DATE, BUILD_KEY, BUILD_NUMBER, BUILD_STATE, BUILD_DATE, BUILD_COMPLETED_DATE, VCS_UPDATE_TIME, QUEUE_TIME, DURATION, TIME_TO_FIX, TRIGGER_REASON, REVISION_KEY, DELTA_STATE, BUILD_AGENT_ID, FAILURE_TEST_COUNT, SUCCESS_TEST_COUNT, TOTAL_TEST_COUNT, BROKEN_TEST_COUNT, EXISTING_TEST_COUNT, FIXED_TEST_COUNT, TOTAL_TEST_DURATION, BUILDRESULTSUMMARY_ID) values ('2010-05-11 17:24:16.176000 +10:00:00', '2010-05-11 17:24:16.176000 +10:00:00', 'BAM-MAIN', '7689', 'Pending', '2010-05-11 17:24:16.168000 +10:00:00', '2010-05-11 17:24:16.168000 +10:00:00', NULL, NULL, '0', NULL, 'com.atlassian.bamboo.plugin.system.triggerReason:ChildDependencyTriggerReason', '114595', NULL, NULL, '0', '0', '0', '0', '0', '0', '0', '91226841') was aborted. Call getNextException to see the cause. 2010-05-11 17:24:16,221 WARN [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] SQL Error: 0, SQLState: 25006 2010-05-11 17:24:16,221 ERROR [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] ERROR: transaction is read-only 2010-05-11 17:24:16,223 WARN [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] SQL Error: 0, SQLState: 25006 2010-05-11 17:24:16,223 ERROR [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] Batch entry 0 insert into BUILDRESULTSUMMARY (CREATED_DATE, UPDATED_DATE, BUILD_KEY, BUILD_NUMBER, BUILD_STATE, BUILD_DATE, BUILD_COMPLETED_DATE, VCS_UPDATE_TIME, QUEUE_TIME, DURATION, TIME_TO_FIX, TRIGGER_REASON, REVISION_KEY, DELTA_STATE, BUILD_AGENT_ID, FAILURE_TEST_COUNT, SUCCESS_TEST_COUNT, TOTAL_TEST_COUNT, BROKEN_TEST_COUNT, EXISTING_TEST_COUNT, FIXED_TEST_COUNT, TOTAL_TEST_DURATION, BUILDRESULTSUMMARY_ID) values ('2010-05-11 17:24:16.176000 +10:00:00', '2010-05-11 17:24:16.176000 +10:00:00', 'BAM-MAIN', '7689', 'Pending', '2010-05-11 17:24:16.168000 +10:00:00', '2010-05-11 17:24:16.168000 +10:00:00', NULL, NULL, '0', NULL, 'com.atlassian.bamboo.plugin.system.triggerReason:ChildDependencyTriggerReason', '114595', NULL, NULL, '0', '0', '0', '0', '0', '0', '0', '91226841') was aborted. Call getNextException to see the cause. 2010-05-11 17:24:16,223 WARN [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] SQL Error: 0, SQLState: 25006 2010-05-11 17:24:16,223 ERROR [BAM::Events:pool-1-thread-5] [JDBCExceptionReporter] ERROR: transaction is read-only 2010-05-11 17:24:16,227 ERROR [BAM::Events:pool-1-thread-5] [SessionImpl] Could not synchronize database state with session 2010-05-11 17:24:16,245 ERROR [BAM::Events:pool-1-thread-5] [DependencyBuildListener] Failed to start dependencies for Bamboo - HEAD, org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Could not execute JDBC batch update; uncategorized SQLException for SQL []; SQL state [25006] ; error code [0] ; Batch entry 0 insert into BUILDRESULTSUMMARY (CREATED_DATE, UPDATED_DATE, BUILD_KEY, BUILD_NUMBER, BUILD_STATE, BUILD_DATE, BUILD_COMPLETED_DATE, VCS_UPDATE_TIME, QUEUE_TIME, DURATION, TIME_TO_FIX, TRIGGER_REASON, REVISION_KEY, DELTA_STATE, BUILD_AGENT_ID, FAILURE_TEST_COUNT, SUCCESS_TEST_COUNT, TOTAL_TEST_COUNT, BROKEN_TEST_COUNT, EXISTING_TEST_COUNT, FIXED_TEST_COUNT, TOTAL_TEST_DURATION, BUILDRESULTSUMMARY_ID) values ('2010-05-11 17:24:16.176000 +10:00:00', '2010-05-11 17:24:16.176000 +10:00:00', 'BAM-MAIN', '7689', 'Pending', '2010-05-11 17:24:16.168000 +10:00:00', '2010-05-11 17:24:16.168000 +10:00:00', NULL, NULL, '0', NULL, 'com.atlassian.bamboo.plugin.system.triggerReason:ChildDependencyTriggerReason', '114595', NULL, NULL, '0', '0', '0', '0', '0', '0', '0', '91226841') was aborted. Call getNextException to see the cause.; nested exception is java.sql.BatchUpdateException: Batch entry 0 insert into BUILDRESULTSUMMARY (CREATED_DATE, UPDATED_DATE, BUILD_KEY, BUILD_NUMBER, BUILD_STATE, BUILD_DATE, BUILD_COMPLETED_DATE, VCS_UPDATE_TIME, QUEUE_TIME, DURATION, TIME_TO_FIX, TRIGGER_REASON, REVISION_KEY, DELTA_STATE, BUILD_AGENT_ID, FAILURE_TEST_COUNT, SUCCESS_TEST_COUNT, TOTAL_TEST_COUNT, BROKEN_TEST_COUNT, EXISTING_TEST_COUNT, FIXED_TEST_COUNT, TOTAL_TEST_DURATION, BUILDRESULTSUMMARY_ID) values ('2010-05-11 17:24:16.176000 +10:00:00', '2010-05-11 17:24:16.176000 +10:00:00', 'BAM-MAIN', '7689', 'Pending', '2010-05-11 17:24:16.168000 +10:00:00', '2010-05-11 17:24:16.168000 +10:00:00', NULL, NULL, '0', NULL, 'com.atlassian.bamboo.plugin.system.triggerReason:ChildDependencyTriggerReason', '114595', NULL, NULL, '0', '0', '0', '0', '0', '0', '0', '91226841') was aborted. Call getNextException to see the cause. 2010-05-11 17:24:16,246 INFO [BAM::Events:pool-1-thread-19] [BuildQueueManagerImpl] Attempting to queue BAM-MAIN with BAM-MAIN-7689. 2010-05-11 17:24:16,249 INFO [BAM::Events:pool-1-thread-19] [BuildQueueManagerImpl] Attempting to add to build queue... 2010-05-11 17:24:16,250 INFO [BAM::Events:pool-1-thread-19] [BuildQueueManagerImpl] Obtained write lock to add to build queue

            MarkC added a comment -

            The NPE seems to appear when the build result summary goes missing. We need to investigate how the build result summary goes missing in the first place. This is quite important. We we can't figure out from the current logging, we should add extra logging we can turn on so we can monitor it further.

            MarkC added a comment - The NPE seems to appear when the build result summary goes missing. We need to investigate how the build result summary goes missing in the first place. This is quite important. We we can't figure out from the current logging, we should add extra logging we can turn on so we can monitor it further.

            failure now more graceful

            Marcin Gardias added a comment - failure now more graceful

            Nope. Just found on tardigrade on plan summary page as recent build errors.

            Marek Went (Inactive) added a comment - Nope. Just found on tardigrade on plan summary page as recent build errors.

            MarkC added a comment -

            Do we have any leads on this?

            MarkC added a comment - Do we have any leads on this?

              mgardias Marcin Gardias
              mwent Marek Went (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5.45h
                  5.45h