xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rasmus Munk Jensen" <m...@writeme.com>
Subject RE: XPath query throws NoSuchMethodError Exception
Date Sat, 24 Mar 2001 13:59:40 GMT
Hi again

I have checked and I am quite sure this is not the case. I wasn't able to
locate a crimson.jar file anywhere, and if i remove Xerces & Xalan from the
path, I get a compile error. I use the Xercex and Xalan from the Xalan 2.0
version. I have tried all combinations of Xalan and Xerces, but alway end up
the the samme exception. I was a little bit unaccurate before; I don't get
the exception before i call a method on the returned NodeList. fx:

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

nodes.getLength();

results in:

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 Jbuilder 4.0 - has anyone tried using XPath from this
environment?

-Rasmus







-----Original Message-----
From: Donald_Leslie@lotus.com [mailto:Donald_Leslie@lotus.com]
Sent: 23. marts 2001 13:53
To: general@xml.apache.org
Subject: Re: XPath query throws NoSuchMethodError Exception



It appears that you have an earlier version of the DOM on your classpath in
front of xalan and xerces. If you are running on JDK 1.3, see
http://xml.apache.org/xalan-j/faq.html#faq-6.
-- Don Leslie




"Rasmus Munk Jensen" <munk@writeme.com> on 03/23/2001 07:42:11 AM

Please respond to general@xml.apache.org

To:   <general@xml.apache.org>
cc:    (bcc: Donald Leslie/CAM/Lotus)

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









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