GitHub user Buuhuu opened a pull request:

    https://github.com/apache/sling/pull/102

    SLING-5070

    As workaround for SLING-5068 we set the cache size of SlingServletResolver 
to 0 to prevent it from caching servlets. We mentioned that there is a NPE 
thrown by the MBean implementation because the cache member field is null. This 
fixes the problem by not registering the MBean when the cache size is 0.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Buuhuu/sling trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/sling/pull/102.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #102
    
----
commit aee84f800124fda2b3de374070ba92ccbf905294
Author: Dirk Rudolph <[email protected]>
Date:   2015-09-04T15:03:03Z

    Merge pull request #1 from apache/trunk
    
    Sync Fork

commit f7825f1481b1fbdad6d2863617f9679e8595c844
Author: Dirk Rudolph <[email protected]>
Date:   2015-09-28T15:23:07Z

    SLING-5070: check the cacheSize before registering the 
SlingServletResolverMBean and register it only when there is a cache present.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to