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

Accessing All Deployment Projects page have NullPointerException

      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

            [BAM-20470] Accessing All Deployment Projects page have NullPointerException

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 3218856 ] New: JAC Bug Workflow v3 [ 3386088 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Marcin Oles made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

            Marcin Gardias added a comment - - edited

            klfoong I think the best workaround is to update the DB using an obviously fake date (like 1 year before, or start of epoch, important thing: it must be in the past).

            Marcin Gardias added a comment - - edited klfoong I think the best workaround is to update the DB using an obviously fake date (like 1 year before, or start of epoch, important thing: it must be in the past ).
            Marcin Gardias made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]
            Marcin Gardias made changes -
            Fix Version/s New: 6.9.2 [ 87692 ]
            Marcin Gardias made changes -
            Assignee New: Marcin Gardias [ mgardias ]
            Jeremy Owen made changes -
            Regular Expression New: com\.atlassian\.bamboo\.utils\.DurationUtils\.getRelativeDate(DurationUtils\.java\:115)
            Pawel Skierczynski made changes -
            Labels Original: da-warranty New: bamboo-bugfix-kanban da-warranty
            Pawel Skierczynski made changes -
            Remote Link New: This issue links to "BDEV-15403 (Jira)" [ 429800 ]
            Pawel Skierczynski made changes -
            Component/s New: Deployments [ 19692 ]
            Occurrence Factor New: 10% [ 12830 ]
            Symptom Severity Original: Severity 3 - Minor [ 15832 ] New: Severity 1 - Critical [ 15830 ]
            Status Original: Needs Triage [ 10030 ] New: Open [ 1 ]

              mgardias Marcin Gardias
              klfoong Foong (Inactive)
              Affected customers:
              2 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: