You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/10/04 20:31:23 UTC

DO NOT REPLY [Bug 3438] - javax.xml.transform.TransformerException

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

curcuru@apache.org changed:

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



------- Additional Comments From curcuru@apache.org  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)