[ 
https://issues.apache.org/jira/browse/OAK-7714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16589319#comment-16589319
 ] 

Jörg Hoh commented on OAK-7714:
-------------------------------

I attached a very rudimentary patch, which just adds the user owning the 
session to the exception message; perhaps there are other useful information 
which can be added as well (e.g a unique session ID/name if that's available).

> iAdd owern of a session to the message of PathNotFoundException
> ---------------------------------------------------------------
>
>                 Key: OAK-7714
>                 URL: https://issues.apache.org/jira/browse/OAK-7714
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: jcr
>    Affects Versions: 1.8.3
>            Reporter: Jörg Hoh
>            Priority: Minor
>         Attachments: OAK-7714.patch
>
>
> When I get such exceptions:
> {code}
> Caused by: javax.jcr.PathNotFoundException: /content/somepath/
>         at 
> org.apache.jackrabbit.oak.jcr.session.SessionImpl.getItem(SessionImpl.java:362)
>         at 
> com.adobe.granite.repository.impl.CRX3SessionImpl.getItem(CRX3SessionImpl.java:168)
>  
> {code}
> it is not always obvious if this path exists at all or if it's just not 
> available to the session; and if it's the later it would also be beneficial 
> if some indication about the session (especially the user) would be given to 
> speedup the problem analysis.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to