cobertura plugin issue

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

cobertura plugin issue

huser-2
Hi,

I am getting errors when trying to run Cobertura plugin within Hudson.

Hudson Ver 1.290
Cobertura Plugin 0.8.5

Any ideas ?

FATAL: Unable to parse /usr/local/jboss/hudson/jobs/T3_report_test/builds/2009-04-24_10-07-37/coverage927.xml
org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence.
        at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
        at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
        at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
        at org.apache.xerces.impl.XMLEntityScanner.skipString(Unknown Source)
        at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
        at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:77)
        at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:48)
        at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:256)
        at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:56)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:372)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:360)
        at hudson.model.Build$RunnerImpl.post2(Build.java:183)
        at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345)
        at hudson.model.Run.run(Run.java:916)
        at hudson.model.Build.run(Build.java:112)
        at hudson.model.ResourceController.execute(ResourceController.java:93)
        at hudson.model.Executor.run(Executor.java:119)
FATAL: Unable to parse /usr/local/jboss/hudson/jobs/T3_report_test/builds/2009-04-24_10-07-37/coverage3610.xml
hudson.util.IOException2: Cannot parse coverage results
        at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:85)
        at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:48)
        at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:256)
        at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:56)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:372)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:360)
        at hudson.model.Build$RunnerImpl.post2(Build.java:183)
        at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345)
        at hudson.model.Run.run(Run.java:916)
        at hudson.model.Build.run(Build.java:112)
        at hudson.model.ResourceController.execute(ResourceController.java:93)
        at hudson.model.Executor.run(Executor.java:119)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
        at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:77)
        ... 11 more
FATAL: Unable to parse /usr/local/jboss/hudson/jobs/T3_report_test/builds/2009-04-24_10-07-37/coverage3662.xml
hudson.util.IOException2: Cannot parse coverage results
        at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:85)
        at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:48)
        at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:256)
        at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:56)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:372)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:360)
        at hudson.model.Build$RunnerImpl.post2(Build.java:183)
        at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345)
        at hudson.model.Run.run(Run.java:916)
        at hudson.model.Build.run(Build.java:112)
        at hudson.model.ResourceController.execute(ResourceController.java:93)
        at hudson.model.Executor.run(Executor.java:119)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
        at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:77)
        ... 11 more
FATAL: Unable to parse /usr/local/jboss/hudson/jobs/T3_report_test/builds/2009-04-24_10-07-37/coverage2109.xml
FATAL: null
java.lang.NullPointerException
        at hudson.plugins.cobertura.CoberturaXmlHandler.startElement(CoberturaCoverageParser.java:165)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
        at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:77)
        at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:48)
        at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:256)
        at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:56)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:372)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:360)
        at hudson.model.Build$RunnerImpl.post2(Build.java:183)
        at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345)
        at hudson.model.Run.run(Run.java:916)
        at hudson.model.Build.run(Build.java:112)
        at hudson.model.ResourceController.execute(ResourceController.java:93)
        at hudson.model.Executor.run(Executor.java:119)

Reply | Threaded
Open this post in threaded view
|

Re: cobertura plugin issue

Fabrizio Giudici
huser wrote:

> Hi,
>
> I am getting errors when trying to run Cobertura plugin within Hudson.
>
> Hudson Ver 1.290
> Cobertura Plugin 0.8.5
>
> Any ideas ?
>
> FATAL: Unable to parse
> /usr/local/jboss/hudson/jobs/T3_report_test/builds/2009-04-24_10-07-37/coverage927.xml
> org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 2 of
> 2-byte UTF-8 sequence.
>  

99% the plugin is reading a file that is not .xml. You should double
check the regular expression used to define where the .xml report files are.

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
[hidden email] - mobile: +39 348.150.6941


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]