You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/08/14 07:46:22 UTC
DO NOT REPLY [Bug 11667] -
noSuchMethodError when using XMLSerializer.serialize()
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 george@sync.ro 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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org