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

Stefan Scheidewig updated SLING-3427:
-------------------------------------

    Description: The bind method for the namespace service references within 
class org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepositoryManager 
is accessing the ComponentContext set by the activate method but unfortunately 
that is incorrect because the Declarative Services Specification Version 1.1 - 
section 112.5.6 states that the binding happens before the activation. So the 
attempt to bind the TestNamespaceMapper Service to the 
SlingServerRepositoryManager always results in a NullPointerException.  (was: 
The bind method for the namespace service references within class 
{{org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepositoryManager}} is 
accessing the {{ComponentContext}} set by the {{activate}} method but 
unfortunately that is incorrect because the _Declarative Services Specification 
Version 1.1_ - section 112.5.6 states that the binding happens before the 
activation. So the attempt to bind the {{TestNamespaceMapper}} Service to the 
{{SlingServerRepositoryManager}} always results in a {{NullPointerException}}.)

> Incorrect handling of NamespaceMapper bindings within 
> SlingServerRepositoryManager
> ----------------------------------------------------------------------------------
>
>                 Key: SLING-3427
>                 URL: https://issues.apache.org/jira/browse/SLING-3427
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: JCR Jackrabbit Server 2.1.2
>            Reporter: Stefan Scheidewig
>            Priority: Minor
>              Labels: jackrabbit, namespace
>         Attachments: namespacemapper_binding_fix.patch
>
>
> The bind method for the namespace service references within class 
> org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepositoryManager is 
> accessing the ComponentContext set by the activate method but unfortunately 
> that is incorrect because the Declarative Services Specification Version 1.1 
> - section 112.5.6 states that the binding happens before the activation. So 
> the attempt to bind the TestNamespaceMapper Service to the 
> SlingServerRepositoryManager always results in a NullPointerException.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to