Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-15673

Deployment started notification fails when previous release is deleted

    XMLWordPrintable

Details

    Description

      Situation:

      • the latest release of a build is deleted using the 'Delete release' function in the release details view. The release was deployed on environment A.
      • Environment A has a notification set to inform a user at deployment start and finish.
      • A new deployment on environment A is started, creating a new release from the latest build.
      • Notification cannot be sent due to NullPointerException:
      2015-02-26 04:33:03,806 INFO [http-apr-8085-exec-24] [AccessLogFilter] martijn POST [http://bamboo.solid-fx.com:8085/deploy/executeManualDeployment.action] 150103kb
      2015-02-26 04:33:04,080 INFO [AtlassianEvent::0-BAM::EVENTS:pool-3-thread-10] [BuildQueueManagerImpl] Attempting to queue Deployment of 'SFX.Core-1.0.1-revision:8232' on 'UAT'.
      2015-02-26 04:33:04,080 INFO [AtlassianEvent::0-BAM::EVENTS:pool-3-thread-10] [ExecutionPhaseServiceImpl] Deployment of 'SFX.Core-1.0.1-revision:8232' on 'UAT' queued
      2015-02-26 04:33:04,096 WARN [http-apr-8085-exec-8] [AuthenticatorImpl] No executing user assigned for 2LO requests
      2015-02-26 04:33:04,096 INFO [http-apr-8085-exec-8] [AuthenticatorImpl] Authenticated app 'jira:6576470' as user 'null' successfully
      2015-02-26 04:33:04,096 INFO [http-apr-8085-exec-8] [AccessLogFilter] 192.168.177.13 GET [http://bamboo.solid-fx.com:8085/rest/remote-link-aggregation/latest/aggregation?globalId=RED-239&globalId=MAIN-161] 136361kb
      2015-02-26 04:33:04,097 WARN [http-apr-8085-exec-11] [AuthenticatorImpl] No executing user assigned for 2LO requests
      2015-02-26 04:33:04,097 INFO [http-apr-8085-exec-11] [AuthenticatorImpl] Authenticated app 'jira:6576470' as user 'null' successfully
      2015-02-26 04:33:04,097 INFO [http-apr-8085-exec-11] [AccessLogFilter] 192.168.177.13 GET [http://bamboo.solid-fx.com:8085/rest/remote-link-aggregation/latest/aggregation?globalId=RED-363] 136000kb
      2015-02-26 04:33:04,100 INFO [http-apr-8085-exec-8] [IndexedBuildResultsSearcherImpl] Search took 0:00:00.002
      2015-02-26 04:33:04,105 INFO [http-apr-8085-exec-11] [IndexedBuildResultsSearcherImpl] Search took 0:00:00.005
      2015-02-26 04:33:04,107 WARN [http-apr-8085-exec-4] [AuthenticatorImpl] No executing user assigned for 2LO requests
      2015-02-26 04:33:04,107 INFO [http-apr-8085-exec-4] [AuthenticatorImpl] Authenticated app 'jira:6576470' as user 'null' successfully
      2015-02-26 04:33:04,107 INFO [http-apr-8085-exec-8] [IndexedBuildResultsSearcherImpl] Search took 0:00:00.006
      2015-02-26 04:33:04,107 INFO [http-apr-8085-exec-4] [AccessLogFilter] 192.168.177.13 GET [http://bamboo.solid-fx.com:8085/rest/remote-link-aggregation/latest/aggregation?globalId=RED-364] 134772kb
      2015-02-26 04:33:04,109 WARN [http-apr-8085-exec-7] [AuthenticatorImpl] No executing user assigned for 2LO requests
      2015-02-26 04:33:04,109 INFO [http-apr-8085-exec-7] [AuthenticatorImpl] Authenticated app 'jira:6576470' as user 'null' successfully
      2015-02-26 04:33:04,109 INFO [http-apr-8085-exec-7] [AccessLogFilter] 192.168.177.13 GET [http://bamboo.solid-fx.com:8085/rest/remote-link-aggregation/latest/aggregation?globalId=RED-365] 134428kb
      2015-02-26 04:33:04,113 INFO [http-apr-8085-exec-4] [IndexedBuildResultsSearcherImpl] Search took 0:00:00.004
      2015-02-26 04:33:04,113 INFO [http-apr-8085-exec-9] [AccessLogFilter] martijn GET [http://bamboo.solid-fx.com:8085/deploy/viewDeploymentResult.action?deploymentResultId=5668869] 133961kb
      2015-02-26 04:33:04,114 INFO [http-apr-8085-exec-7] [IndexedBuildResultsSearcherImpl] Search took 0:00:00.002
      2015-02-26 04:33:04,140 ERROR [AtlassianEvent::0-BAM::EVENTS:pool-3-thread-6] [MultipartEmailTransport] Failed to send out Deployment Started Notification multipart email
      java.lang.NullPointerException
      at com.atlassian.bamboo.deployments.versions.service.DeploymentVersionServiceImpl.findVersionsBetween(DeploymentVersionServiceImpl.java:709)
      at com.atlassian.bamboo.deployments.versions.service.DeploymentVersionVcsChangesetServiceImpl.compareVersionsByChangesets(DeploymentVersionVcsChangesetServiceImpl.java:101)
      at com.atlassian.bamboo.deployments.notification.DeploymentStartedNotification.getContext(DeploymentStartedNotification.java:115)
      at com.atlassian.bamboo.deployments.notification.DeploymentStartedNotification.getEmailSubject(DeploymentStartedNotification.java:72)
      at com.atlassian.bamboo.notification.transports.AbstractEmailTransport.beginEmail(AbstractEmailTransport.java:53)
      at com.atlassian.bamboo.notification.transports.MultipartEmailTransport.sendNotification(MultipartEmailTransport.java:51)
      at com.atlassian.bamboo.notification.NotificationDispatcherImpl.dispatchNotifications(NotificationDispatcherImpl.java:60)
      at com.atlassian.bamboo.deployments.notification.DeploymentNotificationEventListener.onDeploymentStarted(DeploymentNotificationEventListener.java:172)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36)
      at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:46)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
      at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      at java.lang.Thread.run(Thread.java:722)
      

      Attachments

        Activity

          People

            mgardias Marcin Gardias
            e2c6d98da308 Martijn Stokhof
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: