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

Santiago García Pimentel updated SLING-5579:
--------------------------------------------
    Description: 
CommonResourceResolverFactoryImpl holds a bolean isActive which should reflect 
if the resource resolver is active or not, it is set to true only during the 
declaration of the field and then to false in the deactivate method of the 
component. It is never set to true again.

Instead, isActive should be set to true in the activate method of the component.

org.apache.sling.api.resource.LoginException: ResourceResolverFactory is 
deactivated.
        at 
org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.getResourceResolver(CommonResourceResolverFactoryImpl.java:146)
        at 
org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getResourceResolver(ResourceResolverFactoryImpl.java:99)

  was:
CommonResourceResolverFactoryImpl holds a bolean isActive which should reflect 
if the resource resolver is active or not, it is set to true only during the 
declaration of the field and then to false in the deactivate method of the 
component. It is never set to true again.

Instead, isActive should be set to true in the activate method of the component.


> setActive is not set to true during activation of 
> CommonResourceResolverFactoryImpl
> -----------------------------------------------------------------------------------
>
>                 Key: SLING-5579
>                 URL: https://issues.apache.org/jira/browse/SLING-5579
>             Project: Sling
>          Issue Type: Bug
>          Components: ResourceResolver
>            Reporter: Santiago García Pimentel
>
> CommonResourceResolverFactoryImpl holds a bolean isActive which should 
> reflect if the resource resolver is active or not, it is set to true only 
> during the declaration of the field and then to false in the deactivate 
> method of the component. It is never set to true again.
> Instead, isActive should be set to true in the activate method of the 
> component.
> org.apache.sling.api.resource.LoginException: ResourceResolverFactory is 
> deactivated.
>       at 
> org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl.getResourceResolver(CommonResourceResolverFactoryImpl.java:146)
>       at 
> org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getResourceResolver(ResourceResolverFactoryImpl.java:99)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to