jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-279) IllegalStateException thrown when consuming events
Date Fri, 25 Nov 2005 11:08:57 GMT
    [ http://issues.apache.org/jira/browse/JCR-279?page=comments#action_12358504 ] 

Marcel Reutegger commented on JCR-279:

Every event listener has to be bound to a session to check access rights. 

See spec section: 8.3.5. Event Filtering

An event listener will only receive events for which its session (the
session through which it was registered) has sufficient access
control permissions and which meet the filtering restrictions
specified upon registration. See 8.3.3 Observation Manager.

IMO once the session is logged out, there is no way to check for access control anymore and
the listener must be unregistered. Which is the case in jackrabbit.

> IllegalStateException thrown when consuming events
> --------------------------------------------------
>          Key: JCR-279
>          URL: http://issues.apache.org/jira/browse/JCR-279
>      Project: Jackrabbit
>         Type: Bug
>   Components: observation
>     Reporter: Tobias Strasser
>     Assignee: Marcel Reutegger
>     Priority: Minor
>      Fix For: 1.0

> i assume, when session is closed, or beeing closed, the observation still tries to deliver
some events:
> [java] 2005-11-24 22:58:41,764 [ObservationManager] WARN  org.apache.jackrabbit.core.observation.ObservationManagerFactory
- EventConsumer threw exception: java.lang.IllegalStateException: not in
> itialized
> [java] 2005-11-24 22:58:41,764 [ObservationManager] DEBUG org.apache.jackrabbit.core.observation.ObservationManagerFactory
- Stacktrace:
> [java] java.lang.IllegalStateException: not initialized
> [java]     at org.apache.jackrabbit.core.security.SimpleAccessManager.isGranted(SimpleAccessManager.java:119)
> [java]     at org.apache.jackrabbit.core.observation.EventConsumer.consumeEvents(EventConsumer.java:231)
> [java]     at org.apache.jackrabbit.core.observation.ObservationManagerFactory.run(ObservationManagerFactory.java:161)
> [java]     at java.lang.Thread.run(Thread.java:595)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message