You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Benson Margulies <bi...@gmail.com> on 2009/01/29 03:50:30 UTC
'Could not resolve the node to a handle' from XPath
I'm using Xalan as embedded in JRE 1.5 on MacOS.
I'm evaluating 'ancestor-or-self::node()'.
Context node is just a text node. Nothing fancy.
I'm a bit lost in the previous discussion of this error, can someone rescue
me?
java.lang.RuntimeException: Could not resolve the node to a handle
at
com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:556)
at
com.sun.org.apache.xpath.internal.XPathContext.getDTMHandleFromNode(XPathContext.java:154)
at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:234)
at
com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:123)
at
com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:97)
at
com.sun.org.apache.xpath.internal.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:178)
at
Re: 'Could not resolve the node to a handle' from XPath
Posted by Michael Ludwig <ml...@as-guides.com>.
Benson Margulies schrieb:
> I'm using Xalan as embedded in JRE 1.5 on MacOS.
That's not the real Apache Xalan, but a Sun fork, obviously not even
taken off of a regular release version, and packaged under "com.sun" as
of JRE 1.5. Searching the archives you'll find numerous references to
this fact, invariably suggesting you use the real one because of the
bugs Sun packaged with its custom version.
> I'm evaluating 'ancestor-or-self::node()'.
>
> Context node is just a text node. Nothing fancy.
> java.lang.RuntimeException: Could not resolve the node to a handle
Could you post a small, self-contained example that reproduces the
error? That is, XML, XSL, and Java, if not just run from the command
line.
Michael Ludwig