You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Honwai Wong (JIRA)" <ji...@apache.org> on 2010/06/29 11:05:50 UTC

[jira] Created: (SLING-1579) MapEntries.dispose tries to access potentially unavailable repository during shutdown

MapEntries.dispose tries to access potentially unavailable repository during shutdown
-------------------------------------------------------------------------------------

                 Key: SLING-1579
                 URL: https://issues.apache.org/jira/browse/SLING-1579
             Project: Sling
          Issue Type: Improvement
          Components: JCR
    Affects Versions: JCR Resource 2.0.6
            Reporter: Honwai Wong
            Priority: Minor


During shutdown of the instance, the JcrResourceResolverFactoryImpl's deactivate() method is called to dispose of its internal mapping entries. This calls the MapEntries#dispose method which tries to remove itself as EventListener from the ObservationManager which fails: the used session has already been closed, I assume because the repository as such has already been stopped.

The exceptions should rather be logged on a WARN level as this situation seems to be perfectly legal. An additional check via Session#isLive might also make sense.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.