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

Timothee Maret commented on JCR-2981:
-------------------------------------

>From the logs:

2011-06-01 17:30:58,665 DEBUG org.apache.jackrabbit.jcr2spi.WorkspaceManager - 
Dump:
java.lang.NullPointerException
        at 
org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyManagerImpl.lookup(HierarchyManagerImpl.java:92)
        at 
org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyEventListener.pushEvents(HierarchyEventListener.java:152)
        at 
org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyEventListener.onEvent(HierarchyEventListener.java:96)
        at 
org.apache.jackrabbit.jcr2spi.WorkspaceManager.onEventReceived(WorkspaceManager.java:781)
        at 
org.apache.jackrabbit.jcr2spi.WorkspaceManager.access$1100(WorkspaceManager.java:122)
        at 
org.apache.jackrabbit.jcr2spi.WorkspaceManager$ChangePolling.run(WorkspaceManager.java:1158)
        at java.lang.Thread.run(Thread.java:680)

> Bundle of events may be dropped due to NP.
> ------------------------------------------
>
>                 Key: JCR-2981
>                 URL: https://issues.apache.org/jira/browse/JCR-2981
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr2spi
>    Affects Versions: 2.2.5
>            Reporter: Timothee Maret
>            Priority: Minor
>         Attachments: HierarchyManagerImpl.java.patch
>
>
> In [1], if the resolver fails to lookup a node entry, a NP is thrown. This 
> exception will break the loop which forwards the events to the observer in 
> [2].
> This will result in an observer not receiving events that he should have.
> [1] 
> org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyManagerImpl#lookup(ItemId 
> workspaceItemId)
> [2] 
> org.apache.jackrabbit.jcr2spi.WorkspaceManager#onEventReceived(EventBundle[] 
> eventBundles,InternalEventListener[] lstnrs)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to