I've recently switched to the latest version of Xerces
but a couple of things so far are not working that
were working before. I keep getting "No such method"
exceptions on certain things like serializing a
document and calling cloneNode. Here are a couple of
examples, please tell me why they are throwing the
stacktrace:

This code:

   public static final void domSerialize(Document doc,
String outFileName)
   throws SAXException {

        OutputFormat format=new OutputFormat("xml",
"UTF-8", true);
        format.setOmitComments(true);

        try {
           PrintWriter pw=new PrintWriter(new
FileWriter(outFileName));
           XMLSerializer slz=new
XMLSerializer(pw,format);

           slz.serialize(doc);
        }
        catch (IOException iow) {
           throw new SAXException(iow);
        }

        Rexel.getInstance().debug("debug - created
serialize XML file: " + outFileName);
   }

Is throwing this exception:

java.lang.NoSuchMethodError

        at
org.apache.xml.serialize.XMLSerializer.serializeElement(XMLSerializer.java:674)

        at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:1062)

        at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:1130)

        at
org.apache.xml.serialize.BaseMarkupSerializer.serialize(BaseMarkupSerializer.java:468)

        at rexel.xml.XMLUtils.domSerialize(XMLUtils.java:110)

        at rexel.xml.XMLUtils.main(XMLUtils.java:138)

This code:

      doc.cloneNode(true);

Is throwing this exception:

java.lang.NoSuchMethodError

        at
org.apache.xerces.dom.CoreDocumentImpl.importNode(CoreDocumentImpl.java:1080)

        at
org.apache.xerces.dom.CoreDocumentImpl.cloneNode(CoreDocumentImpl.java:349)

        at
org.apache.xerces.dom.DocumentImpl.cloneNode(DocumentImpl.java:205)

        at rexel.xml.templates.Ariba.readDoc(Ariba.java:56)

        at rexel.xml.templates.Ariba.main(Ariba.java:65)


Thanks!


__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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

Reply via email to