Troubleshoot: Error sun.io.MalformedInputException logged

When enabling a feature on your WebSphere Commerce instance, an exception error is displayed.

 

Problem

On a UTF8 encoded system, during WebSphere Commerce feature enablement, you receive errors similar to:

file:/opt/IBM/WebSphere/CommerceServer60/components/component-services/xml/
updateXML.xml:17:sun.io.MalformedInputException
   at
com.ibm.commerce.wc.update.utils.XMLUpdateTask.execute(XMLUpdateTask.java:172)
   at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
   at org.apache.tools.ant.Task.perform(Task.java:341)

 

Solution

To determine if your system is set for UTF8 encoding, examine the locale-specific environment variables:

These variables can be viewed using the set or echo command.

If the variables end with a suffix of .UTF8, then UTF8 encoding is in place.

To correct the errors received during feature enablement/disablement, remove the .UTF8 suffix from the variables.

For example if the LANG variable is set to ja_JP.UTF8, change it to ja_JP and save the change.

Run the feature enablement script again.


Related Concepts

WebSphere Commerce feature packs

Related tasks

Enabling features

Disable features


Related Reference

Troubleshoot: WebSphere Commerce feature pack issues

Troubleshoot: WebSphere Commerce feature enablement issues