Project

Profile

Help

Problem using DOM result with Java 1.4.2

Added by Anonymous about 17 years ago

Legacy ID: #4243365 Legacy Poster: akl (apostel_a)

Hello! I'm running the latest Saxon Release (8.9) under J2SE 1.4.2. When I'm using a DOM as transformation result (default DOM implementation of the embedded web container) I'm sometimes getting a NoSuchMethodError on calling "isSameNode" on the DOM node object (see part of the stack trace below). According to the JavaDoc http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Node.html this method isn't available in this java version. Is there any configuration I have to set to get this working or isn't this working on Java 1.4.2? Best regards Achim NoSuchMethodError: org.w3c.dom.Node.isSameNode(Lorg/w3c/dom/Node;)Z at net.sf.saxon.dom.NodeWrapper.isSameNodeInfo(NodeWrapper.java:199) at net.sf.saxon.dom.NodeWrapper.compareOrder(NodeWrapper.java:294) at net.sf.saxon.sort.GlobalOrderComparer.compare(GlobalOrderComparer.java:35) at net.sf.saxon.expr.UnionEnumeration.next(UnionEnumeration.java:58) at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:298) at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:187) at net.sf.saxon.instruct.ApplyTemplates.process(ApplyTemplates.java:147) at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:240) at net.sf.saxon.instruct.Copy.processLeavingTail(Copy.java:152) at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:98) at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:317) at net.sf.saxon.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:486) at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:189) at net.sf.saxon.instruct.ApplyTemplates.process(ApplyTemplates.java:147) at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:240) at net.sf.saxon.instruct.Copy.processLeavingTail(Copy.java:152) at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:98)


Replies (1)

RE: Problem using DOM result with Java 1.4.2 - Added by Anonymous about 17 years ago

Legacy ID: #4243376 Legacy Poster: Michael Kay (mhkay)

Saxon's DOM interface now requires JAXP 1.3. This is available as standard with JDK 1.5, and can be installed as an add-on with JDK 1.4. It's a somewhat fiddly install and my advice would be that it's usually easier to install JDK 1.5, unless you have very good reasons not to. Michael Kay http://www.saxonica.com/

    (1-1/1)

    Please register to reply