java.lang.NullPointerException

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.

  • {code} [INFO] Installing /home/appusr/.jenkins/jobs/_BUILD_ARTIFACT/workspace/icm.demo.core.app/target/icm.demo.core.app-0.7-SNAPSHOT/lib/res.jar to /home/appusr/.m2/repository/com/telvent/oip/icm.demo.core.app/0.7-SNAPSHOT/icm.demo.core.app-0.7-SNAPSHOT.jar Notifying upstream projects of job completion Join notifier requires a CauseAction [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 34.069s [INFO] Finished at: Mon Jul 21 16:51:28 CEST 2014 [INFO] Final Memory: 44M/64M [INFO] ------------------------------------------------------------------------ ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com [ERROR] Internal error: java.lang.NullPointerException -> [Help 1] org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117) 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.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:178) 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 hudson.maven.Maven3Builder.call(Maven3Builder.java:134) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) 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:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NullPointerException at hudson.maven.Maven3Builder$MavenExecutionListener.sessionEnded(Maven3Builder.java:467) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) ... 23 more [ERROR] java.lang.NullPointerException at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:100) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:849) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535) at hudson.model.Run.execute(Run.java:1732) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) project=hudson.maven.MavenModuleSet@9f85ec8[_BUILD_ARTIFACT] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. project.getModules()=[hudson.maven.MavenModule@a063a3d[_BUILD_ARTIFACT/com.telvent.oip:icm.demo.core.app][_BUILD_ARTIFACT/com.telvent.oip:icm.demo.core.app][relativePath:], hudson.maven.MavenModule@a063a50[_BUILD_ARTIFACT/com.telvent.oip:icm.demo.database][_BUILD_ARTIFACT/com.telvent.oip:icm.demo.database][relativePath:], hudson.maven.MavenModule@a0638d4[_BUILD_ARTIFACT/com.telvent.oip:icm.demo.flexconsole][_BUILD_ARTIFACT/com.telvent.oip:icm.demo.flexconsole][relativePath:], hudson.maven.MavenModule@a19e59e[_BUILD_ARTIFACT/com.telvent.oip:icm.demo.flexconsole.webapp][_BUILD_ARTIFACT/com.telvent.oip:icm.demo.flexconsole.webapp][relativePath:]] project.getRootModule()=hudson.maven.MavenModule@a063a50[_BUILD_ARTIFACT/com.telvent.oip:icm.demo.database][_BUILD_ARTIFACT/com.telvent.oip:icm.demo.database][relativePath:] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException FATAL: null java.lang.NullPointerException at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:100) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:849) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535) at hudson.model.Run.execute(Run.java:1732) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) {code} I have a parametrized multi-configuration project (_BUILD_CORE_N_DB_ARTIFACTS) that triggers with every axis configuration the execution a simple maven proyect (_BUILD_ARTIFACT, that basically downloads an artifact from SCM repository (Subversion) and invokes "maven install" with some options. Everything is parameterized for _BUILD_ARTIFACT (even SVN URL). Once _BUILD_ARTIFACT finishes, _BUILD_CORE_N_DB_ARTIFACTS job grabs the resulting archived file using copy artifact plugin with the build number indicated in TRIGGERED_BUILD_NUMBER__BUILD_ARTIFACT environment variable. _BUILD_CORE_N_DB_ARTIFACTS performs a touchstone build first and then three artifacts are generated in parallel. One of these three artifacts (an EAR, a WAR and a ZIP with DB scripts) fails with NPE indicated above. It is not always the same artifact. I have tested this on latest (1.573) and previous (1.572) Jenkins versions with same results.
    via by Fernando Miguelez,
  • {code} [INFO] Installing /home/appusr/.jenkins/jobs/_BUILD_ARTIFACT/workspace/icm.demo.core.app/target/icm.demo.core.app-0.7-SNAPSHOT/lib/res.jar to /home/appusr/.m2/repository/com/telvent/oip/icm.demo.core.app/0.7-SNAPSHOT/icm.demo.core.app-0.7-SNAPSHOT.jar Notifying upstream projects of job completion Join notifier requires a CauseAction [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 34.069s [INFO] Finished at: Mon Jul 21 16:51:28 CEST 2014 [INFO] Final Memory: 44M/64M [INFO] ------------------------------------------------------------------------ ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com [ERROR] Internal error: java.lang.NullPointerException -> [Help 1] org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117) 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.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:178) 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 hudson.maven.Maven3Builder.call(Maven3Builder.java:134) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) 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:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NullPointerException at hudson.maven.Maven3Builder$MavenExecutionListener.sessionEnded(Maven3Builder.java:467) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) ... 23 more [ERROR] java.lang.NullPointerException at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:100) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:849) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535) at hudson.model.Run.execute(Run.java:1732) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) project=hudson.maven.MavenModuleSet@9f85ec8[_BUILD_ARTIFACT] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. project.getModules()=[hudson.maven.MavenModule@a063a3d[_BUILD_ARTIFACT/com.telvent.oip:icm.demo.core.app][_BUILD_ARTIFACT/com.telvent.oip:icm.demo.core.app][relativePath:], hudson.maven.MavenModule@a063a50[_BUILD_ARTIFACT/com.telvent.oip:icm.demo.database][_BUILD_ARTIFACT/com.telvent.oip:icm.demo.database][relativePath:], hudson.maven.MavenModule@a0638d4[_BUILD_ARTIFACT/com.telvent.oip:icm.demo.flexconsole][_BUILD_ARTIFACT/com.telvent.oip:icm.demo.flexconsole][relativePath:], hudson.maven.MavenModule@a19e59e[_BUILD_ARTIFACT/com.telvent.oip:icm.demo.flexconsole.webapp][_BUILD_ARTIFACT/com.telvent.oip:icm.demo.flexconsole.webapp][relativePath:]] project.getRootModule()=hudson.maven.MavenModule@a063a50[_BUILD_ARTIFACT/com.telvent.oip:icm.demo.database][_BUILD_ARTIFACT/com.telvent.oip:icm.demo.database][relativePath:] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException FATAL: null java.lang.NullPointerException at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:100) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:849) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535) at hudson.model.Run.execute(Run.java:1732) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) {code} I have a parametrized multi-configuration project (_BUILD_CORE_N_DB_ARTIFACTS) that triggers with every axis configuration the execution a simple maven proyect (_BUILD_ARTIFACT, that basically downloads an artifact from SCM repository (Subversion) and invokes "maven install" with some options. Everything is parameterized for _BUILD_ARTIFACT (even SVN URL). Once _BUILD_ARTIFACT finishes, _BUILD_CORE_N_DB_ARTIFACTS job grabs the resulting archived file using copy artifact plugin with the build number indicated in TRIGGERED_BUILD_NUMBER__BUILD_ARTIFACT environment variable. _BUILD_CORE_N_DB_ARTIFACTS performs a touchstone build first and then three artifacts are generated in parallel. One of these three artifacts (an EAR, a WAR and a ZIP with DB scripts) fails with NPE indicated above. It is not always the same artifact. I have tested this on latest (1.573) and previous (1.572) Jenkins versions with same results.
    via by Fernando Miguelez,
  • GitHub comment 7197#167542941
    via GitHub by jerrinot
    ,
  • prerequisite: at least one running maven job 1. open Manage Jenkins - Configure System 2. click add maven 3. click delete installer 4. move the (empty) maven to the top of the list of maven installations 5. click save 6. run the maven job expected: maven job runs as before result: ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.NullPointerException at hudson.maven.MavenModuleSet.getMaven(MavenModuleSet.java:982) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:160) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:568) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1484) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) project=hudson.maven.MavenModuleSet@16c8cb41 [... some list of modules here ... ] FATAL: null java.lang.NullPointerException at hudson.maven.MavenModuleSet.getMaven(MavenModuleSet.java:982) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:160) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:568) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1484) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) my hudson.tasks.Maven.xml looks like this: <?xml version='1.0' encoding='UTF-8'?> <hudson.tasks.Maven_-DescriptorImpl> <helpRedirect/> <installations> <hudson.tasks.Maven_-MavenInstallation> <properties> <hudson.tools.InstallSourceProperty> <installers/> </hudson.tools.InstallSourceProperty> </properties> </hudson.tasks.Maven_-MavenInstallation> <hudson.tasks.Maven_-MavenInstallation> <name>/cvsroot/maven/maven-bin/maven-2.0.11 (depreciated - for Java 1.4 only)</name> <home>/var/hudson/tools/maven-bin/maven-2.0.11</home> <properties/> </hudson.tasks.Maven_-MavenInstallation> <hudson.tasks.Maven_-MavenInstallation> <name>/cvsroot/maven/maven-bin/maven-2.2.1 (Java 1.5+ required)</name> <home>/var/hudson/tools/maven-bin/maven-2.2.1</home> <properties/> </hudson.tasks.Maven_-MavenInstallation> <hudson.tasks.Maven_-MavenInstallation> <name>/cvsroot/maven/maven-bin/maven-3.0.x</name> <home>/var/hudson/tools/maven-bin/maven-3.0.x</home> <properties/> </hudson.tasks.Maven_-MavenInstallation> </installations> </hudson.tasks.Maven_-DescriptorImpl> the fix is simple: just delete the empty maven configuration
    via by Florian Rosenauer,
  • GitHub comment 7368#173119347
    via GitHub by mdogan
    ,
  • GitHub comment 7368#173121727
    via GitHub by gurbuzali
    ,
  • I'm trying to parallelize parametrized jobs from a Multi-Project one. The fact is that the configurations of the jobs are the same. When I build my MP jobs the error can occur on a sub-job which is not always the same, it's really hazardous.... There is no logic in it Did somenone encountered this error too ? ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.NullPointerException at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:101) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:855) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1718) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) project=hudson.maven.MavenModuleSet@3b3f4f26[Aggregator_XXX_(VERSIONING)] project.getModules()=[hudson.maven.MavenModule@4d30311[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-Admin-jar-1.5][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-Admin-jar-1.5][relativePath:_poms\ept-pom-aggregator-Admin-jar-1.5], hudson.maven.MavenModule@60a3eba9[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-Common-jar-1.5][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-Common-jar-1.5][relativePath:_poms\ept-pom-aggregator-Common-jar-1.5], hudson.maven.MavenModule@2c1cebdb[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-Common-jar-1.6][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-Common-jar-1.6][relativePath:_poms\ept-pom-aggregator-Common-jar-1.6], hudson.maven.MavenModule@44778b0[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-ear-was85][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-ear-was85][relativePath:_poms\ept-pom-aggregator-SOAApp-ear-was85], hudson.maven.MavenModule@23c708ab[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-jar-1.5][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-jar-1.5][relativePath:_poms\ept-pom-aggregator-SOAApp-jar-1.5], hudson.maven.MavenModule@2ddd0e72[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-jar-1.6][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-jar-1.6][relativePath:_poms\ept-pom-aggregator-SOAApp-jar-1.6], hudson.maven.MavenModule@80f97da[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-war-was85][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-war-was85][relativePath:_poms\ept-pom-aggregator-SOAApp-war-was85], hudson.maven.MavenModule@41ca0966[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOXX-ear][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOXX-ear][relativePath:_poms\ept-pom-aggregator-SOXX-ear], hudson.maven.MavenModule@5e5d8ea8[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOXX-jar-1.5][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOXX-jar-1.5][relativePath:_poms\ept-pom-aggregator-SOXX-jar-1.5], hudson.maven.MavenModule@222b72db[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOXX-war][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOXX-war][relativePath:_poms\ept-pom-aggregator-SOXX-war], hudson.maven.MavenModule@76192577[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-ear-was85][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-ear-was85][relativePath:_poms\ept-pom-aggregator-WebServices-ear-was85], hudson.maven.MavenModule@37df5e23[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-jar-1.5][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-jar-1.5][relativePath:_poms\ept-pom-aggregator-WebServices-jar-1.5], hudson.maven.MavenModule@2c326e33[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-jar-1.6][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-jar-1.6][relativePath:_poms\ept-pom-aggregator-WebServices-jar-1.6], hudson.maven.MavenModule@7c5e1e09[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-jaxb][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-jaxb][relativePath:_poms\ept-pom-aggregator-WebServices-jaxb], hudson.maven.MavenModule@6bb72cf9[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-model][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-model][relativePath:_poms\ept-pom-aggregator-WebServices-model], hudson.maven.MavenModule@1c3b7171[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-war-was85][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-WebServices-war-was85][relativePath:_poms\ept-pom-aggregator-WebServices-war-was85]] project.getRootModule()=hudson.maven.MavenModule@44778b0[Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-ear-was85][Aggregator_XXX_(VERSIONING)/lu.ept.pom:ept-pom-aggregator-SOAApp-ear-was85][relativePath:_poms\ept-pom-aggregator-SOAApp-ear-was85] FATAL: null java.lang.NullPointerException at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:101) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:855) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1718) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)
    via by alexis oliot,
  • One Job is triggered by the build-flow-plugin to run parallel Each Job-Instance get its own workspace: {code:java} ./workspace/${JOB_NAME}/${WS_EXTENSION} {code} When parallel build is enabled, an NullPointerException raises. {code:java} // BUILD FLOW def SVN_REVISION = build.buildVariableResolver.resolve("SVN_REVISION") def SVN_SUB_DIR = build.buildVariableResolver.resolve("SVN_SUB_DIR") def SVN_ROOT = "https://<svn-server>/<directory>" parallel ( {pg06 = build( "FW_package_maven", WS_EXTENSION: "package1", SVN_URL: "$SVN_ROOT/$SVN_SUB_DIR", SVN_REVISION: "$SVN_REVISION", BUILD_LABEL: "linux") }, {pg07 = build( "FW_package_maven", WS_EXTENSION: "package2", SVN_URL: "$SVN_ROOT/$SVN_SUB_DIR", SVN_REVISION: "$SVN_REVISION", BUILD_LABEL: "linux") } ) {code} {code:java} // IN JOB "FW_package_maven" ... [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.129 s [INFO] Finished at: 2015-06-09T15:48:10+02:00 [INFO] Final Memory: 18M/103M [INFO] ------------------------------------------------------------------------ ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.NullPointerException at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:101) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:855) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1741) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) project=hudson.maven.MavenModuleSet@6f47dd8d[MSK-FW_package_maven] project.getModules()=[hudson.maven.MavenModule@65f57b69[xxx], hudson.maven.MavenModule@3a0637c3[xxx][relativePath:]] project.getRootModule()=hudson.maven.MavenModule@65f57b69[xxx][xxx][relativePath:] FATAL: null java.lang.NullPointerException at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:101) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:855) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1741) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Finished: FAILURE {code}
    via by Philipp Strobel,
  • When there is a scm change in the next jenkins build ( no scheduler ATM) jenkins fails to build. I am able to produce it using workshop.perforce.coma an at my own company's depot. Subsequent manual invocation works ( provided that no new scm changes ) Here is console log Started by user anonymous Building in workspace C:\.jenkins\jobs\p4maven\workspace SCM Task: cleanup workspace: dan-laptop-p4maven-jenkins SCM Task: reverting all pending and shelved revisions. ... [list] = revert ... rm [list] | ABANDONED SCM Task: removing all non-versioned files. ... [list] = reconcile -n -a ... rm [list] SCM Task: restoring all missing and changed revisions. ... [list] = reconcile -n SCM Task: syncing files at change: 9725 ... sync C:\.jenkins\jobs\p4maven\workspace/...@9725 ... force update false ... bypass have false Parsing POMs ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.NullPointerException at hudson.maven.MavenModuleSetBuild$1.isDescendantOf(MavenModuleSetBuild.java:284) at hudson.maven.MavenModuleSetBuild$1.<init>(MavenModuleSetBuild.java:254) at hudson.maven.MavenModuleSetBuild.getChangeSetFor(MavenModuleSetBuild.java:247) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:701) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535) at hudson.model.Run.execute(Run.java:1732) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) project=hudson.maven.MavenModuleSet@25e0a843[p4maven] project.getModules()=[hudson.maven.MavenModule@44169c4a[p4maven/com.perforce.p4maven:p4maven][p4maven/com.perforce.p4maven:p4maven][relativePath:], hudson.maven.MavenModule@76d0e830[p4maven/com.perforce.p4maven:p4maven-dev][p4maven/com.perforce.p4maven:p4maven-dev][relativePath:p4maven-dev], hudson.maven.MavenModule@57458e21[p4maven/com.perforce.p4maven:p4maven-mojo][p4maven/com.perforce.p4maven:p4maven-mojo][relativePath:p4maven-mojo], hudson.maven.MavenModule@13328cbd[p4maven/com.perforce.p4maven:p4maven-provider][p4maven/com.perforce.p4maven:p4maven-provider][relativePath:p4maven-provider]] project.getRootModule()=hudson.maven.MavenModule@44169c4a[p4maven/com.perforce.p4maven:p4maven][p4maven/com.perforce.p4maven:p4maven][relativePath:] FATAL: null java.lang.NullPointerException at hudson.maven.MavenModuleSetBuild$1.isDescendantOf(MavenModuleSetBuild.java:284) at hudson.maven.MavenModuleSetBuild$1.<init>(MavenModuleSetBuild.java:254) at hudson.maven.MavenModuleSetBuild.getChangeSetFor(MavenModuleSetBuild.java:247) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:701) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535) at hudson.model.Run.execute(Run.java:1732) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) Here is another log at build job ================================= A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. The users list might be also useful in understanding what has happened. Stack trace javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.0/webapps/jenkins/WEB-INF/lib/jenkins-core-1.571.jar!/hudson/model/AbstractBuild/index.jelly:67:61: <st:include> No page found 'digest.jelly' for class hudson.maven.MavenBuild at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:117) at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:127) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:717) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631) at org.kohsuke.stapler.Stapler.service(Stapler.java:225) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:615) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.commons.jelly.JellyTagException: jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.0/webapps/jenkins/WEB-INF/lib/jenkins-core-1.571.jar!/hudson/model/AbstractBuild/index.jelly:67:61: <st:include> No page found 'digest.jelly' for class hudson.maven.MavenBuild at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:124) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161) at org.apache.commons.jelly.tags.core.WhenTag.doTag(WhenTag.java:46) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161) at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99) at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161) at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:41) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161) at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98) at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99) at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99) at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53) at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:112) ... 56 more
    via by dan tran,
    • java.lang.NullPointerException at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:100) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:849) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535) at hudson.model.Run.execute(Run.java:1732) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234)

    Users with the same issue

    Unknown visitor1 times, last one,