I'm not sure where or how to try to do that. From what I can tell, the error occurs when I attempt to use the selectSingleNode method.
> -----Original Message----- > From: bob mcwhirter [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 25, 2002 9:58 PM > To: Marc Elliott > Cc: [EMAIL PROTECTED] > Subject: Re: [dom4j-user] odd error on Unix, not present in Windows > > > > Right off hand, I can't think of why this would be happening. > > James, any chance we can get nested exceptions, so that we can > actually see where in com.werken.saxpath.XPathReader this is truly > occurring? Seeing the stack-trace only from the vantage point of > org.dom4j.xpath.DefaultXPath isn't truly helpful to track this down. > > Marc, do you think you could track down the true source of the > exception? It'll be somewhere in com.werken.saxpath.* package > that's really throwing it, I'd hope. > > -bob > > On Mon, 25 Feb 2002, Marc Elliott wrote: > > > I know, I know... this java and xml, it's not supposed to > happen. But I've > > got some java code running just find on my Windows 2000 development > > envioronment, but I get this error from the > Apache/Tomcat/Solaris machine: > > > > This is the stack trace: > > org.dom4j.InvalidXPathException: Invalid XPath expression: //Row > > com.werken.saxpath.XPathReader at > > org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:279) at > > org.dom4j.xpath.DefaultXPath.(DefaultXPath.java:57) at > > org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:165) at > > org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:205) at > > org.dom4j.tree.AbstractNode.selectNodes(AbstractNode.java:161) at > > com.hnw.util.UserImport.insert(UserImport.java:32) > > This is a java code snippet: > > > > ... > > List topicNodes = document.selectNodes("//Row"); > > ... > > > > This is an xml file snippet: > > > > <Import> > > <Row> > > <email>[EMAIL PROTECTED]</email> > > <format>text</format> > > <firstName>Tim</firstName> > > <lastName>Foster</lastName> > > <title>Strategy & Business Development</title> > > <company>Tri-Media Marketing & Publicity Inc.</company> > > <address>517 Niagara St.</address> > > <town>Welland</town> > > <state>ON</state> > > <zip>L3C 1L7</zip> > > <phone>(905)732-6431</phone> > > <financial>X</financial> > > <investing>X</investing> > > <retail>X</retail> > > </Row> > > > > ... so, I guess I don't get it. > > > > > > .................................................. > > > > Marc Elliott > > Director of Information Architecture / HNW Inc. > > Digital Solutions for High-Net-Worth Marketers > > ph: 617-243-9199 x224 > > fx: 815-327-4167 > > > > > > _______________________________________________ > > dom4j-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/dom4j-user > > > > _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user
