Seeing errors in EM log, [ERROR] [TimPollThreadPool.Thread13] [Manager.com.timestock.tess.services.tim.TimIo] Error parsing Payments-defect-14152121990000012667.xml: Invalid byte 1 of 1-byte UTF-8 sequence.

Document ID : KB000028808
Last Modified Date : 14/02/2018
Show Technical Document Details

 Issue:

 Unable to see the defects in analysis graph whereas they are available in investigator. Can find unprocessed defect files in bad files folder(EM\cem\tess\badfiles) and errors in EM  logs like,

 11/06/14 12:00:02.202 AM IST [ERROR] [TimPollThreadPool.Thread13] [Manager.com.timestock.tess.services.tim.TimIo] Error parsing defect-14152121990000012667.xml: Invalid  byte 1 of 1-byte UTF-8 sequence.

 Environment:

 9.1 APM

 Cause:

 RTTM(BtStatsProcessor) Service reads and processes files from usr/local/wily/cem/tim/data/out/btstats and sends to Introscope.

 

 XML files created in /usr/local/wily/cem/tim/data/out/btstats use a valid format. So these xml files are processed properly.

 

 But when Defect Processor reads and processes files from /usr/local/wily/cem/tim/data/out/defects, it finds some special characters and huge data in <Metadata name="body"  part of this defect XML files so the Defect Processor is reporting the exception “Invalid byte 1 of 1-byte UTF-8 sequence” .

 These files are not being processed (so these unprocessed defect xml’s are moved to EM\cem\tess\badfiles) and hence defects are not available on CEM side.

 

 Resolution:

 In 9.1 TIM this happens but in 9.5.x TIM these special characters are removed while creating defect XML files hence TCS (Tim Collector Services) will not report any exception.

 The solution is to upgrade to 9.5.