JUnit Publishing error with invalid xml.
![]()
Qunfeng Wang (42●1●7●10)
| asked Apr 24 '14, 2:49 a.m.
retagged Apr 30 '14, 7:28 p.m. by Martha (Ruby) Andrews (3.0k●4●43●51)
The JUnit Publishing used to work. But now it SOMETIMES fails due to the invalid JUnit report xml. I checked the xml file and find there is some extra >.
1. We now have 3 JBE run on a same server, but with different build engine ID. 2. I recently make my JBE run as a Windows service. Others still run from CLI. As I said, it doesn't always occur. Below is the log. BUILD SUCCESSFULTotal time: 20 minutes 24 seconds2014-04-23 18:54:44 [Jazz build engine] Invoking post-build participant "com.ibm.team.build.junit.publishing"com.ibm.team.build.common.TeamBuildException: Exception parsing "C:\CA_BUILD\backend\build\dist\reports\tests\TEST-com.spss.ca.ac.caoutput.handlers.tree.ModeRelatedStatisticsHandlerTest.xml". at com.ibm.team.build.internal.publishing.JUnitLogPublisher.publishFile(JUnitLogPublisher.java:210) at com.ibm.team.build.internal.publishing.JUnitLogPublisher.publish(JUnitLogPublisher.java:161) at com.ibm.team.build.internal.engine.JUnitPublishingPostBuildParticipant.postBuild(JUnitPublishingPostBuildParticipant.java:50) at com.ibm.team.build.internal.engine.BuildLoop.invokePostBuildParticipants(BuildLoop.java:906) at com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:663) at java.lang.Thread.run(Thread.java:811)Caused by: org.xml.sax.SAXParseException: Content is not allowed in trailing section. 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$TrailingMiscDispatcher.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 com.ibm.team.build.internal.parser.AbstractParserHandlerBase.parse(AbstractParserHandlerBase.java:141) at com.ibm.team.build.internal.publishing.JUnitLogPublisher.publishFile(JUnitLogPublisher.java:208) ... 5 more |
Be the first one to answer this question!
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.