what is the xml parser and version? xerces? 2.?
Ralf Steppacher
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
m.de> cc:
Subject: Transformer: process
failed:java.lang.ArrayIndexOutOfBoundsException: 0
04/11/2002 03:31
PM
Please respond to
Ralf Steppacher
Hello everybody.
I've got a problem transforming "large" XML documents with xalan-j 2.3.1
under certain conditions. Large is about >70KB.
I have a JSP and several beans associated to it that gathers data from a
database and displays it according to the user's selections as a html page.
While transforming larger documents (as a DOMSource) I get an
"ArrayIndexOutOfBoundsException: 0" exception after a little while and
transformation stops, there is no stack trace available.
This error occurs only if the document is the first one to be
transformed by the jsp! All succeeding documents (>300KB!) are processed
correctly. The problem is not specific to a certain document but arises
with what ever document I choose to be the first one (if it is large
enough).
In the code I create a StylesheetRoot object for every selected
subsection of the page and retrieve a Transformer object from it. The
Transformer object then transformes a DOMSource.
Everything works fine when I transform the XML data on the commandline
or within a tool like XML Spy (using xalan-j 2.3.1).
I tried different releases of xalan-j 2.x.
The ArrayIndexOutOfBoundsException is thrown in
TransformerImpl::executeChildTemplates(ElemTemplateElement,boolean)
called from line 2069 in TransformerImpl.
I greatly appreciate any hint on what I am doing wrong!
Many thanks in advance!
Ralf Steppacher
Snippet from the JSP: