[ 
https://issues.apache.org/jira/browse/SLING-3339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Edelson updated SLING-3339:
----------------------------------

    Component/s: JCR

> avoid Oak warning about external events
> ---------------------------------------
>
>                 Key: SLING-3339
>                 URL: https://issues.apache.org/jira/browse/SLING-3339
>             Project: Sling
>          Issue Type: Improvement
>          Components: JCR
>            Reporter: Justin Edelson
>             Fix For: JCR Resource 2.3.0
>
>
> When running Sling with Oak, the following warning is raised:
> {code}
> 24.01.2014 10:28:44.905 *WARN* [pool-3-thread-1] 
> org.apache.jackrabbit.oak.jcr.observation.ObservationManagerImpl Event 
> listener ///*[11111b] is trying to access user information of event 
> EventImpl{type=1, jcrPath='/OakRepositoryIT1390577324073', userID='admin', 
> identifier='/OakRepositoryIT1390577324073', info={}, date=1390577324092, 
> userData=null, external=false} without checking whether the event is 
> external. java.lang.Exception: The event listener was registered here:
>       at 
> org.apache.jackrabbit.commons.observation.ListenerTracker.<init>(ListenerTracker.java:59)
>       at 
> org.apache.jackrabbit.oak.jcr.observation.ObservationManagerImpl$1.<init>(ObservationManagerImpl.java:113)
>       at 
> org.apache.jackrabbit.oak.jcr.observation.ObservationManagerImpl.addEventListener(ObservationManagerImpl.java:111)
>       at 
> org.apache.sling.jcr.resource.internal.JcrResourceListener.<init>(JcrResourceListener.java:119)
>       at 
> org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory.activate(JcrResourceProviderFactory.java:82)
> {code}
> The reason for which can be found at 
> http://jackrabbit.apache.org/oak/docs/differences.html#Observation
> To avoid this warning, isExternal() should be checked before calling 
> getUserID().



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to