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

http://issues.apache.org/bugzilla/show_bug.cgi?id=27609

ToStream fails to construct TreeWalker

           Summary: ToStream fails to construct TreeWalker
           Product: XalanJ2
           Version: CurrentCVS
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xml.serializer
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I'm running Xalan-Java 2.6.0 on a Sun Solaris box. This is a runtime error. I've
found this bug in both the binary releases and after building the source using
ant 1.6.1. My java version is SDK-1.4.0. 

Run time error snippet:
---
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.xml.utils.TreeWalker.<init>(Lorg/xml/sax/ContentHandler;Lorg/apache/xml/utils/DOMHelper;)V
        at org.apache.xml.serializer.ToStream.serialize(ToStream.java:211)
---

It seems that org.apache.xml.serializer.ToStream attempts to initialize the
constructor on a org.apache.xml.utils.TreeWalker. The constructor actually does
exist, at line 105 of TreeWalker.java. I've confirmed that ToStream is actually
sending the appropriate parameters.

Compiliation worked fine, no issues using ant. I jarred up xalan using the
all-encompassing "jar" target, and when I exectued this code:

Code snippet 
---
DOMSerializer ds = serializer.asDOMSerializer();
ds.serialize(this);
---

.. the exception is thrown.

I've also tested this on a linux box, Red Hat 9, i386 using Java 1.4.0. Same result.

Reply via email to