Thursday, September 30, 2010

javax.jcr.PathNotFoundException

JCR Data Model


http://www.ibm.com/developerworks/java/library/j-jcr/nodesproperties.gif

Repository -> Workspace -> Item (Node/Property)

Why PathNotFoundException?
From javadoc: Exception thrown when no Item exists at the specified path or when the specified path implies intermediary Nodes that do not exist.

From JCR troubleshooting topic: troubleshooting common exceptions: Within a workspace, each node is identified by its path and its uuid. In order to retrieve a node you must specify either its path or its uuid. The retrieval methods within the repository throw the exceptions "PathNotFoundException" and "ItemNotFoundException" to indicate that the node or property that you attempted to retrieve (either by path or uuid) does not exist in the current workspace.

How?
Handle it property - it is actually a warning.


1 comment:

  1. Superb information article. Thank you . The travelers need to fill up the Kenya visa application form to get the Kenya visa. Therefor, if the apply online, will get the fastest visa services with 24 hours customer support and can also pay online Kenya visa on arrival cost.

    ReplyDelete