IBM Support

Anywhere 7.6.2 - UTF-8 issues after MobileFirst IFIX

Technical Blog Post


Abstract

Anywhere 7.6.2 - UTF-8 issues after MobileFirst IFIX

Body

On Anywhere 7.6.2 IFIX we had some performance improvements that requires also our customers to apply MobileFirst IFIX. Turns out that there were some special chars added on MobileFirst files that throws UTF-8 errors on our build process or during deploy of MaximoAnywhere.war.

 

Example of error:

>>>>>>>>>>>
BUILD FAILED
C:\IBM\Anywhere\MaximoAnywhere\build.xml:108: The following error occurred while executing this line:
C:\IBM\Anywhere\MaximoAnywhere\anywhere-apps-builder.xml:424: The following error occurred while executing this line:
C:\IBM\Anywhere\MaximoAnywhere\anywhere-apps-builder.xml:480: Invalid byte 1 of 1-byte UTF-8 sequence.

<<<<<<<<<<<

 

That happens after updating JARs on MaximoAnywhere directory:

 

worklight-ant-builder.jar
worklight-ant-deployer.jar
worklight-jee-library.jar

 

We decided to fix that on our build process by stripping out the UTF-8 chars. The fix is pretty simple, you just need to look for the 2 sections below on your MaximoAnywhere\anywhere-apps-builder.xml and add the lines in bold:

 

SECTION 1

<replace file="${basedir}/bin/Proxy/WEB-INF/web.xml" token="Java™" value="Java"/>  

<xmltask source="${basedir}/bin/Proxy/WEB-INF/web.xml" 
            dest="${basedir}/bin/Proxy/WEB-INF/web.xml" 
            failWithoutMatch="true" 
            preserveType="true" 
            report="${xmltask.report}">
            
<attr path="/:web-app" attr="version" value="3.0"/>
<attr path="/:web-app" attr="xsi:schemaLocation" value="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"/>
</xmltask>

 

 

 

SECTION 2

 

<replace file="${basedir}/bin/Proxy-2.4/WEB-INF/web.xml" token="Java™" value="Java"/>

<xmltask source="${basedir}/bin/Proxy-2.4/WEB-INF/web.xml" 
            dest="${basedir}/bin/Proxy-2.4/WEB-INF/web.xml" 
            failWithoutMatch="true" 
            preserveType="true" 
            report="${xmltask.report}">
            
            <attr path="/:web-app" attr="version" value="2.5"/>
<attr path="/:web-app" attr="xsi:schemaLocation" value="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"/>
</xmltask>

 

 

 

After that you will be good to build and deploy apps and runtime.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

UID

ibm11129179