DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3438>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3438

javax.xml.transform.TransformerException

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Blocker                     |Major



------- Additional Comments From [EMAIL PROTECTED]  2001-10-04 11:31 -------
(Copying workaround to description:)
I could overcome this problem by doing the following:
Instead of using the servlet output stream as a second
argument to the transform() method, do the following:

StringWriter s = new StringWriter();
transform(<xmlfile>, s);
PrintWriter out = <HttpServletResponseObject>.getWriter();
out.write(s);

This will allow you to transform large xml files without 
ArrayIndexOutOfBoundsException problem.

PS: I am still in the process of testing whether this
solution works consistently.
-----------
Wow! Sounds like a wierd interaction with your servlet environment.  Please do 
let us know what you find out, especially including your servlet code that 
calls the transformer and your specific environment (OS, java version, servlet 
container)

Reply via email to