Technote

(FAQ)
WebSphere Commerce Sales Center reports error when building a feature, when using a non-English locale.
While creating an "update site" project by following the steps in "Create an update site project" section in WebSphere Commerce tutorial at:

http://publib.boulder.ibm.com/infocenter/wchelp/v6r0m0/index.jsp?topic=/com.ibm.commerce.telesales.developer.doc/tutorial/ttradvanced_7.htm

the WebSphere Commerce Developer reports the following error when clicking on the "Build All" button:

sun.io.MalformedInputException
Cause The Eclipse.idReplacer is executed during the "Build All" step and the tool does not handle the locale properly when processing the feature.xml file.

For example, the following screen-shot is an example of an error reported by Commerce toolkit when building a project that contains Chinese characters.


Line 73 of build.xml is shown as below; the toolkit is calling eclipse.idReplacer.
<eclipse.idReplacer featureFilePath="${feature.base}/features/UpgradeUIFeature_1.0.0/feature
.xml" selfVersion="1.0.0" featureIds="" pluginIds="UpgradeUI,1.0.0,"/>


Answer

This is an issue with Eclipse:
To workaround the issue:

Step 1. Modify the feature.xml by changing non-English characters into English characters. For example,

The feature.xml with Chinese locale characters is shown below:

<description url="[在此处输入功能部件 URL。]">
[在此处输入功能部件æ??述。]
</description>

<copyright url="[在此处输入版� URL。]">
[在此处输入版æ?ƒæ??述。]
</copyright>

<license url="[åœ¨æ­¤å¤„è¾“å…¥è ¸å?¯è¯? URL。]">
[åœ¨æ­¤å¤„è¾“å…¥è ¸å?¯è¯?æ??述。]
</license>

Modify the Simplified Chinese in the example above to English as shown below:
<description url="[Enter Feature URL here.]">
[Enter Feature Description here.]
</description>

<copyright url="[Enter Copyright URL here.]">
[Enter Copyright Description here.]
</copyright>

<license url="[Enter License URL here.]">
[Enter License Description here.]
</license>

Step 2. Save the file and click "Build all" to rebuild the project.
For a permanent solution or fix, please contact WebSphere Commerce Support.
 

Document Information

Current web document: http://www.ibm.com/support/docview.wss?uid=swg21273525