Title: Invalid InvalidXPathException ?

Hi there,

when trying to use a Document.selectSingleNode("") I received the following Exception:

org.dom4j.InvalidXPathException: Invalid XPath expression: //* wrapped exception
        at org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:316)
        at org.dom4j.xpath.DefaultXPath.<init>(DefaultXPath.java:63)
        at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:182)
        at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
        at org.dom4j.tree.AbstractNode.selectNodes(AbstractNode.java:163)

It took me 2 days to figure out that the problem was not actually with an invalid
XPath, but that JBuilder didn't include the complete JAR because I selected only
"Required classes and known resources" instead of "Always include all".

Suggestion: Shouldn't a ClassNotFoundException be thrown instead ???


cheers   Mike

Reply via email to