org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException

Jenkins JIRA | Vladimir Kravets | 4 years ago
  1. 0

    [JENKINS-16573] Getting testing result from non default junit mojo failed build. - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
  2. 0

    We are using non default plugin which generates surefire reports. During archiving test result throw exception NullPointerException. This is a regression since 1.432 everythins is working well. Log: mojoSucceeded com.hp.maven.plugins:ddm-jython-plugin:1.0-SNAPSHOT(default) 16:46:59 [JENKINS] Recording test results .... Waiting for Jenkins to finish collecting data 16:47:48 mavenExecutionResult exceptions not empty 16:47:48 message : Internal error: java.lang.NullPointerException 16:47:48 cause : null 16:47:48 Stack trace : 16:47:48 org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException 16:47:48 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) 16:47:48 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) 16:47:48 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) 16:47:48 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) 16:47:48 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) 16:47:48 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) 16:47:48 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 16:47:48 at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) 16:47:48 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 16:47:48 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 16:47:48 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 16:47:48 at java.lang.reflect.Method.invoke(Method.java:597) 16:47:48 at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) 16:47:48 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) 16:47:48 at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) 16:47:48 at hudson.maven.Maven3Builder.call(Maven3Builder.java:100) 16:47:48 at hudson.maven.Maven3Builder.call(Maven3Builder.java:66) 16:47:48 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 16:47:48 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 16:47:48 at hudson.remoting.Request$2.run(Request.java:326) 16:47:48 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 16:47:48 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 16:47:48 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 16:47:48 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 16:47:48 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 16:47:48 at java.lang.Thread.run(Thread.java:662) 16:47:48 Caused by: java.lang.NullPointerException 16:47:48 at hudson.maven.reporters.TestMojo.getReportFiles(TestMojo.java:104) 16:47:48 at hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:125) 16:47:48 at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:443) 16:47:48 at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:425) 16:47:48 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) 16:47:48 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 16:47:48 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) 16:47:48 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 16:47:48 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 16:47:48 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) 16:47:48 ... 24 more 16:47:48 channel stopped

    Jenkins JIRA | 4 years ago | Vladimir Kravets
    org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
  3. 0

    We are using non default plugin which generates surefire reports. During archiving test result throw exception NullPointerException. This is a regression since 1.432 everythins is working well. Log: mojoSucceeded com.hp.maven.plugins:ddm-jython-plugin:1.0-SNAPSHOT(default) 16:46:59 [JENKINS] Recording test results .... Waiting for Jenkins to finish collecting data 16:47:48 mavenExecutionResult exceptions not empty 16:47:48 message : Internal error: java.lang.NullPointerException 16:47:48 cause : null 16:47:48 Stack trace : 16:47:48 org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException 16:47:48 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) 16:47:48 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) 16:47:48 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) 16:47:48 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) 16:47:48 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) 16:47:48 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) 16:47:48 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 16:47:48 at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) 16:47:48 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 16:47:48 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 16:47:48 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 16:47:48 at java.lang.reflect.Method.invoke(Method.java:597) 16:47:48 at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) 16:47:48 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) 16:47:48 at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) 16:47:48 at hudson.maven.Maven3Builder.call(Maven3Builder.java:100) 16:47:48 at hudson.maven.Maven3Builder.call(Maven3Builder.java:66) 16:47:48 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 16:47:48 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 16:47:48 at hudson.remoting.Request$2.run(Request.java:326) 16:47:48 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 16:47:48 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 16:47:48 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 16:47:48 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 16:47:48 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 16:47:48 at java.lang.Thread.run(Thread.java:662) 16:47:48 Caused by: java.lang.NullPointerException 16:47:48 at hudson.maven.reporters.TestMojo.getReportFiles(TestMojo.java:104) 16:47:48 at hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:125) 16:47:48 at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:443) 16:47:48 at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:425) 16:47:48 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) 16:47:48 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 16:47:48 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) 16:47:48 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 16:47:48 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 16:47:48 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) 16:47:48 ... 24 more 16:47:48 channel stopped

    Jenkins JIRA | 4 years ago | Vladimir Kravets
    org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    After upgrading Jenkins from Version 1.489 to 1.500 with reindexing, all the Maven3 Project doesnt work anymore. The same Build in the Freestyle Jobs works fine, but theres no possibility to run maven-release. Heres the error: {code} 18:59:40 [JENKINS] Archiving disabled 18:59:41 Warte bis Jenkins die Datensammlung abgeschlossen hat 18:59:41 mavenExecutionResult exceptions not empty 18:59:41 message : Internal error: java.lang.NullPointerException 18:59:41 cause : null 18:59:41 Stack trace : 18:59:41 org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException 18:59:41 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) 18:59:41 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) 18:59:41 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) 18:59:41 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) 18:59:41 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) 18:59:41 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) 18:59:41 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 18:59:41 at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) 18:59:41 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 18:59:41 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 18:59:41 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 18:59:41 at java.lang.reflect.Method.invoke(Method.java:597) 18:59:41 at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) 18:59:41 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) 18:59:41 at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) 18:59:41 at hudson.maven.Maven3Builder.call(Maven3Builder.java:100) 18:59:41 at hudson.maven.Maven3Builder.call(Maven3Builder.java:66) 18:59:41 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 18:59:41 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 18:59:41 at hudson.remoting.Request$2.run(Request.java:326) 18:59:41 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 18:59:41 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 18:59:41 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 18:59:41 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 18:59:41 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 18:59:41 at java.lang.Thread.run(Thread.java:662) 18:59:41 Caused by: java.lang.NullPointerException 18:59:41 at hudson.maven.reporters.TestMojo.getReportFiles(TestMojo.java:104) 18:59:41 at hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:125) 18:59:41 at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:443) 18:59:41 at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:425) 18:59:41 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) 18:59:41 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 18:59:41 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) 18:59:41 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 18:59:41 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 18:59:41 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) 18:59:41 ... 24 more {code} Any Ideas?

    Jenkins JIRA | 4 years ago | Jan Mederer
    org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
  6. 0

    After upgrading Jenkins from Version 1.489 to 1.500 with reindexing, all the Maven3 Project doesnt work anymore. The same Build in the Freestyle Jobs works fine, but theres no possibility to run maven-release. Heres the error: {code} 18:59:40 [JENKINS] Archiving disabled 18:59:41 Warte bis Jenkins die Datensammlung abgeschlossen hat 18:59:41 mavenExecutionResult exceptions not empty 18:59:41 message : Internal error: java.lang.NullPointerException 18:59:41 cause : null 18:59:41 Stack trace : 18:59:41 org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException 18:59:41 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) 18:59:41 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) 18:59:41 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) 18:59:41 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) 18:59:41 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) 18:59:41 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) 18:59:41 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 18:59:41 at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) 18:59:41 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 18:59:41 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 18:59:41 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 18:59:41 at java.lang.reflect.Method.invoke(Method.java:597) 18:59:41 at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) 18:59:41 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) 18:59:41 at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) 18:59:41 at hudson.maven.Maven3Builder.call(Maven3Builder.java:100) 18:59:41 at hudson.maven.Maven3Builder.call(Maven3Builder.java:66) 18:59:41 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 18:59:41 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 18:59:41 at hudson.remoting.Request$2.run(Request.java:326) 18:59:41 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 18:59:41 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 18:59:41 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 18:59:41 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 18:59:41 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 18:59:41 at java.lang.Thread.run(Thread.java:662) 18:59:41 Caused by: java.lang.NullPointerException 18:59:41 at hudson.maven.reporters.TestMojo.getReportFiles(TestMojo.java:104) 18:59:41 at hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:125) 18:59:41 at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:443) 18:59:41 at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:425) 18:59:41 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) 18:59:41 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 18:59:41 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) 18:59:41 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 18:59:41 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 18:59:41 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) 18:59:41 ... 24 more {code} Any Ideas?

    Jenkins JIRA | 4 years ago | Jan Mederer
    org.apache.maven.InternalErrorException: Internal error: 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.maven.reporters.TestMojo.getReportFiles()
    2. Legacy Maven 2 job type Plugin
      SurefireArchiver.postExecute
      1. hudson.maven.reporters.TestMojo.getReportFiles(TestMojo.java:104)
      2. hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:125)
      2 frames
    3. Hudson Maven Embedder
      Maven3Builder$MavenExecutionListener.mojoSucceeded
      1. hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:443)
      2. hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:425)
      2 frames
    4. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87)
      2. org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228)
      4. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      5. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      6. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      7. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      8. org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      9. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      10. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      11. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      11 frames
    5. M3 Interceptor
      Maven3Launcher.main
      1. org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      1 frame
    6. 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
    7. Plexus
      Launcher.launch
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      2 frames
    8. M3 Agent
      Maven3Main.launch
      1. org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
      1 frame
    9. Hudson Maven Embedder
      Maven3Builder.call
      1. hudson.maven.Maven3Builder.call(Maven3Builder.java:100)
      2. hudson.maven.Maven3Builder.call(Maven3Builder.java:66)
      2 frames
    10. 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
    11. 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:662)
      5 frames