Home > Cannot Parse > Cannot Parse Coverage Results Jenkins

Cannot Parse Coverage Results Jenkins

FATAL: Unable to parse /var/lib/jenkins/jobs/project/builds/2011-08-22_04-50-31/coverage239.xml hudson.util.IOException2: Cannot parse coverage results at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:89) at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:52) at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:265) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:958) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1401) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:479) at Has anyone else seen this problem or have any ideas? JENKINS-7745. If so, this looks like the same problem as in JENKINS-11251 . weblink

The slave in tis situation is configured with a home dir of /home/hudson not /opt/hudson. Hudson 1.381, Cobertura 1.0 plugin. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1039) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) 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 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

Resolved Activity All Comments History Activity Ascending order - Click to sort in descending order Hide Permalink Jay Hogan added a comment - 2011/Jul/19 11:26 AM We are seeing this issue Show Jay Hogan added a comment - 2011/Jul/19 11:26 AM We are seeing this issue as well. 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 Sagar Khushalani added a comment - 2011/Feb/23 4:09 PM Same behaviour in 1.397.

Publishing Cobertura coverage results... 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 I have the plugin configured to generate xml reports as outlined in the cobertura plugin for hudson doc. Atlassian Jenkins CI › Jenkins users Search everywhere only in this topic Advanced Search Cobertura Plugin fails to parse coverage.xml ‹ Previous Topic Next Topic › Classic List Threaded ♦

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 Any ideas? The file is 9945 lines long and 7880 get transferred. my review here Has anyone else seen this problem or have any ideas?

People Assignee: Stephen Connolly Reporter: nhatherly Votes: 19 Vote for this issue Watchers: 22 Start watching this issue Dates Created: 2010/Oct/29 1:51 AM Updated: 2011/May/20 3:29 PM Resolved: 2011/Feb/27 1:44 AM Thanks a lot, Frederic AttachmentsIssue Links is duplicated by JENKINS-6609 Fitnesse publisher plugin fails to parse XML file. None of these code is exposed via API outside remoting, so at some point we can revert this change to simplify the code a bit and eliminate the redundancy, because as at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1039) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) 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) ...

Hide Permalink Kohsuke Kawaguchi added a comment - 2011/Feb/27 1:44 AM I'm marking this error as a duplicate of JENKINS-7836. https://issues.jenkins-ci.org/browse/JENKINS-10788 at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(Unknown Source) at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(Unknown Source) 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) Any ideas? The maven build had completed successfully.

Some coverage xml files are not transferred completely to the master, so parsing them fails. have a peek at these guys Let me know if you need more information, I'll be glad to give it ! Atlassian To use Google Groups Discussions, please enable JavaScript in your browser settings, and then refresh this page. . Hide Permalink 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

Atlassian 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 AttachmentsIssue Links duplicates JENKINS-7836 Clover and cobertura parsing on hudson master fails because of invalid XML Resolved is duplicated by JENKINS-7836 Clover and cobertura parsing on hudson master fails because of Hide Permalink maxence added a comment - 2010/Nov/28 6:01 AM Same here, occurs with Hudson 1.384 on JDK 1.6.0_u22, with master running Debian 5.0 and slave running Ubuntu 10.04. check over here If I kick the job off again without changing anything it passes.

Try JIRA - bug tracking software for your team. The result is incomplete XML with causes the build to fail: Publishing Cobertura coverage report... I'm using Hudson 1.384 which is running on WinXP, run by Apache Tomcat as a service, using Java6.

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.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at

The XML is not copied completely after the Job finishes. The XML is not copied completely after the Job finishes. 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 ] Show hudsonfsc added a comment - 2010/Nov/25 3:09 AM - edited We also have the same problem on a different version/environment.

Manually downloading from Workspace folder works correctly. FATAL: Unable to parse /d1/hudson/jobs/trunk-continuous/builds/2009-08-18_16-24-48/coverage3259.xml com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence. Show jtharp added a comment - 2011/Aug/03 2:02 PM I have Jenkins 1.409.1 and the problem persists. this content However, I think this related to some reported issues with the copyartifact plugin truncating the files sometimes.

Show Kohsuke Kawaguchi added a comment - 2011/Feb/27 1:44 AM I'm marking this error as a duplicate of JENKINS-7836 . Hudson 1.381, Cobertura 1.0 plugin. I got the coverage.xml from the workspace of a failed build and then from the workspace after I re-ran it and it passed and compared them and they were exactly the The build failed with the following error.

Can I just copy the coverage.xml file myself at the end of the build in hopes that jenkins will see that and not try to copy a file it is going Publishing Cobertura coverage results... Atlassian 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 These are the details of the error: [DEBUG] -------------------- [INFO] Cobertura Report generation was successful. [TASKS] Skipping maven reporter: there is already a result available. [JENKINS] Recording coverage results [INFO] ------------------------------------------------------------------------

It breaks in the middle, which is why it can't parse the entire file. 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 Publishing Cobertura coverage results... 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/Channel.java src/main/java/hudson/remoting/Pipe.java src/main/java/hudson/remoting/PipeWriter.java src/main/java/hudson/remoting/ProxyOutputStream.java src/main/java/hudson/remoting/Request.java src/main/java/hudson/remoting/Response.java http://jenkins-ci.org/commit/remoting/e0e154d12d7a10759287b187467389c6e643c12b Log: [FIXED JENKINS-11251] reimplemented I/O

Manually downloading from Workspace folder works correctly. If you are using earlier versions of the core, please upgrade.