[
https://issues.apache.org/jira/browse/SLING-5579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15175826#comment-15175826
]
Konrad Windszus commented on SLING-5579:
----------------------------------------
Just for the reference: OSGi Compendium, Release 6, $112.5.6
{quote}
Component instances must never be reused. Each time a component configuration
is activated, SCR
must create a new component instance to use with the activated component
configuration.
{quote}
> 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
> Assignee: Carsten Ziegeler
> Fix For: Resource Resolver 1.5.0
>
>
> 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)