Description
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
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