org.apache.maven.InternalErrorException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Getting this at the start of the build. Its reporting FAILURE building the parent module (aggregated poms) this is after upgrading from Jenkins 1.432 to 1.436. Reverting back to 1.432 problem goes away. Config is a M3 project I've tried 1 or more threads with same result. 15:04:36 mavenExecutionResult exceptions not empty 15:04:36 message : Internal error: java.lang.NullPointerException 15:04:36 cause : null 15:04:36 Stack trace : 15:04:36 org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException 15:04:36 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) 15:04:36 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) 15:04:36 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167) 15:04:36 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164) 15:04:36 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 15:04:36 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 15:04:36 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 15:04:36 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 15:04:36 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 15:04:36 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 15:04:36 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 15:04:36 at java.lang.Thread.run(Thread.java:662) 15:04:36 Caused by: java.lang.NullPointerException 15:04:36 at hudson.maven.AbstractMavenBuilder$FilterImpl.executeAsync(AbstractMavenBuilder.java:174) 15:04:36 at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:128) 15:04:36 at hudson.maven.Maven3Builder$MavenExecutionListener.recordProjectSucceeded(Maven3Builder.java:378) 15:04:36 at hudson.maven.Maven3Builder$MavenExecutionListener.projectSucceeded(Maven3Builder.java:352) 15:04:36 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:74) 15:04:36 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 15:04:36 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91) 15:04:36 ... 10 more
    via by banoss,
  • Getting this at the start of the build. Its reporting FAILURE building the parent module (aggregated poms) this is after upgrading from Jenkins 1.432 to 1.436. Reverting back to 1.432 problem goes away. Config is a M3 project I've tried 1 or more threads with same result. 15:04:36 mavenExecutionResult exceptions not empty 15:04:36 message : Internal error: java.lang.NullPointerException 15:04:36 cause : null 15:04:36 Stack trace : 15:04:36 org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException 15:04:36 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) 15:04:36 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) 15:04:36 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167) 15:04:36 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164) 15:04:36 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 15:04:36 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 15:04:36 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 15:04:36 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 15:04:36 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 15:04:36 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 15:04:36 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 15:04:36 at java.lang.Thread.run(Thread.java:662) 15:04:36 Caused by: java.lang.NullPointerException 15:04:36 at hudson.maven.AbstractMavenBuilder$FilterImpl.executeAsync(AbstractMavenBuilder.java:174) 15:04:36 at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:128) 15:04:36 at hudson.maven.Maven3Builder$MavenExecutionListener.recordProjectSucceeded(Maven3Builder.java:378) 15:04:36 at hudson.maven.Maven3Builder$MavenExecutionListener.projectSucceeded(Maven3Builder.java:352) 15:04:36 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:74) 15:04:36 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 15:04:36 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91) 15:04:36 ... 10 more
    via by banoss,
  • Maven Parallel ( -T ) Failure
    via by Keith,
    • org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167) at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 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:662) Caused by: java.lang.NullPointerException at hudson.maven.AbstractMavenBuilder$FilterImpl.executeAsync(AbstractMavenBuilder.java:174) at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:128) at hudson.maven.Maven3Builder$MavenExecutionListener.recordProjectSucceeded(Maven3Builder.java:378) at hudson.maven.Maven3Builder$MavenExecutionListener.projectSucceeded(Maven3Builder.java:352) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:74) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91) ... 10 more
    No Bugmate found.