maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Val Austreich (Jira)" <j...@apache.org>
Subject [jira] [Commented] (SUREFIRE-1899) Invalid character in SureFire xml test report
Date Thu, 26 Aug 2021 23:19:00 GMT

    [ 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ŵ°·oƒnº˜3ç›aäjêZÿ
ƒ­f„-(ñKSÕxËÈå¼–d¥<™?Úf«G½›Ê»ÆœÀö-XßåÑfä1`WýJu_ÛòC®-lLç,ÀÑ·ã8T0¬Ëæ›uÈuJ†ŸêÍób«(¥ŒI̅á—ÏÆ¡F(Fè>&sžIÂ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)

Mime
View raw message