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 Rebecca Searls Sun - Developer Engineering <Re...@Sun.COM> on 2001/10/15 17:52:34 UTC
Trouble with "getNamespaceURI"
I'm getting a "java.lang.NoSuchMethodError" on node.getNamespaceURI()
in org.apache.xml.dtm.ref.dom2dtm.DOM2DTM when running xalan-j_2_2_D9
and xalan-j_2_2_D911 on Windows 2000. This error does not occur on
these versions running on Solaris 8.
Should this work? I found nothing about this in the release notes
of Bugzilla. Must I do something different for Win2000?
-----
I'm running samples\ApplyXpath. I have a simple xml file
<application>
<module>
<ejb>ejb.jar</ejb>
</module>
</application>
Here is the stack trace I get.
java.lang.NoSuchMethodError
at org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.addNode(DOM2DOM.java:262)
at org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.<init>(DOM2DOM.java:155)
at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:189)
at
org.apache.xml.dtm.ref.DTMManagerDefault.getDTMHandlerFromNode(DTMManagerDefault
.java:438)
at org.apache.xpath.XPathContext.getDTMHandleFromNode(XPathContext.java 195)
at org.apache.xpath.XPathAPI.eval(XPathAPI.java:274)
at org.apache.xpath.XPathAPI.selectNodeIterator(XPathAPI.java:163)
at org.apache.xpath.XPathAPI.selectNodeIterator(XPathAPI.java:143)
at ApplyXPath.doMain(ApplyXPath.java129)
at ApplyXPath.main(ApplyXPath.java160)
Here is the line of src code that it appears have trouble with
Line 262 in org.apache.xml.dtm.ref.dom2dtm.DOM2DTM is
String nsURI = node.getNamespaceURI();
my classpath contains
xalan.jar
xcerces.jar
xalansamples.jar
bsf.jar