An invalid XML chars and system is unable to generate the report

Hi Katalon team, I have an issue with generating the report to Katalon TestOps. When I ran TestSuite Collection with 48TCs only 38TCs were generated in the final report, some test suites were unable to generate report with the error message “Message: An invalid XML character (Unicode: 0x0) was found in the element content of the document.

javax.xml.stream.XMLStreamException: ParseError at [row,col]:[15280,1]
Message: An invalid XML character (Unicode: 0x0) was found in the element content of the document.
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:652)
	at com.kms.katalon.core.logging.TestSuiteXMLLogParser.processFile(TestSuiteXMLLogParser.java:88)
	at com.kms.katalon.core.logging.TestSuiteXMLLogParser.readTestSuiteLogFromXMLFiles(TestSuiteXMLLogParser.java:65)
	at com.kms.katalon.core.reporting.ReportUtil.generate(ReportUtil.java:476)
	at com.kms.katalon.core.reporting.ReportUtil.generate(ReportUtil.java:486)
	at com.kms.katalon.execution.launcher.ReportableLauncher.prepareReport(ReportableLauncher.java:379)
	at com.kms.katalon.execution.launcher.ReportableLauncher.preExecutionComplete(ReportableLauncher.java:159)
	at com.kms.katalon.execution.launcher.ProcessLauncher.onWatchdogComplete(ProcessLauncher.java:192)
	at com.kms.katalon.execution.launcher.LaunchWatchdog.notifyProcessTerminated(LaunchWatchdog.java:136)
	at com.kms.katalon.execution.launcher.LaunchWatchdog.run(LaunchWatchdog.java:66)
	at java.base/java.lang.Thread.run(Thread.java:833)



[2024-03-12T06:42:27.730Z] [DEBUG]: 	System is unable to generate report. Reason: Cannot invoke "com.kms.katalon.core.logging.model.TestSuiteLogRecord.setStatus(boolean)" because "this.suiteLogRecord" is null

Null characters in the log file as image

  • OS: Windows 10 64bit
  • Java version: 17.0.7
  • Katalon Runtime Engine: 9.3.1
    Please help to take a look on this issue, thanks.
1 Like

Deja vue! The “An invalid XML chars” issue repeats in this forum. There were some other posts similar to your case. You can search to find them. For example