[ http://issues.apache.org/jira/browse/JCR-279?page=all ]
Marcel Reutegger resolved JCR-279:
----------------------------------
Resolution: Fixed
I agree, it probably happens when a session is being closed and the observation
manager still tries to deliver events.
I've changed the method EventConsumer.consumeEvents() to do some sanity
checking on the session to avoid the IllegalStateException. However, because
events are delivered in a separate thread it may still happen in rare cases
that the exception is thrown. The warn log is not severe and does not harm
operation of jackrabbit.
Costin: could you please check if this change avoids the IllegalStateExceptions
you see? Thanks.
Fixed in revision: 348920
> IllegalStateException thrown when consuming events
> --------------------------------------------------
>
> Key: JCR-279
> URL: http://issues.apache.org/jira/browse/JCR-279
> Project: Jackrabbit
> Type: Bug
> 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:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira