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 2002/12/09 17:02:36 UTC

DO NOT REPLY [Bug 15182] New: - TransformerException when XML File is Exactly 16K

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=15182>.
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=15182

TransformerException when XML File is Exactly 16K

           Summary: TransformerException when XML File is Exactly 16K
           Product: XalanJ2
           Version: 2.0.1
          Platform: Other
        OS/Version: AIX
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Xalan
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: henry.michals@economicalinsurance.com


On an AIX platform, if org.apache.xalan.transformer.TransformerImpl.transform 
is applied to an xml file of 16KB size, then the following exception is thrown:
javax.xml.transform.TransformerException: The root element is required in a 
well-formed document.
	at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImpl.java:667)
	at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImpl.java:1147)
The failure occurs on AIX4.3.3.6 and AIX4.3.3.10 but likely happens on any OS 
level.  The failure doesn't manifest under Windows 2000.

The size of the xml stream under Windows 2000 reports as 16386, while, 
presumably, on AIX it reports as 16384.

We have a sample XSL and an XML file that will reproduce the problem.  Please 
send an e-mail to henry.michals@economicalinsurance.com.

The failure occurs using xalan 2.0.1 but also on xalan 1.2.2.  It likely occurs 
with xalan 2.4.6 as well, but we haven't tried it out yet.

The problem is likely a reflection of the system buffer size