You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Thomas Auinger <th...@byteconsult.de> on 2013/02/18 08:43:12 UTC

Intermittent PathNotFoundException, app restart resolves it for a while

Every few weeks or days we run into a situation where the JCR (2.2.12, DerbyPersistenceManager) starts throwing PathNotFoundExceptions. It happens for various nodes (siblings), but it's always the same property that seems to be missing:
 
Caused by: javax.jcr.PathNotFoundException: timePeriod
at org.apache.jackrabbit.core.NodeImpl$8.perform(NodeImpl.java:2125) ~[jackrabbit-core-2.2.12.jar:2.2.12]
at org.apache.jackrabbit.core.NodeImpl$8.perform(NodeImpl.java:2100) ~[jackrabbit-core-2.2.12.jar:2.2.12]
at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200) ~[jackrabbit-core-2.2.12.jar:2.2.12]
at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91) ~[jackrabbit-core-2.2.12.jar:2.2.12]
at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2100) ~[jackrabbit-core-2.2.12.jar:2.2.12]
 
One of our developers looked into the jackrabbit code and suggests that it might be related to ItemManager#getNode, lines 676 and following, where some parentId check is performed.
 
Note that we cannot reproduce the problem when stopping the server machine, copying the database and running it locally. Also, the server stop and restart fixes the problem for a while.
 
Cheers
Thomas