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

NPE thrown when trying to delete deployment details of a non-existing release

    XMLWordPrintable

Details

    Description

      Steps to replicate

      1. Create a deployment release
      2. Run deployment
      3. Delete the release. This will delete the release but retains the deployment history
      4. Now try to delete the deployment logs as per the screenshot
      5. Bamboo will throw the NPE below:
        2014-05-30 20:53:55,423 INFO [http-bio-10555-exec-21] [AccessLogFilter] admin POST http://localhost:10555/bamboo55/deploy/deleteDeploymentResult.action 201261kb
        2014-05-30 20:53:55,449 ERROR [http-bio-10555-exec-21] [ExceptionMappingInterceptor] null
        java.lang.NullPointerException
        	at com.atlassian.bamboo.deployments.versions.service.DeploymentVersionLinkedJiraIssuesServiceImpl.getIssuesChangedForDeploymentResult(DeploymentVersionLinkedJiraIssuesServiceImpl.java:155)
        	at com.atlassian.bamboo.deployments.results.service.DeploymentResultDeletionServiceImpl.delete(DeploymentResultDeletionServiceImpl.java:84)
        	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 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:29)
        	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        	at $Proxy135.delete(Unknown Source)
        	at com.atlassian.bamboo.deployments.execution.actions.DeleteDeploymentResult.doDelete(DeleteDeploymentResult.java:65)
        	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.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)
        	at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)
        	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)
        	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:100)
        	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
        	at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:100)
        	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
        	at com.atlassian.bamboo.ww2.interceptors.FieldErrorUsageVerifier.intercept(FieldErrorUsageVerifier.java:49)
        	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
        

      Attachments

        Issue Links

          Activity

            People

              easenjo sthr (Inactive)
              smaiyaki Sultan Maiyaki (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: