-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
Platform: PC, OS: Windows XP
using hudson version 1.260 and latest version of violations plugin.
built a project that was empty using ANT and generated empty src.jar file for
project. findbugs was executed against this and produced an empty findbugs.xml
report file. The findbugs plugin recognizes this and skips the file causing no
problem but violations plugin threw the following exception:
FATAL: input contained no data
java.io.EOFException: input contained no data
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003)
at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
at
hudson.plugins.violations.parse.AbstractParser.expectNextTag(AbstractParser.java:262)
at
hudson.plugins.violations.types.findbugs.FindBugsParser.execute(FindBugsParser.java:41)
at
hudson.plugins.violations.parse.AbstractTypeParser.parse(AbstractTypeParser.java:59)
at
hudson.plugins.violations.ViolationsCollector.doType(ViolationsCollector.java:189)
at
hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:116)
at
hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27)
at hudson.FilePath.act(FilePath.java:389)
at
hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:77)
at
hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:33)
at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:319)
at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:307)
at hudson.model.Build$RunnerImpl.post2(Build.java:126)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:292)
at hudson.model.Run.run(Run.java:837)
at hudson.model.Build.run(Build.java:88)
at hudson.model.ResourceController.execute(ResourceController.java:70)
at hudson.model.Executor.run(Executor.java:88)
I would expect the violations plugin to handle possible empty findbugs.xml files
(i know its odd) and not cause the build to fail due to thrown exception.