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

noSuchMethodError when using XMLSerializer.serialize()





------- Additional Comments From [EMAIL PROTECTED]  2002-08-14 05:46 -------
I had a similar problem and I sent at that time an email to the xerces-dev 
list. The problem was that I compiled Xerces with JDK 1.4 which adds a new 
StringBuffer method: append(StringBugger buffer), so if you compile Xerces with 
JDK 1.4 all the calls to append passing a StringBuffer as parameter will be 
linked to this method which is not present in JDK 1.3. Running the code with 
1.3 will cause the NoSuchMethodError.

You can compile Xerces with JDK 1.3 and everything will be ok (or get ir from 
the site). If you want to use the JDK 1.4 comopiled version then make sure you 
are using it only with JDK 1.4.

A fix in Xerces could be to cast the StringBuffer arguments to Object so the 
append(Object object) method will be used all the time.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to