Home > Cannot Parse > Cannot Parse Coverage Results Jenkins

Cannot Parse Coverage Results Jenkins

Show Jay Hogan added a comment - 2011/Jul/19 11:26 AM We are seeing this issue as well. This is master/slave remoting related Jenkins v1.400 cobertura plugin v1.2 Hide Permalink Johannes Ohlemacher added a comment - 2011/May/12 7:08 AM v1.403 seams to have solved the problem for me, see Compare: https://github.com/jenkinsci/remoting/compare/cb1854b81ac8...00609519a68b Hide Permalink SCM/JIRA link daemon added a comment - 2012/Jul/08 12:28 PM Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/FilePath.java pom.xml http://jenkins-ci.org/commit/jenkins/6b495ceecc68d668690433eef663362d8ddede50 Log: [FIXED JENKINS-11251] The actual If I kick the job off again without changing anything it passes. http://ecoflashapps.com/cannot-parse/cannot-parse-coverage-results.html

The XML is not copied completely after the Job finishes. Show SCM/JIRA link daemon added a comment - 2012/Jun/16 2:36 AM Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/FilePath.java pom.xml http://jenkins-ci.org/commit/jenkins/f49d6258451155c716976d7af5433c0fde7fe890 Log: [FIXED JENKINS-11251] The actual meat of the Show Kohsuke Kawaguchi added a comment - 2012/Oct/11 9:33 PM This problem was originally caused by the the remoting layer, not in the cobertra plugin -- master started parsing the file Let me know if you need more information, I'll be glad to give it ! https://issues.jenkins-ci.org/browse/JENKINS-11251

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.endEntity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipSpaces(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown Source) at Show Kohsuke Kawaguchi added a comment - 2011/Feb/27 1:44 AM I'm marking this error as a duplicate of JENKINS-7836 . AttachmentsIssue Links is related to JENKINS-7745 CopyArtifact plugin triggers intermittent remoting failures Resolved Activity All Comments History Activity Ascending order - Click to sort in descending order Hide Permalink robertredd added Hide Permalink Kohsuke Kawaguchi added a comment - 2012/Oct/11 9:33 PM This problem was originally caused by the the remoting layer, not in the cobertra plugin -- master started parsing the

Publishing Cobertura coverage report... Some coverage xml files are not transferred completely to the master, so parsing them fails. Manually downloading from Workspace folder works correctly. 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.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

Did you generate the XML > report(s) for Cobertura? > Build step 'Publish Cobertura Coverage Report' changed build result to > FAILURE > Recording test results > What happened here is Atlassian To use Google Groups Discussions, please enable JavaScript in your browser settings, and then refresh this page. . However, I think this related to some reported issues with the copyartifact plugin truncating the files sometimes. Show SCM/JIRA link daemon added a comment - 2012/Jun/16 2:36 AM Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/hudson/remoting/ProxyOutputStream.java src/main/java/hudson/remoting/Request.java http://jenkins-ci.org/commit/remoting/8ffed0da4996934bfc28bf6b08c258d367a1c526 Log: [JENKINS-11251 JENKINS-9189] Resurrecting what's deleted in e0e154d12d7a10759287b187467389c6e643c12b When

FATAL: Unable to parse [...] /hudson/jobs/MyJob/builds/2010-10-27_09-30-02/coverage1.xml This is blocking - the plugin fails, the builds fail. Show Sagar Khushalani added a comment - 2011/Feb/23 4:09 PM Same behaviour in 1.397. Previous message: Jenkins build is back to normal : cyrus-imapd-master #423 Next message: Build failed in Jenkins: cyrus-imapd-master #420 Messages sorted by: [ date ] [ thread ] [ subject ] If you cat the coverage.xml file in the directory shown in the error message, you'll notice that the entire xml file was not transferred.

This change re-implements the original fix for JENKINS-9189. https://issues.jenkins-ci.org/browse/JENKINS-10788 at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(Unknown Source) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source) at hudson.plugins.fitnesse.NativePageCountsParser.transformRawResults(NativePageCountsParser.java:25) at hudson.plugins.fitnesse.NativePageCountsParser.parse(NativePageCountsParser.java:17) at hudson.plugins.fitnesse.FitnesseResultsRecorder.getResults(FitnesseResultsRecorder.java:84) at hudson.plugins.fitnesse.FitnesseResultsRecorder.perform(FitnesseResultsRecorder.java:61) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1264) Regards Mirko -- http://illegalstateexception.blogspot.com/https://github.com/mfriedenhagen/https://bitbucket.org/mfriedenhagen/ Soula, William Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Cobertura Plugin fails to parse Hide Permalink jieryn added a comment - 2009/Sep/11 1:46 PM This problem goes away when I set Cobertura xml report pattern [**/target/site/cobertura/coverage.xml] Show jieryn added a comment - 2009/Sep/11 1:46 PM

Hudson 1.381, Cobertura 1.0 plugin. have a peek at these guys Some coverage xml files are not transferred completely to the master, so parsing them fails. I should have searched the issue list. Show robertredd added a comment - 2010/Dec/21 8:37 AM - edited I'm seeing the exact same behavior in 1.389 I think it's supposed to look on the master for the coverage.xml

The XML results (attached below) file itself has HTML content which renders the XML fine if opened in browser but seems to fail when being parsed by the plugin : Reading I installed the cobertura plugin and turned on coverage reports on my builds (using maven 2.0.10). Has anyone else seen this problem or have any ideas? http://ecoflashapps.com/cannot-parse/cannot-parse-coverage-results-hudson.html at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(Unknown Source) ... 16 more Caused by: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Premature end of file.

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.endEntity(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipSpaces(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown Source) at My AccountSearchMapsYouTubePlayNewsGmailDriveCalendarGoogle+TranslatePhotosMoreShoppingWalletFinanceDocsBooksBloggerContactsHangoutsEven more from GoogleSign inHidden fieldsSearch for groups or messages Build failed in Jenkins: cyrus-imapd-master #422 Greg Banks gnb at fastmail.fm Wed Feb 29 00:09:43 EST 2012 Previous message: Jenkins Try JIRA - bug tracking software for your team.

JENKINS-7745.

People Assignee: Unassigned Reporter: Rajesh Koilpillai Votes: 1 Vote for this issue Watchers: 2 Start watching this issue Dates Created: 2011/Aug/22 5:28 AM Updated: 2014/Feb/15 12:03 AM Resolved: 2014/Feb/15 12:03 AM The slave in tis situation is configured with a home dir of /home/hudson not /opt/hudson. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:369) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.arrangeCapacity(XMLEntityScanner.java:1619) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipString(XMLEntityScanner.java:1657) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:193) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:77) at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:48) at Manually downloading from Workspace folder works correctly.

Will have to disable the plugin until this is fixed Show Costin Caraivan added a comment - 2010/Oct/27 2:14 AM Getting the same here. Show rshelley added a comment - 2010/Oct/25 12:12 PM I should also note that the failure of this plugin also fails the build. atcom.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)atcom.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)atcom.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)atcom.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.endEntity(XMLDocumentFragmentScannerImpl.java:905)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:605)atcom.sun.org.apache.xerces.internal.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1393)atcom.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1763)atcom.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanLiteral(XMLEntityScanner.java:1064)atcom.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(XMLScanner.java:974)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(XMLDocumentFragmentScannerImpl.java:1547)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1320)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)atcom.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)atcom.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)atcom.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)atjavax.xml.parsers.SAXParser.parse(SAXParser.java:395)atjavax.xml.parsers.SAXParser.parse(SAXParser.java:198)athudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:81) Soula, William Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Cobertura Plugin fails to parse coverage.xml Re: Cobertura this content I have the plugin configured to generate xml reports as outlined in the cobertura plugin for hudson doc.

Compare: https://github.com/jenkinsci/remoting/compare/cb1854b81ac8...00609519a68b Show SCM/JIRA link daemon added a comment - 2012/Jun/16 2:36 AM Code changed in jenkins User: Kohsuke Kawaguchi Path: src/test/java/hudson/remoting/PipeWriterTest.java src/test/java/hudson/remoting/PipeWriterTestChecker.java src/test/java/hudson/remoting/RmiTestBase.java http://jenkins-ci.org/commit/remoting/00609519a68bb2b488d6217d49f53a76d955bed0 Log: Added a test case for People Assignee: Kohsuke Kawaguchi Reporter: alexlombardi Votes: 0 Vote for this issue Watchers: 3 Start watching this issue Dates Created: 2010/May/24 11:25 AM Updated: 2015/Apr/03 8:35 AM Resolved: 2012/Jun/15 9:05 PM I have the plugin configured to generate xml reports as outlined in the cobertura plugin for hudson doc. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ « Return to Jenkins users | 1 view|%1 views Loading...

DashboardsProjectsIssuesCaptureGetting started Help JIRA Core help Keyboard Shortcuts About JIRA JIRA Credits Log In Register for Jenkins World Join the Jenkins community at "Jenkins World" in Santa Clara, California from September If you are using a version newer than that and still sees the problem, please make sure you are using up-to-date slave.jar. Any ideas? at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:369) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.arrangeCapacity(XMLEntityScanner.java:1619) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipString(XMLEntityScanner.java:1657) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:193) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:77) at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:48) at

Show Kohsuke Kawaguchi added a comment - 2012/Jun/15 9:05 PM I assume this is parsing a report from a remote slave.