java.lang.NullPointerException

Jenkins JIRA | yamoinca | 3 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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 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
  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.TriggeredBuildSelector.getBuild()
    2. hudson.plugins.copyartifact
      CopyArtifact.perform
      1. hudson.plugins.copyartifact.TriggeredBuildSelector.getBuild(TriggeredBuildSelector.java:61)
      2. hudson.plugins.copyartifact.TriggeredBuildSelector.getBuild(TriggeredBuildSelector.java:73)
      3. hudson.plugins.copyartifact.TriggeredBuildSelector.getBuild(TriggeredBuildSelector.java:73)
      4. hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:195)
      4 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802)
      3. hudson.model.Build$BuildExecution.build(Build.java:199)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:584)
      6. hudson.model.Run.execute(Run.java:1575)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:237)
      9 frames