Using Xalan to parse XML file produces ArrayIndexOutOfBoundsException
 Technote (troubleshooting)
 
Problem(Abstract)
When using Xalan (XSLT 1.0 Implementation) to parse a large XML file, the following exception occurs:

javax.xml.transform.TransformerException
locator: null
messageAndLocation: -2048
exception: ** nested Throwable **
java.lang.ArrayIndexOutOfBoundsException
locationAsString: null
cause: ** nested Throwable **
java.lang.ArrayIndexOutOfBoundsException
javax.xml.transform.TransformerException: -2048
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1193)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:632)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1079)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1057)
 
Cause
This is a known problem. The Apache bug is located here: http://issues.apache.org/bugzilla/show_bug.cgi?id=16496
This is an architectural limitation of the XSLT 1.0 processor. The bug is still open.
 
Resolving the problem
Reduce the size of XML files that need to be parsed at one time. A fix might become available in the future. Check the link above for status.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Web Services (for example: SOAP or UDDI or WSGW or WSIF)
Operating system(s): Windows
Software version: 6.0
Software edition:
Reference #: 1174587
IBM Group: Software Group
Modified date: Jul 19, 2004