Re: Null pointer in M2ReleaseBuildWrapper
I have downloaded jenkins version 1.486, and don't get the issue anymore. My bug must the same than 15465. (present in 1.485, fixed in 1.486) Thank you very much for your analysis ! Thierry On Thursday, October 11, 2012 6:05:32 PM UTC+2, Richard Mortimer wrote: Hi, On 11/10/2012 15:58, teilo wrote: *Hello,* getProject*().*getBuilds*() is returning a list which contains a null entry which is just not good.* *This appears on first inspection to be a Jenkins core issue – can you try with earlier cores to track down when this was introduced?* This is almost certainly related to https://issues.jenkins-ci.org/browse/JENKINS-15465 RunList returning null from its elements in 1.485 It looks like a bug in the lazy loading of build records. Richard ***/James* On Thursday, 11 October 2012 15:47:16 UTC+1, Thierry wrote: Hello, I get this exception at end of perform maven release build. This is a feature from M2 Release Plugin En attente que Jenkins finisse de récupérer les données channel stopped ERROR: Processing failed due to a bug in the code. Please report this to jenkins...@googlegroups.com javascript: java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.isSuccessfulReleaseBuild(M2ReleaseBuildWrapper.java:270) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:209) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:817) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:589) at hudson.model.Run.execute(Run.java:1516) 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@9046f8[cmiiappjavasimpledemoTmp] project.getModules()=[hudson.maven.MavenModule@1d9d7ab[cmiiappjavasimpledemoTmp/com.alcatel.proserv.cmII:cmIIappJavaSimpleDemo][cmiiappjavasimpledemoTmp/com. alcatel.proserv.cmII:cmIIappJavaSimpleDemo][relativePath:]] project.getRootModule()=hudson.maven.MavenModule@1d9d7ab[cmiiappjavasimpledemoTmp/com.alcatel.proserv.cmII:cmIIappJavaSimpleDemo][cmiiappjavasimpledemoTmp/co m.alcatel.proserv.cmII:cmIIappJavaSimpleDemo][relativePath:] FATAL: null configuration : Plugin version is 0.10.0. Jenkins is 1.485. java jre 1.6.0_35 windows xp additionnal infos : - mvn release:perform (in dos command line) succeeds. - I have first installed plugin 0.9.1. I got quite the same NPE. I though issue could be similar to http://issues.jenkins-ci.org/browse/JENKINS-10042 http://issues.jenkins-ci.org/browse/JENKINS-10042 and decided to try 0.10.0 - I can provide more information on demand. In help in order to fix this issue is welcome ! Thanks in advance. Thierry
Re: Null pointer in M2ReleaseBuildWrapper
*Hello,* getProject*().*getBuilds*() is returning a list which contains a null entry which is just not good.* *This appears on first inspection to be a Jenkins core issue – can you try with earlier cores to track down when this was introduced?* * **/James* On Thursday, 11 October 2012 15:47:16 UTC+1, Thierry wrote: Hello, I get this exception at end of perform maven release build. This is a feature from M2 Release Plugin En attente que Jenkins finisse de récupérer les données channel stopped ERROR: Processing failed due to a bug in the code. Please report this to jenkins...@googlegroups.com javascript: java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.isSuccessfulReleaseBuild(M2ReleaseBuildWrapper.java:270) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:209) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:817) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:589) at hudson.model.Run.execute(Run.java:1516) 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@9046f8[cmiiappjavasimpledemoTmp] project.getModules()=[hudson.maven.MavenModule@1d9d7ab[cmiiappjavasimpledemoTmp/com.alcatel.proserv.cmII:cmIIappJavaSimpleDemo][cmiiappjavasimpledemoTmp/com. alcatel.proserv.cmII:cmIIappJavaSimpleDemo][relativePath:]] project.getRootModule()=hudson.maven.MavenModule@1d9d7ab[cmiiappjavasimpledemoTmp/com.alcatel.proserv.cmII:cmIIappJavaSimpleDemo][cmiiappjavasimpledemoTmp/co m.alcatel.proserv.cmII:cmIIappJavaSimpleDemo][relativePath:] FATAL: null configuration : Plugin version is 0.10.0. Jenkins is 1.485. java jre 1.6.0_35 windows xp additionnal infos : - mvn release:perform (in dos command line) succeeds. - I have first installed plugin 0.9.1. I got quite the same NPE. I though issue could be similar to http://issues.jenkins-ci.org/browse/JENKINS-10042 and decided to try 0.10.0 - I can provide more information on demand. In help in order to fix this issue is welcome ! Thanks in advance. Thierry
Re: Null pointer in M2ReleaseBuildWrapper
Hi, On 11/10/2012 15:58, teilo wrote: *Hello,* getProject*().*getBuilds*() is returning a list which contains a null entry which is just not good.* *This appears on first inspection to be a Jenkins core issue – can you try with earlier cores to track down when this was introduced?* This is almost certainly related to https://issues.jenkins-ci.org/browse/JENKINS-15465 RunList returning null from its elements in 1.485 It looks like a bug in the lazy loading of build records. Richard ***/James* On Thursday, 11 October 2012 15:47:16 UTC+1, Thierry wrote: Hello, I get this exception at end of perform maven release build. This is a feature from M2 Release Plugin En attente que Jenkins finisse de récupérer les données channel stopped ERROR: Processing failed due to a bug in the code. Please report this to jenkins...@googlegroups.com javascript: java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.isSuccessfulReleaseBuild(M2ReleaseBuildWrapper.java:270) at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:209) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:817) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:589) at hudson.model.Run.execute(Run.java:1516) 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@9046f8[cmiiappjavasimpledemoTmp] project.getModules()=[hudson.maven.MavenModule@1d9d7ab[cmiiappjavasimpledemoTmp/com.alcatel.proserv.cmII:cmIIappJavaSimpleDemo][cmiiappjavasimpledemoTmp/com. alcatel.proserv.cmII:cmIIappJavaSimpleDemo][relativePath:]] project.getRootModule()=hudson.maven.MavenModule@1d9d7ab[cmiiappjavasimpledemoTmp/com.alcatel.proserv.cmII:cmIIappJavaSimpleDemo][cmiiappjavasimpledemoTmp/co m.alcatel.proserv.cmII:cmIIappJavaSimpleDemo][relativePath:] FATAL: null configuration : Plugin version is 0.10.0. Jenkins is 1.485. java jre 1.6.0_35 windows xp additionnal infos : - mvn release:perform (in dos command line) succeeds. - I have first installed plugin 0.9.1. I got quite the same NPE. I though issue could be similar to http://issues.jenkins-ci.org/browse/JENKINS-10042 http://issues.jenkins-ci.org/browse/JENKINS-10042 and decided to try 0.10.0 - I can provide more information on demand. In help in order to fix this issue is welcome ! Thanks in advance. Thierry