Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

JUnit Publishing error with invalid xml.

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


























1

0 votes


Be the first one to answer this question!

Register or log in to post your answer.

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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 562

Question asked: Apr 24 '14, 2:49 a.m.

Question was seen: 5,084 times

Last updated: Apr 30 '14, 7:28 p.m.

Confirmation Cancel Confirm