xerces and java 6.0

Benjamin Mesing bensmail at gmx.net
Wed Sep 5 07:04:08 UTC 2007


it seems that xerces is not compatible with Java 6. 

When using Java 6 I get 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)
                at com.umlet.control.Umlet.createStringToBeSaved(Umlet.java:197)

While using Java 5 works just fine. Searching for the error  on the web
indicates that xerces is not compatible with Java 6 [1,2]. Can anyone
confirm this?

I have tried:
      * compile on Java 6 and run on Java 6 -> fails
      * compile on Java 5 and run on Java 6 -> fails
      * compile on Java 5 and run on Java 5 -> good

Is there a solution for this problem? (I haven't tried adding xalan.jar
and serializer.jar to the classpath yet.)

Regards Ben

[1] http://forum.java.sun.com/thread.jspa?threadID=5172278&messageID=9663116
[2] http://www.eclipsezone.com/eclipse/forums/m92155846.html

More information about the pkg-java-maintainers mailing list