Running the jdtCompileLogPublisher task causes an exception
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。”
----------------------------------------
[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
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