You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Val Austreich (Jira)" <ji...@apache.org> on 2021/08/26 23:19:00 UTC
[jira] [Commented] (SUREFIRE-1899) Invalid character in SureFire
xml test report
[ https://issues.apache.org/jira/browse/SUREFIRE-1899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17405508#comment-17405508 ]
Val Austreich commented on SUREFIRE-1899:
-----------------------------------------
I am facing same issue and if fails the whole run
this is where it fail
This page contains the following errors:
error on line 832 at column 16: Input is not proper UTF-8, indicate encoding ! Bytes: 0x03 0x04 0x14 0x00
< this is line 832>:
*<![CDATA[<text style="color:#555;font-size:12px;"><b> -->*
</b>PKvS;orderAck1.xml-Aug-2021-26-T-02-48-49-488--0700-12538380.xmluÝ@Fï}Ù{s×]%dÝÈ~@¨Øt(Qgŵ°·onº3çaäjêZÿ f-(ñKSÕxËÈå¼d¥<?Úf«G½Ê»ÆÀö-XßåÑfä1`WýJu_ÛòC®-lLç,ÀÑ·ã8T0¬ËæuÈuJêÍób«(¥IÌ
áÏÆ¡F(Fè>&sIÂi0ÅKsæÌéÍè÷¼ÿ~¥ÞPK7·ÐºPKvS7·Ðº;orderAck1.xml-Aug-2021-26-T-02-48-49-488--0700-12538380.xmlPKi#</br></text>]]> </line>
> Invalid character in SureFire xml test report
> ----------------------------------------------
>
> Key: SUREFIRE-1899
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1899
> Project: Maven Surefire
> Issue Type: Bug
> Reporter: Andrew Qiu
> Priority: Critical
>
> Hi, I have a test failure from Jenkins Junit plugin. It failed because an invalid character inside the CDATA section from xml test report. Can you strip out the invalid characters in xml files
> {code}
> Failed to read test report file /data1/jenkins_agent/workspace/${JENKINS_JOB_NAME}/shared/indexer-common/target/surefire-reports/TEST-message_archiver.indexer_common.searcher.query.flexible.GRQueryParserTest.xml
> org.dom4j.DocumentException: Error on line 1437 of document : An invalid XML character (Unicode: 0xfffe) was found in the CDATA section.
> at org.dom4j.io.SAXReader.read(SAXReader.java:462)
> at org.dom4j.io.SAXReader.read(SAXReader.java:325)
> at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:178)
> at hudson.tasks.junit.TestResult.parse(TestResult.java:378)
> at hudson.tasks.junit.TestResult.parsePossiblyEmpty(TestResult.java:308)
> at hudson.tasks.junit.TestResult.parse(TestResult.java:224)
> at hudson.tasks.junit.TestResult.parse(TestResult.java:196)
> at hudson.tasks.junit.TestResult.<init>(TestResult.java:151)
> at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:144)
> at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3073)
> at hudson.remoting.UserRequest.perform(UserRequest.java:212)
> at hudson.remoting.UserRequest.perform(UserRequest.java:54)
> at hudson.remoting.Request$2.run(Request.java:369)
> at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:834)
> Caused by: org.xml.sax.SAXParseException; lineNumber: 1437; columnNumber: 52; An invalid XML character (Unicode: 0xfffe) was found in the CDATA section.
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)