java.lang.NullPointerException

Jenkins JIRA | Ben Dean | 2 years ago
  1. 0

    Copy Artifact doesn't seem to work inside promotions. For the normal build steps it is fine and copies without problem when it's in a promotion I get this: {code} java.lang.NullPointerException at hudson.plugins.copyartifact.CopyArtifact$EnvAction.add(CopyArtifact.java:512) at hudson.plugins.copyartifact.CopyArtifact$EnvAction.access$500(CopyArtifact.java:502) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:296) at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:282) at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:224) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1754) at hudson.model.Run.run(Run.java:1692) at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:174) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) {code} The configuration for the promotion is simple: {code} <hudson.plugins.promoted__builds.PromotionProcess plugin="promoted-builds@2.19"> <actions/> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.scm.NullSCM"/> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers/> <concurrentBuild>false</concurrentBuild> <conditions/> <icon>star-gold</icon> <buildSteps> <hudson.plugins.copyartifact.CopyArtifact plugin="copyartifact@1.32"> <project>some-job</project> <filter>**/*</filter> <target/> <excludes/> <selector class="hudson.plugins.copyartifact.StatusBuildSelector"/> <flatten>true</flatten> <doNotFingerprintArtifacts>false</doNotFingerprintArtifacts> </hudson.plugins.copyartifact.CopyArtifact> </buildSteps> </hudson.plugins.promoted__builds.PromotionProcess> {code} When I downgraded those two plugins (because I figured the culprit was either Copy Artifact or Promoted Builds) to these versions everything worked again: * Copy Artifact Plugin 1.30 * Promoted Builds Plugin 2.17

    Jenkins JIRA | 2 years ago | Ben Dean
    java.lang.NullPointerException
  2. 0

    Copy Artifact doesn't seem to work inside promotions. For the normal build steps it is fine and copies without problem when it's in a promotion I get this: {code} java.lang.NullPointerException at hudson.plugins.copyartifact.CopyArtifact$EnvAction.add(CopyArtifact.java:512) at hudson.plugins.copyartifact.CopyArtifact$EnvAction.access$500(CopyArtifact.java:502) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:296) at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:282) at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:224) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1754) at hudson.model.Run.run(Run.java:1692) at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:174) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) {code} The configuration for the promotion is simple: {code} <hudson.plugins.promoted__builds.PromotionProcess plugin="promoted-builds@2.19"> <actions/> <keepDependencies>false</keepDependencies> <properties/> <scm class="hudson.scm.NullSCM"/> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers/> <concurrentBuild>false</concurrentBuild> <conditions/> <icon>star-gold</icon> <buildSteps> <hudson.plugins.copyartifact.CopyArtifact plugin="copyartifact@1.32"> <project>some-job</project> <filter>**/*</filter> <target/> <excludes/> <selector class="hudson.plugins.copyartifact.StatusBuildSelector"/> <flatten>true</flatten> <doNotFingerprintArtifacts>false</doNotFingerprintArtifacts> </hudson.plugins.copyartifact.CopyArtifact> </buildSteps> </hudson.plugins.promoted__builds.PromotionProcess> {code} When I downgraded those two plugins (because I figured the culprit was either Copy Artifact or Promoted Builds) to these versions everything worked again: * Copy Artifact Plugin 1.30 * Promoted Builds Plugin 2.17

    Jenkins JIRA | 2 years ago | Ben Dean
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at hudson.plugins.copyartifact.CopyArtifact$EnvAction.add()
    2. hudson.plugins.copyartifact
      CopyArtifact.perform
      1. hudson.plugins.copyartifact.CopyArtifact$EnvAction.add(CopyArtifact.java:512)
      2. hudson.plugins.copyartifact.CopyArtifact$EnvAction.access$500(CopyArtifact.java:502)
      3. hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:296)
      3 frames
    3. hudson.plugins.promoted_builds
      Promotion$RunnerImpl.doRun
      1. hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:282)
      2. hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:224)
      2 frames
    4. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
      2. hudson.model.Run.execute(Run.java:1754)
      3. hudson.model.Run.run(Run.java:1692)
      3 frames
    5. hudson.plugins.promoted_builds
      Promotion.run
      1. hudson.plugins.promoted_builds.Promotion.run(Promotion.java:174)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:89)
      2. hudson.model.Executor.run(Executor.java:240)
      2 frames