[JIRA] (JENKINS-15413) NPE - compiler-warnings.xml not found
Olaf Lenz created JENKINS-15413 NPE - compiler-warnings.xml not found Issue Type: Bug Affects Versions: current Assignee: Ulli Hafner Attachments: job.tar.gz Components: warnings Created: 05/Oct/12 7:48 AM Description: Since having updated Jenkins to 1.481 and the Warnings Plugin to 1.416 (and subsequently to 1.417), I get the following errors in some of the jobs: ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException at hudson.plugins.warnings.WarningsResult.getFileName(WarningsResult.java:108) at hudson.plugins.warnings.WarningsResult.getSerializationFileName(WarningsResult.java:94) at hudson.plugins.analysis.core.BuildResult.getDataFile(BuildResult.java:481) at hudson.plugins.analysis.core.BuildResult.loadResult(BuildResult.java:896) at hudson.plugins.analysis.core.BuildResult.getProject(BuildResult.java:880) at hudson.plugins.analysis.core.BuildResult.getContainer(BuildResult.java:1020) at hudson.plugins.analysis.core.BuildResult.getAnnotations(BuildResult.java:563) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:238) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:289) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) An example is this job: http://espressomd.org/jenkins/job/ESPResSo-nightly-distcheck/ I have attached a tarfile of the whole job directory (without the artifacts), so that you can check for yourself. Here is some more information: The error is reproducible when running the job again. After the discussion in the plugin's comment section, I have checked the contents of the job directory. Build 224 has a file build.xml that contains three result class="hudson.plugins.warnings.WarningsResult" tags, but all of them have a group subtag and the corresponding *-warnings.xml-file. The log contains the error. The build before ran without any trouble. Its build.xml does not contain any WarningResult tag, as the plugin was deactivated during that time. All other builds before either contained one (or more) files compiler-warnings.xml and the corresponding sections in build.xml. Environment: Linux master and slaves, slaves run via ssh Project: Jenkins Labels: plugin Priority: Major Reporter: Olaf Lenz This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-15413) NPE - compiler-warnings.xml not found
Olaf Lenz updated JENKINS-15413 NPE - compiler-warnings.xml not found Change By: Olaf Lenz (05/Oct/12 8:32 AM) Description: SincehavingupdatedJenkinsto1.481andtheWarningsPluginto 1 4 . 416 16 (andsubsequentlyto 1 4 . 417 17 ),Igetthefollowingerrorsinsomeofthejobs:{noformat}ERROR:Publisherhudson.plugins.warnings.WarningsPublisherabortedduetoexceptionjava.lang.NullPointerExceptionathudson.plugins.warnings.WarningsResult.getFileName(WarningsResult.java:108)athudson.plugins.warnings.WarningsResult.getSerializationFileName(WarningsResult.java:94)athudson.plugins.analysis.core.BuildResult.getDataFile(BuildResult.java:481)athudson.plugins.analysis.core.BuildResult.loadResult(BuildResult.java:896)athudson.plugins.analysis.core.BuildResult.getProject(BuildResult.java:880)athudson.plugins.analysis.core.BuildResult.getContainer(BuildResult.java:1020)athudson.plugins.analysis.core.BuildResult.getAnnotations(BuildResult.java:563)athudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:238)athudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:289)athudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)athudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)athudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)athudson.model.Build$BuildExecution.post2(Build.java:183)athudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)athudson.model.Run.execute(Run.java:1527)athudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)athudson.model.ResourceController.execute(ResourceController.java:88)athudson.model.Executor.run(Executor.java:236){noformat}Anexampleisthisjob:[http://espressomd.org/jenkins/job/ESPResSo-nightly-distcheck/]Ihaveattachedatarfileofthewholejobdirectory(withouttheartifacts),sothatyoucancheckforyourself.Hereissomemoreinformation:*Theerrorisreproduciblewhenrunningthejobagain.*Afterthediscussioninthepluginscommentsection,Ihavecheckedthecontentsofthejobdirectory.**Build224hasafile{{build.xml}}thatcontainsthree{{resultclass=hudson.plugins.warnings.WarningsResult}}tags,butallofthemhavea{{group}}subtagandthecorresponding{{*-warnings.xml}}-file.Thelogcontainstheerror.**Thebuildbeforeranwithoutanytrouble.Its{{build.xml}}doesnotcontainany{{WarningResult}}tag,asthepluginwasdeactivatedduringthattime.**Allotherbuildsbeforeeithercontainedone(ormore)files{{compiler-warnings.xml}}andthecorrespondingsectionsin{{build.xml}}. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-15413) NPE - compiler-warnings.xml not found
Olaf Lenz commented on JENKINS-15413 NPE - compiler-warnings.xml not found This seems to be the same bug as JENKINS-15017, i.e. apparently it is a duplicate. I'm not sure whether it is the same as JENKINS-14989, though, as the stack trace is not the same. Could be different versions of the plugin, though. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-15413) NPE - compiler-warnings.xml not found
Ulli Hafner commented on JENKINS-15413 NPE - compiler-warnings.xml not found Ah, I forget about that. Maybe this NPE is actually the same. Can you please update to the new versions of analysis-core and warnings that I released today? This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-15413) NPE - compiler-warnings.xml not found
Olaf Lenz resolved JENKINS-15413 as Fixed NPE - compiler-warnings.xml not found Excellent! After the update to 4.18, the errors are gone. Thank you very much for the quick fix! >From my POV, the issue can be closed. Change By: Olaf Lenz (05/Oct/12 4:09 PM) Status: Open Resolved Resolution: Fixed This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira