xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rasmus Munk Jensen" <m...@writeme.com>
Subject XPath query throws NoSuchMethodError Exception
Date Fri, 23 Mar 2001 12:42:11 GMT
Hi

I have a big problem, running any XPath expression. If I run a expression
like this:

NodeList nodes = XPathAPI.selectNodeList(root, "data");

I get the following:

java.lang.NoSuchMethodError
at org.apache.xpath.DOM2Helper.getNamespaceOfNode(DOM2Helper.java:348)
at org.apache.xpath.patterns.NodeTest.execute(NodeTest.java:488)
at
org.apache.xpath.axes.PredicatedNodeTest.acceptNode(PredicatedNodeTest.java:
388)
at
org.apache.xpath.axes.ChildTestIterator.nextNode(ChildTestIterator.java:193)
at org.apache.xpath.NodeSet.addNodes(NodeSet.java:550)
at org.apache.xpath.NodeSet.<init>(NodeSet.java:154)
at org.apache.xpath.objects.XNodeSet.mutableNodeset(XNodeSet.java:291)
at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:201)
at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:178)
at testservlet.XMLMessageBrooker.runMessage(XMLMessageBrooker.java:65)
at testservlet.XMLMessageServer.doPost(XMLMessageServer.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
at
org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
at java.lang.Thread.run(Thread.java:484)

I am using the lastest Xalan 2.0.1 release, and Java 1.3 (JBuilder 4.0)

I get the same error when using the selectSingleNode method.

Any Ideas...

Thanks

-Rasmus


---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message