Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

[jdom-interest] XPath Problem

Stephen Gorton

2005-09-21

Replies:

Hi people,

 

I’m having a real problem with my application and trying to get it to run outside netbeans.

 

Basically, its an RMI server that attempts to use the XPath functions of JDOM. The code is:

 

targetNodes = XPath.selectNodes(doc.getRootElement(), p.getTargetNode());

 

and the stack trace error I get is

            org.jdom.xpath.JaxenXPath.setXPath(JaxenXPath.java:285)

            org.jdom.xpath.JaxenXPath.<init>(JaxenXPath.java:99)

            sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

            sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

            java.lang.reflect.Constructor.newInstance(Unknown Source)

            org.jdom.xpath.XPath.newInstance(XPath.java:129)

            org.jdom.xpath.XPath.selectNodes(XPath.java:337)

            server.PolicyProcessor.addElements(PolicyProcessor.java:54)

            server.ServerLinkLocalImpl.getTargetDocument(ServerLinkLocalImpl.java:137)

            sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

            sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

            java.lang.reflect.Method.invoke(Unknown Source)

            sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)

            sun.rmi.transport.Transport$1.run(Unknown Source)

            java.security.AccessController.doPrivileged(Native Method)

            sun.rmi.transport.Transport.serviceCall(Unknown Source)

            sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)

            sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)

            java.lang.Thread.run(Unknown Source)

 

Can anyone help me on this one? Thanks in advance.


Stephen

           


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date: 20/09/2005


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date: 20/09/2005

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.