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

Mohit Arora updated SLING-6397:
-------------------------------
    Component/s: Service User Mapper

> Error logged by ServiceUserMapperImpl while unregistering an already 
> unregistered service
> -----------------------------------------------------------------------------------------
>
>                 Key: SLING-6397
>                 URL: https://issues.apache.org/jira/browse/SLING-6397
>             Project: Sling
>          Issue Type: Bug
>          Components: Service User Mapper
>    Affects Versions: Service User Mapper 1.2.2
>            Reporter: Mohit Arora
>            Priority: Minor
>
> On shutdown of AEM, errors like below are logged in error logs - 
> {code}
> *ERROR* [pool-44-thread-1] 
> org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl cannot 
> unregister ServiceUserMapped Mapping 
> [serviceName=com.adobe.cq.social.cq-social-jcr-provider, 
> subServiceName=ugc-writer, userName=communities-ugc-writer]
> java.lang.IllegalStateException: Service already unregistered.
>       at 
> org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:140)
>       at 
> org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.executeServiceRegistrations(ServiceUserMapperImpl.java:315)
>       at 
> org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.access$000(ServiceUserMapperImpl.java:77)
>       at 
> org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl$1.run(ServiceUserMapperImpl.java:295)
>       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>       at java.util.concurrent.FutureTask.run(Unknown Source)
>       at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>       at java.lang.Thread.run(Unknown Source)
> {code}
> The service has already been rightfully unregistered and hence this is valid 
> condition. So this message should not be logged at *error* level but maybe at 
> *debug* level.



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

Reply via email to