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.

  • NPE m2Release
    via by Paul Moloney,
  • I installed m2release plugin into Hudson and got the below error information after start to perform maven release. ERROR: Processing failed due to a bug in the code. Please report this to hudson-users@googlegroups.com java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:345) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.setUp(M2ReleaseBuildWrapper.java:161) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:516) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417) at hudson.model.Run.run(Run.java:1362) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:400) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) project=hudson.maven.MavenModuleSet@3fcf59[Test] project.getModules()=[] project.getRootModule()=null FATAL: null java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:345) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.setUp(M2ReleaseBuildWrapper.java:161) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:516) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417) at hudson.model.Run.run(Run.java:1362) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:400) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145)
    via by Steven Zhu,
  • We set up a new project and performed a build which succeeded. After that, I scheduled a maven release. it failed with this error: Found mavenVersion 2.2.1 from file jar:file:/var/lib/hudson/tools/Maven2/lib/maven-2.2.1-uber.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties ERROR: Processing failed due to a bug in the code. Please report this to hudson-users@googlegroups.com java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:345) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.setUp(M2ReleaseBuildWrapper.java:161) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:521) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417) at hudson.model.Run.run(Run.java:1362) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:405) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) project=hudson.maven.MavenModuleSet@528e75f2[ften-common-ui_3.0_bugfix] project.getModules()=[hudson.maven.MavenModule@63d8f452[ften-common-ui_3.0_bugfix/com.ften.ui:ften-common-ui][ften-common-ui_3.0_bugfix/com.ften.ui:ften-common-ui][relativePath:]] project.getRootModule()=null FATAL: null This error may have been because we switched from one shared repository to a separate repository for each project. Not sure. But that's not why I'm creating this issue. What happened is that the maven goals for the project changed from what they were to the maven release goals. - release:clean release:prepare release:perform. I suspect that the code to revert the goals to what they were needs to be wrapped in a finally block to ensure that regardless of what happens, the goals are reverted to their original state. Ironically, the next build actually did a successful release:clean release:prepare release:perform. *edit* the successful release was because the goals were changed. I didn't invoke the release plugin.
    via by scooper4711,
  • I installed m2release plugin into Hudson and got the below error information after start to perform maven release. ERROR: Processing failed due to a bug in the code. Please report this to hudson-users@googlegroups.com java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:345) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.setUp(M2ReleaseBuildWrapper.java:161) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:516) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417) at hudson.model.Run.run(Run.java:1362) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:400) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) project=hudson.maven.MavenModuleSet@3fcf59[Test] project.getModules()=[] project.getRootModule()=null FATAL: null java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:345) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.setUp(M2ReleaseBuildWrapper.java:161) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:516) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417) at hudson.model.Run.run(Run.java:1362) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:400) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145)
    via by Steven Zhu,
  • We set up a new project and performed a build which succeeded. After that, I scheduled a maven release. it failed with this error: Found mavenVersion 2.2.1 from file jar:file:/var/lib/hudson/tools/Maven2/lib/maven-2.2.1-uber.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties ERROR: Processing failed due to a bug in the code. Please report this to hudson-users@googlegroups.com java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:345) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.setUp(M2ReleaseBuildWrapper.java:161) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:521) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417) at hudson.model.Run.run(Run.java:1362) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:405) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) project=hudson.maven.MavenModuleSet@528e75f2[ften-common-ui_3.0_bugfix] project.getModules()=[hudson.maven.MavenModule@63d8f452[ften-common-ui_3.0_bugfix/com.ften.ui:ften-common-ui][ften-common-ui_3.0_bugfix/com.ften.ui:ften-common-ui][relativePath:]] project.getRootModule()=null FATAL: null This error may have been because we switched from one shared repository to a separate repository for each project. Not sure. But that's not why I'm creating this issue. What happened is that the maven goals for the project changed from what they were to the maven release goals. - release:clean release:prepare release:perform. I suspect that the code to revert the goals to what they were needs to be wrapped in a finally block to ensure that regardless of what happens, the goals are reverted to their original state. Ironically, the next build actually did a successful release:clean release:prepare release:perform. *edit* the successful release was because the goals were changed. I didn't invoke the release plugin.
    via by scooper4711,
  • During project release following errors has occurred. See log below. Both addresses http://coderepo/svn/main/ and http://10.9.172.66/svn/main represents the same repository. ..... [INFO] Unable to tag SCM Provider message: The svn tag command failed. Command output: svn: Source and dest appear not to be in the same repository (src: 'http://coderepo/svn/main/country_product4/trunk/mt-vms'; dst: 'http://10.9.172.66/svn/main/country_product4/tags/com.telco.product.country.vms/mt-vms-main-0.1.1') [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 26 seconds [INFO] Finished at: Wed Jun 30 14:02:24 CEST 2010 [INFO] Final Memory: 16M/508M [INFO] ------------------------------------------------------------------------ channel stopped ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:345) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.access$200(M2ReleaseBuildWrapper.java:74) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:185) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:493) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1257) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:127) project=hudson.maven.MavenModuleSet@c6509e[mt-vms] project.getModules()=[hudson.maven.MavenModule@1d9626b[mt-vms/com.telco.product.country.vms:mt-vms-application-config], hudson.maven.MavenModule@cc87c1[mt-vms/com.telco.product.country.vms:mt-vms-decryption-tool], hudson.maven.MavenModule@1e4b53d[mt-vms/com.telco.product.country.vms:mt-vms-gui], hudson.maven.MavenModule@36ef21[mt-vms/com.telco.product.country.vms:mt-vms-gui-management], hudson.maven.MavenModule@8d9b22[mt-vms/com.telco.product.country.vms:mt-vms-main], hudson.maven.MavenModule@c3f750[mt-vms/com.telco.product.country.vms:mt-vms-model-impl-ejb3], hudson.maven.MavenModule@1a1d5cb[mt-vms/com.telco.product.country.vms:mt-vms-ws-impl-ejb3]] project.getRootModule()=hudson.maven.MavenModule@8d9b22[mt-vms/com.telco.product.country.vms:mt-vms-main] FATAL: null java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:345) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.access$200(M2ReleaseBuildWrapper.java:74) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:185) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:493) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1257) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:127)
    via by pkania,
  • During project release following errors has occurred. See log below. Both addresses http://coderepo/svn/main/ and http://10.9.172.66/svn/main represents the same repository. ..... [INFO] Unable to tag SCM Provider message: The svn tag command failed. Command output: svn: Source and dest appear not to be in the same repository (src: 'http://coderepo/svn/main/country_product4/trunk/mt-vms'; dst: 'http://10.9.172.66/svn/main/country_product4/tags/com.telco.product.country.vms/mt-vms-main-0.1.1') [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 26 seconds [INFO] Finished at: Wed Jun 30 14:02:24 CEST 2010 [INFO] Final Memory: 16M/508M [INFO] ------------------------------------------------------------------------ channel stopped ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:345) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.access$200(M2ReleaseBuildWrapper.java:74) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:185) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:493) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1257) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:127) project=hudson.maven.MavenModuleSet@c6509e[mt-vms] project.getModules()=[hudson.maven.MavenModule@1d9626b[mt-vms/com.telco.product.country.vms:mt-vms-application-config], hudson.maven.MavenModule@cc87c1[mt-vms/com.telco.product.country.vms:mt-vms-decryption-tool], hudson.maven.MavenModule@1e4b53d[mt-vms/com.telco.product.country.vms:mt-vms-gui], hudson.maven.MavenModule@36ef21[mt-vms/com.telco.product.country.vms:mt-vms-gui-management], hudson.maven.MavenModule@8d9b22[mt-vms/com.telco.product.country.vms:mt-vms-main], hudson.maven.MavenModule@c3f750[mt-vms/com.telco.product.country.vms:mt-vms-model-impl-ejb3], hudson.maven.MavenModule@1a1d5cb[mt-vms/com.telco.product.country.vms:mt-vms-ws-impl-ejb3]] project.getRootModule()=hudson.maven.MavenModule@8d9b22[mt-vms/com.telco.product.country.vms:mt-vms-main] FATAL: null java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:345) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.access$200(M2ReleaseBuildWrapper.java:74) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:185) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:493) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1257) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:127)
    via by pkania,
    • java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getReleaseVersion(M2ReleaseBuildWrapper.java:336) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.setUp(M2ReleaseBuildWrapper.java:159) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:607) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:429) at hudson.model.Run.run(Run.java:1375) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:467) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145)
    No Bugmate found.