java.lang.NullPointerException

Jenkins JIRA | K P | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Each Maven 2 has the following stacktrace, resulting in an error. In jenkins 1.518 the build still succeeds afterwards, in 1.519 this fails the builds (i.e. failing ALL our Maven 2 builds). So I had to revert to previous version, so we're still operational (ignoring the stacktraces) I'm using Maven 2.2.1. To avoid any conflicts with maven 3, I threw away all Maven 3 directories, made sure env. vars are OK, no jenkins settings refer maven 3, even cleared the local repo, etc... The jobs compile, test, and runs reporting with PMD, Findbugs, Cobertura, ... {noformat} [JENKINS] Recording test results 21-jun-2013 9:58:56 hudson.maven.reporters.MavenFingerprinter getArtifactRepositoryMaven21 WARNING: Could not retrieve BuilderConfigration java.lang.NullPointerException at hudson.maven.reporters.MavenFingerprinter.getArtifactRepositoryMaven21(MavenFingerprinter.java:183) at hudson.maven.reporters.MavenFingerprinter.getLocalRepository(MavenFingerprinter.java:165) at hudson.maven.reporters.MavenFingerprinter.recordParents(MavenFingerprinter.java:142) at hudson.maven.reporters.MavenFingerprinter.postBuild(MavenFingerprinter.java:110) ERROR: at hudson.maven.Maven2Builder.postModule(Maven2Builder.java:129) at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:354) at hudson.maven.MavenBuilder$Adapter.preExecute(MavenBuilder.java:323) at hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.pre(PluginManagerInterceptor.java:165) at hudson.maven.agent.PluginManagerInterceptor$MojoIntercepter.configureComponent(PluginManagerInterceptor.java:145) at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468) at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) Could not find local repository for 2.2.1 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:185) at hudson.maven.MavenBuilder.call(MavenBuilder.java:154) at hudson.maven.Maven2Builder.call(Maven2Builder.java:79) at hudson.maven.Maven2Builder.call(Maven2Builder.java:55) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) [INFO] [site:site {execution: default-site}] {noformat} In jenkins 1.518 this is ugly, but job still succeeds, in jenkins 1.519, this fails and breaks everything.

    Jenkins JIRA | 4 years ago | K P
    java.lang.NullPointerException
  2. 0

    Each Maven 2 has the following stacktrace, resulting in an error. In jenkins 1.518 the build still succeeds afterwards, in 1.519 this fails the builds (i.e. failing ALL our Maven 2 builds). So I had to revert to previous version, so we're still operational (ignoring the stacktraces) I'm using Maven 2.2.1. To avoid any conflicts with maven 3, I threw away all Maven 3 directories, made sure env. vars are OK, no jenkins settings refer maven 3, even cleared the local repo, etc... The jobs compile, test, and runs reporting with PMD, Findbugs, Cobertura, ... {noformat} [JENKINS] Recording test results 21-jun-2013 9:58:56 hudson.maven.reporters.MavenFingerprinter getArtifactRepositoryMaven21 WARNING: Could not retrieve BuilderConfigration java.lang.NullPointerException at hudson.maven.reporters.MavenFingerprinter.getArtifactRepositoryMaven21(MavenFingerprinter.java:183) at hudson.maven.reporters.MavenFingerprinter.getLocalRepository(MavenFingerprinter.java:165) at hudson.maven.reporters.MavenFingerprinter.recordParents(MavenFingerprinter.java:142) at hudson.maven.reporters.MavenFingerprinter.postBuild(MavenFingerprinter.java:110) ERROR: at hudson.maven.Maven2Builder.postModule(Maven2Builder.java:129) at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:354) at hudson.maven.MavenBuilder$Adapter.preExecute(MavenBuilder.java:323) at hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.pre(PluginManagerInterceptor.java:165) at hudson.maven.agent.PluginManagerInterceptor$MojoIntercepter.configureComponent(PluginManagerInterceptor.java:145) at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468) at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) Could not find local repository for 2.2.1 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:185) at hudson.maven.MavenBuilder.call(MavenBuilder.java:154) at hudson.maven.Maven2Builder.call(Maven2Builder.java:79) at hudson.maven.Maven2Builder.call(Maven2Builder.java:55) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) [INFO] [site:site {execution: default-site}] {noformat} In jenkins 1.518 this is ugly, but job still succeeds, in jenkins 1.519, this fails and breaks everything.

    Jenkins JIRA | 4 years ago | K P
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at hudson.maven.reporters.MavenFingerprinter.getArtifactRepositoryMaven21()
    2. Legacy Maven 2 job type Plugin
      MavenFingerprinter.postBuild
      1. hudson.maven.reporters.MavenFingerprinter.getArtifactRepositoryMaven21(MavenFingerprinter.java:183)
      2. hudson.maven.reporters.MavenFingerprinter.getLocalRepository(MavenFingerprinter.java:165)
      3. hudson.maven.reporters.MavenFingerprinter.recordParents(MavenFingerprinter.java:142)
      4. hudson.maven.reporters.MavenFingerprinter.postBuild(MavenFingerprinter.java:110)
      4 frames
    3. Hudson Maven Embedder
      MavenBuilder$Adapter.preExecute
      1. hudson.maven.Maven2Builder.postModule(Maven2Builder.java:129)
      2. hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:354)
      3. hudson.maven.MavenBuilder$Adapter.preExecute(MavenBuilder.java:323)
      3 frames
    4. Hudson M2
      PluginManagerInterceptor$MojoIntercepter.configureComponent
      1. hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.pre(PluginManagerInterceptor.java:165)
      2. hudson.maven.agent.PluginManagerInterceptor$MojoIntercepter.configureComponent(PluginManagerInterceptor.java:145)
      2 frames
    5. Maven Plugin
      DefaultPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357)
      2. org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724)
      3. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
      3 frames
    6. Hudson M2
      PluginManagerInterceptor.executeMojo
      1. hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
      1 frame
    7. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
      3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
      4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
      6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      7. org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      9 frames
    8. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    10. Plexus
      Launcher.launch
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      2 frames
    11. Hudson M2
      Main.launch
      1. hudson.maven.agent.Main.launch(Main.java:185)
      1 frame
    12. Hudson Maven Embedder
      Maven2Builder.call
      1. hudson.maven.MavenBuilder.call(MavenBuilder.java:154)
      2. hudson.maven.Maven2Builder.call(Maven2Builder.java:79)
      3. hudson.maven.Maven2Builder.call(Maven2Builder.java:55)
      3 frames
    13. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:326)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    14. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      5. java.lang.Thread.run(Thread.java:619)[INFO]
      5 frames