java.lang.RuntimeException: java.lang.NullPointerException

jfrog.com | 1 month ago
  1. 0

    A simple project that is only set to retrieve artifacts from artifactory (not publish them) failed to build. Builds that have all artifactory features turned off are fine as are the ones that publish to Artifactory using the "Deploy artifacts to artifactory" post build action. Removing the post build action while still using some of the artifactory plugin functionality causes the following error. The workaround is not to use Artifactory plugin. ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.RuntimeException: java.lang.NullPointerException at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:136) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:941) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:166) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1738) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Caused by: java.lang.NullPointerException at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:157) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132) ... 9 more project=hudson.maven.MavenModuleSet@1bc3d9f[JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)] project.getModules()=[hudson.maven.MavenModule@3d7897[JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)/cz.elvoris:elvoris-root-parent][JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)/cz.elvoris:elvoris-root-parent][relativePath:parent]] project.getRootModule()=hudson.maven.MavenModule@3d7897[JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)/cz.elvoris:elvoris-root-parent][JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)/cz.elvoris:elvoris-root-parent][relativePath:parent] FATAL: java.lang.NullPointerException java.lang.RuntimeException: java.lang.NullPointerException at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:136) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:941) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:166) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1738) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Caused by: java.lang.NullPointerException at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:157) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132) ... 9 more

    JFrog JIRA | 1 year ago | Tom???? Rohrbacher
    java.lang.RuntimeException: java.lang.NullPointerException
  2. 0

    A simple project that is only set to retrieve artifacts from artifactory (not publish them) failed to build. Builds that have all artifactory features turned off are fine as are the ones that publish to Artifactory using the "Deploy artifacts to artifactory" post build action. Removing the post build action while still using some of the artifactory plugin functionality causes the following error. The workaround is not to use Artifactory plugin. ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.RuntimeException: java.lang.NullPointerException at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:136) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:941) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:166) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1738) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Caused by: java.lang.NullPointerException at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:157) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132) ... 9 more project=hudson.maven.MavenModuleSet@1bc3d9f[JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)] project.getModules()=[hudson.maven.MavenModule@3d7897[JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)/cz.elvoris:elvoris-root-parent][JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)/cz.elvoris:elvoris-root-parent][relativePath:parent]] project.getRootModule()=hudson.maven.MavenModule@3d7897[JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)/cz.elvoris:elvoris-root-parent][JOBS_STABLE/INSTALL Elvoris _ROOT_ (master)/cz.elvoris:elvoris-root-parent][relativePath:parent] FATAL: java.lang.NullPointerException java.lang.RuntimeException: java.lang.NullPointerException at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:136) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:941) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:166) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1738) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Caused by: java.lang.NullPointerException at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:157) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132) ... 9 more

    JFrog JIRA | 1 year ago | Tomáš Rohrbacher
    java.lang.RuntimeException: java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Is Maven version 1.1 compatible with Jenkins 1.532 ?

    Google Groups | 1 year ago | inderpree...@gmail.com
    java.lang.RuntimeException: Unable to determine Maven version

    1 unregistered visitors
    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 org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments()
    2. org.jfrog.hudson
      MavenExtractorEnvironment.buildEnvVars
      1. org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:157)
      2. org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)
      2 frames
    3. Hudson
      AbstractBuild.getEnvironment
      1. hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:941)
      1 frame
    4. Hudson Maven Embedder
      MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun
      1. hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
      2. hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:166)
      3. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622)
      3 frames
    5. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
      2. hudson.model.Run.execute(Run.java:1738)
      2 frames
    6. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:381)
      2 frames