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.

  • When using FindBugs 2.0.0, and the fb-contrib plugin is enabled, the Jenkins plugin gets an NPE when parsing the resulting XML file, causing the build to fail: [FINDBUGS] Collecting findbugs analysis files... ERROR: Publisher hudson.plugins.findbugs.FindBugsPublisher aborted due to exception java.lang.NullPointerException at edu.umd.cs.findbugs.Project.setPluginStatus(Project.java:130) at edu.umd.cs.findbugs.SAXBugCollectionHandler.startElement(SAXBugCollectionHandler.java:384) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:356) at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:327) at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:314) at hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:263) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:206) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:143) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:103) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:358) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:317) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:266) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath.act(FilePath.java:756) at hudson.FilePath.act(FilePath.java:738) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:158) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:338) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:662) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:638) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:616) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:585) at hudson.model.Run.run(Run.java:1398) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) [WARNINGS] Skipping publisher since build result is FAILURE The plugin section of the XML file looks something like this: <?xml version="1.0" encoding="UTF-8"?> <BugCollection version="2.0.0" sequence="0" timestamp="1325796064745" analysisTimestamp="1325796064756" release=""> <Project projectName=""> .... <Plugin id="com.mebigfatguy.fbcontrib" enabled="true"/> </Project>
    via by Robert Hancock,
  • When using FindBugs 2.0.0, and the fb-contrib plugin is enabled, the Jenkins plugin gets an NPE when parsing the resulting XML file, causing the build to fail: [FINDBUGS] Collecting findbugs analysis files... ERROR: Publisher hudson.plugins.findbugs.FindBugsPublisher aborted due to exception java.lang.NullPointerException at edu.umd.cs.findbugs.Project.setPluginStatus(Project.java:130) at edu.umd.cs.findbugs.SAXBugCollectionHandler.startElement(SAXBugCollectionHandler.java:384) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:356) at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:327) at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:314) at hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:263) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:206) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:143) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:103) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:358) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:317) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:266) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath.act(FilePath.java:756) at hudson.FilePath.act(FilePath.java:738) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:158) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:338) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:662) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:638) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:616) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:585) at hudson.model.Run.run(Run.java:1398) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) [WARNINGS] Skipping publisher since build result is FAILURE The plugin section of the XML file looks something like this: <?xml version="1.0" encoding="UTF-8"?> <BugCollection version="2.0.0" sequence="0" timestamp="1325796064745" analysisTimestamp="1325796064756" release=""> <Project projectName=""> .... <Plugin id="com.mebigfatguy.fbcontrib" enabled="true"/> </Project>
    via by Robert Hancock,
    • java.lang.NullPointerException at edu.umd.cs.findbugs.Project.setPluginStatus(Project.java:130) at edu.umd.cs.findbugs.SAXBugCollectionHandler.startElement(SAXBugCollectionHandler.java:384) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:356) at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:327) at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:314) at hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:263) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:206) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:143) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:103) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:358) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:317) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:266) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath.act(FilePath.java:756) at hudson.FilePath.act(FilePath.java:738) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:158) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:338) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:662) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:638) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:616) at hudson.model.Build$RunnerImpl.post2(Build.java:161) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:585) at hudson.model.Run.run(Run.java:1398) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145)
    No Bugmate found.