Chetan Mehrotra created OAK-3043:
------------------------------------
Summary: Provide item path with InvalidItemStateException
Key: OAK-3043
URL: https://issues.apache.org/jira/browse/OAK-3043
Project: Jackrabbit Oak
Issue Type: Improvement
Components: core
Reporter: Chetan Mehrotra
Assignee: Chetan Mehrotra
Priority: Minor
Fix For: 1.3.2
At times following exception is seen in the logs. To make the exception helpful
to end user we should include the item path in the exception message
{noformat}
Caused by: javax.jcr.InvalidItemStateException: This item does not exist anymore
at
org.apache.jackrabbit.oak.jcr.delegate.ItemDelegate.checkAlive(ItemDelegate.java:85)
at
org.apache.jackrabbit.oak.jcr.session.operation.ItemOperation.checkPreconditions(ItemOperation.java:34)
at
org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:290)
at
org.apache.jackrabbit.oak.jcr.session.ItemImpl.perform(ItemImpl.java:113)
at
org.apache.jackrabbit.oak.jcr.session.ItemImpl.getPath(ItemImpl.java:153)
at
org.apache.jackrabbit.oak.jcr.session.NodeImpl.getPath(NodeImpl.java:99)
at
org.apache.sling.jcr.resource.internal.helper.jcr.JcrItemResource.getPath(JcrItemResource.java:80)
... 16 common frames omitted
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)