xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schildknecht, Karin" <karin.schildkne...@deneb.se>
Subject RE: XPath query throws NoSuchMethodError Exception
Date Fri, 23 Mar 2001 13:23:46 GMT
It could be a version compatibility problem between xerces and xalan. I had
the same problem using Xalan 2.0 together with Xerces 1.3 because one method
had changed in the xerces API. Changing to the xerces.jar that was
distributed together with xalan 2.0 helped the problem.

Good luck!

Karin


> -----Original Message-----
> From: Rasmus Munk Jensen [mailto:munk@writeme.com]
> Sent: den 23 mars 2001 13:42
> To: general@xml.apache.org
> Subject: XPath query throws NoSuchMethodError Exception
> 
> 
> 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(Predicated
> NodeTest.java:
> 388)
> at
> org.apache.xpath.axes.ChildTestIterator.nextNode(ChildTestIter
> ator.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(ServletWra
> pper.java:503)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:597)
> at
> org.apache.tomcat.servlets.InvokerServlet.service(InvokerServl
> et.java:257)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:503)
> at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpC
> onnectionHandler.java:160)
> at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> point.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
> 

---------------------------------------------------------------------
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