It's all about the answers!

Ask a question

Running the jdtCompileLogPublisher task causes an exception


Spencer Murata (2.3k115970) | asked Sep 27 '18, 9:09 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

 When running the example PDEBuildAndJazzExample (https://jazz.net/wiki/bin/view/Main/PDEBuildAndJazzExample) on a Chinese Windows machine an error occurs during the jdtCompileLogPublisher task:


----------------------------------------
[jdtCompileLogPublisher] com.ibm.team.build.common.TeamBuildException: XML 解析错误:在“2”行找到“1 字节 UTF-8 序列的无效字节 1。”
----------------------------------------

No such problem occurs with other languages.

What is causing the error and how can we avoid it?

~Spencer

Accepted answer


permanent link
Spencer Murata (2.3k115970) | answered Sep 27 '18, 9:12 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

 The problem is the Windows date format for the Chinese OS is by default Chinese.  This causes the compile logs to add a comment to the xml that is formatted with the Chinese characters which are not UTF-8.  This causes the XML parser to fail to read the compile logs.


To fix the problem set the date formate under Region and Langauge to English and the compile log should format with English comments which are parseable by the jdtCompileLogPublisher task.

~Spencer

Ralph Schoon selected this answer as the correct answer

Your answer


Register or to post your answer.