6 Replies Latest reply on Aug 18, 2009 5:09 PM by PhHein

    JAVA 6 compatibility with Castor and Xerces

      Hi Guys,
      while moving to JAVA 6, I encoutered some problems that might be related to compatibility issues between JAVA 6, Castor and Xerces.

      The jars am already using and suspecting their compatibility issues with JAVA 6 are:
      xercesImpl.jar, castor-, and castor-
      While trying to marshall my application objects using castor (The thing that was working just fine with JAVA 5) I got the following exception:
      Exception in thread "AWT-EventQueue-0" java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z
                  at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:373)
                  at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:127)
                  at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:94)
                  at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:663)
                  at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:709)
                  at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
      So I thought to post this issue here and see if I can get some help from anyone of you out there.

      Thanks a bunch,