Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-20470

Accessing All Deployment Projects page have NullPointerException

    XMLWordPrintable

    Details

      Description

      Issue Summary

      After upgrading Bamboo to version 6.9.1, accessing the All Deployment Projects page will have a popup window with NullPointerException stack trace

      Steps to Reproduce

      1. Install Bamboo version 6.4.1
      2. Create Application Link with Bitbucket Server
      3. Use Bamboo Specs RSS to create deployment project environment in Bamboo
      4. Upgrade Bamboo to version 6.9.1
        No error during upgrade
      5. Access the All Deployment Projects page

      Expected Results

      There won't be any error

      Actual Results

      No deployment and environment listed in the page.
      There is a popup window with NullPointerException stack trace and the below exception is thrown in the atlassian-bamboo.log file:

      2019-06-02 16:39:06,325 WARN [http-nio-80-exec-20] [BambooRuntimeExceptionMapper] Unexpected error from REST call
      java.lang.NullPointerException
      at com.atlassian.bamboo.utils.DurationUtils.getRelativeDate(DurationUtils.java:115)
      at com.atlassian.bamboo.utils.DurationUtils.getRelativeDate(DurationUtils.java:103)
      at com.atlassian.bamboo.rest.model.repository.RestVcsLocationBambooSpecsState.<init>(RestVcsLocationBambooSpecsState.java:42)
      at com.atlassian.bamboo.rest.model.repository.RestVcsBambooSpecsSource.<init>(RestVcsBambooSpecsSource.java:25)
      at com.atlassian.bamboo.rest.model.deployments.projects.RestDeploymentProject.<init>(RestDeploymentProject.java:70)
      at com.atlassian.bamboo.plugins.rest.deployments.projects.DeploymentDashboardResource.lambda$getDeploymentProjects$0(DeploymentDashboardResource.java:116)
      at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
      at com.atlassian.bamboo.plugins.rest.deployments.projects.DeploymentDashboardResource.getDeploymentProjects(DeploymentDashboardResource.java:111)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
      

      Notes

      • Bamboo Specs data is stored without SPECS_EXECUTION_DATE previously. After upgrade, the new column is created with NULL data
      • Due to this NULL data, Specs Status in the repository does not show this previous Specs build too

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mgardias Marcin Gardias
              Reporter:
              klfoong Kah Loun Foong
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: