Error, "Array index out of bound" , when spliting XML files using "Java Code".

Error, "Array index out of bound" , when spliting XML files using "Java Code".

book

Article ID: KB0089521

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
"Array index out of bound" error shows up when spliting XML files using "Java Code".

BW uses "wstx-asl-3.0rc1.jar". Defect with Woodstox API "wstx-asl-3.0rc1.jar":

http://jira.codehaus.org/browse/WSTX-65?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel.

Issue/Introduction

Error, "Array index out of bound" , when spliting XML files using "Java Code".

Resolution


1). Remove jar "wstx-asl-3.0rc1.jar" from tpcl_home/lib .  

2) .Use "wstx-asl-3.2.9.jar" from: http://woodstox.codehaus.org/3.2.9/wstx-asl-3.2.9.jar or a newer version. Prepend the full path/name of the JAR file of the  tibco.env.STD_CP_EXT property in designer.tra .

3). Set "outputFactory.setProperty("javax.xml.stream.isRepairingNamespaces", Boolean.FALSE);".

Note :Copy the new "wstx" JAR to folder "tpcl_home/lib" ,where the application would be deployed.

Additional Information

SR 425723, SR 231099, KB 37206,SR 304877