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

Jenkins JIRA | David Karlsen | 5 years ago
  1. 0

    [JENKINS-11078] NullPointerException in hudson.maven.Maven3Builder$MavenExecutionListener.recordProjectStarted - Jenkins JIRA

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

    {noformat} 22:24:15 mavenExecutionResult exceptions not empty 22:24:15 message : Internal error: java.lang.NullPointerException 22:24:15 cause : null 22:24:15 Stack trace : 22:24:15 org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException 22:24:15 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) 22:24:15 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) 22:24:15 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167) 22:24:15 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164) 22:24:15 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 22:24:15 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 22:24:15 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 22:24:15 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 22:24:15 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 22:24:15 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 22:24:15 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 22:24:15 at java.lang.Thread.run(Thread.java:662) 22:24:15 Caused by: java.lang.NullPointerException 22:24:15 at hudson.maven.Maven3Builder$MavenExecutionListener.recordProjectStarted(Maven3Builder.java:368) 22:24:15 at hudson.maven.Maven3Builder$MavenExecutionListener.projectStarted(Maven3Builder.java:358) 22:24:15 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:71) 22:24:15 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 22:24:15 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:78) 22:24:15 ... 10 more {noformat} I have some modules which gets activated by properties (provided as buildparameters) - when I activate these with the property it fails with the stack trace. Note however that if the same modules are activated explicity on the commandline with -P it all works ok - so this only happens when activating via properties.

    Jenkins JIRA | 5 years ago | David Karlsen
    org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
  3. 0

    {noformat} 22:24:15 mavenExecutionResult exceptions not empty 22:24:15 message : Internal error: java.lang.NullPointerException 22:24:15 cause : null 22:24:15 Stack trace : 22:24:15 org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException 22:24:15 at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) 22:24:15 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) 22:24:15 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167) 22:24:15 at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164) 22:24:15 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 22:24:15 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 22:24:15 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 22:24:15 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 22:24:15 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 22:24:15 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 22:24:15 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 22:24:15 at java.lang.Thread.run(Thread.java:662) 22:24:15 Caused by: java.lang.NullPointerException 22:24:15 at hudson.maven.Maven3Builder$MavenExecutionListener.recordProjectStarted(Maven3Builder.java:368) 22:24:15 at hudson.maven.Maven3Builder$MavenExecutionListener.projectStarted(Maven3Builder.java:358) 22:24:15 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:71) 22:24:15 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 22:24:15 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:78) 22:24:15 ... 10 more {noformat} I have some modules which gets activated by properties (provided as buildparameters) - when I activate these with the property it fails with the stack trace. Note however that if the same modules are activated explicity on the commandline with -P it all works ok - so this only happens when activating via properties.

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

    Automated exception search integrated into your IDE

  5. 0

    Tycho jenkins build fail - nullpointer

    Stack Overflow | 5 years ago | katalizator
    org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
  6. 0

    Eclipse Community Forums: Hudson ยป Hudson and modules activated via parameterized profile

    eclipse.org | 1 year ago
    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.Maven3Builder$MavenExecutionListener.recordProjectStarted()
    2. Hudson Maven Embedder
      Maven3Builder$MavenExecutionListener.projectStarted
      1. hudson.maven.Maven3Builder$MavenExecutionListener.recordProjectStarted(Maven3Builder.java:368)
      2. hudson.maven.Maven3Builder$MavenExecutionListener.projectStarted(Maven3Builder.java:358)
      2 frames
    3. Maven Core
      LifecycleThreadedBuilder$1.call
      1. org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:71)
      2. org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      3. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:78)
      4. org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167)
      5. org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164)
      5 frames
    4. 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.Executors$RunnableAdapter.call(Executors.java:441)
      4. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      5. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      7. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      8. java.lang.Thread.run(Thread.java:662)
      8 frames