Oliver Lietz created SLING-6493:
-----------------------------------

             Summary: Remove (sub) service user from JcrResourceBundleProvider
                 Key: SLING-6493
                 URL: https://issues.apache.org/jira/browse/SLING-6493
             Project: Sling
          Issue Type: Improvement
          Components: Extensions
            Reporter: Oliver Lietz
            Assignee: Oliver Lietz
             Fix For: i18n 2.5.8


{noformat}
2017-01-27T19:22:44,554 | ERROR | pool-30-thread-1 | i18n                       
      | 180 - org.apache.sling.i18n - 2.5.6 | 
[org.apache.sling.i18n.impl.JcrResourceBundleProvider(140)] The activate method 
has thrown an exception
org.apache.sling.api.resource.LoginException: Cannot derive user name for 
bundle org.apache.sling.i18n [180] and sub service sling-i18n
        at 
org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getServiceResourceResolver(ResourceResolverFactoryImpl.java:84)
 ~[?:?]
        at 
org.apache.sling.i18n.impl.JcrResourceBundleProvider.activate(JcrResourceBundleProvider.java:372)
 ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:?]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
        at 
org.apache.felix.scr.impl.inject.BaseMethod.invokeMethod(BaseMethod.java:224) 
~[?:?]
        at 
org.apache.felix.scr.impl.inject.BaseMethod.access$500(BaseMethod.java:39) 
~[?:?]
        at 
org.apache.felix.scr.impl.inject.BaseMethod$Resolved.invoke(BaseMethod.java:617)
 ~[?:?]
        at 
org.apache.felix.scr.impl.inject.BaseMethod.invoke(BaseMethod.java:501) ~[?:?]
        at 
org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:302) 
~[?:?]
        at 
org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:294) 
~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:298)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:109)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:906)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:879)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:823)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:344) 
~[?:?]
        at org.apache.felix.framework.Felix.getService(Felix.java:3699) ~[?:?]
        at 
org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)
 ~[?:?]
        at 
org.apache.sling.resourceresolver.impl.observation.ResourceChangeListenerWhiteboard$1.addingService(ResourceChangeListenerWhiteboard.java:84)
 ~[?:?]
        at 
org.apache.sling.resourceresolver.impl.observation.ResourceChangeListenerWhiteboard$1.addingService(ResourceChangeListenerWhiteboard.java:64)
 ~[?:?]
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
 ~[?:?]
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
 ~[?:?]
        at 
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) 
~[?:?]
        at 
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) ~[?:?]
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)
 ~[?:?]
        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4557) 
~[?:?]
        at org.apache.felix.framework.Felix.registerService(Felix.java:3549) 
~[?:?]
        at 
org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:887)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:874)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:132)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:941)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:741)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.enableInternal(AbstractComponentManager.java:675)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:430)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:657)
 ~[?:?]
        at 
org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:341)
 ~[?:?]
        at 
org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:390) ~[?:?]
        at org.apache.felix.scr.impl.Activator.access$200(Activator.java:54) 
~[?:?]
        at 
org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:265) 
~[?:?]
        at 
org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:254)
 ~[?:?]
        at 
org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:227)
 ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
 ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)
 ~[?:?]
        at 
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
 ~[?:?]
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4541) 
~[?:?]
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2172) ~[?:?]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) 
~[?:?]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) 
~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1281)
 ~[?:?]
        at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:890) 
~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1170)
 ~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$0(FeaturesServiceImpl.java:1069)
 ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
[?:?]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
[?:?]
        at java.lang.Thread.run(Thread.java:745) [?:?]
2017-01-27T19:22:44,568 | ERROR | FelixDispatchQueue | resourceresolver         
        | 158 - org.apache.sling.resourceresolver - 1.5.12 | FrameworkEvent 
ERROR - org.apache.sling.resourceresolver
org.osgi.framework.ServiceException: Service factory returned null. (Component: 
org.apache.sling.i18n.impl.JcrResourceBundleProvider (140))
        at 
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:380)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:344) 
~[?:?]
        at org.apache.felix.framework.Felix.getService(Felix.java:3699) ~[?:?]
        at 
org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)
 ~[?:?]
        at 
org.apache.sling.resourceresolver.impl.observation.ResourceChangeListenerWhiteboard$1.addingService(ResourceChangeListenerWhiteboard.java:84)
 ~[?:?]
        at 
org.apache.sling.resourceresolver.impl.observation.ResourceChangeListenerWhiteboard$1.addingService(ResourceChangeListenerWhiteboard.java:64)
 ~[?:?]
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
 ~[?:?]
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
 ~[?:?]
        at 
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) 
~[?:?]
        at 
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) ~[?:?]
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)
 ~[?:?]
        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4557) 
~[?:?]
        at org.apache.felix.framework.Felix.registerService(Felix.java:3549) 
~[?:?]
        at 
org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:887)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:874)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:132)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:941)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:741)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.enableInternal(AbstractComponentManager.java:675)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:430)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:657)
 ~[?:?]
        at 
org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:341)
 ~[?:?]
        at 
org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:390) ~[?:?]
        at org.apache.felix.scr.impl.Activator.access$200(Activator.java:54) 
~[?:?]
        at 
org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:265) 
~[?:?]
        at 
org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:254)
 ~[?:?]
        at 
org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:227)
 ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
 ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)
 ~[?:?]
        at 
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
 ~[?:?]
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4541) 
~[?:?]
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2172) ~[?:?]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) 
~[?:?]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) 
~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1281)
 ~[?:?]
        at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:890) 
~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1170)
 ~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$0(FeaturesServiceImpl.java:1069)
 ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
[?:?]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
[?:?]
        at java.lang.Thread.run(Thread.java:745) [?:?]
2017-01-27T19:22:44,569 | ERROR | pool-30-thread-1 | i18n                       
      | 180 - org.apache.sling.i18n - 2.5.6 | 
[org.apache.sling.i18n.impl.JcrResourceBundleProvider(140)] The activate method 
has thrown an exception
org.apache.sling.api.resource.LoginException: Cannot derive user name for 
bundle org.apache.sling.i18n [180] and sub service sling-i18n
        at 
org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getServiceResourceResolver(ResourceResolverFactoryImpl.java:84)
 ~[?:?]
        at 
org.apache.sling.i18n.impl.JcrResourceBundleProvider.activate(JcrResourceBundleProvider.java:372)
 ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:?]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
        at 
org.apache.felix.scr.impl.inject.BaseMethod.invokeMethod(BaseMethod.java:224) 
~[?:?]
        at 
org.apache.felix.scr.impl.inject.BaseMethod.access$500(BaseMethod.java:39) 
~[?:?]
        at 
org.apache.felix.scr.impl.inject.BaseMethod$Resolved.invoke(BaseMethod.java:617)
 ~[?:?]
        at 
org.apache.felix.scr.impl.inject.BaseMethod.invoke(BaseMethod.java:501) ~[?:?]
        at 
org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:302) 
~[?:?]
        at 
org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:294) 
~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:298)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:109)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:906)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:879)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:749)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.enableInternal(AbstractComponentManager.java:675)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:430)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:657)
 ~[?:?]
        at 
org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:341)
 ~[?:?]
        at 
org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:390) ~[?:?]
        at org.apache.felix.scr.impl.Activator.access$200(Activator.java:54) 
~[?:?]
        at 
org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:265) 
~[?:?]
        at 
org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:254)
 ~[?:?]
        at 
org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:227)
 ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
 ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)
 ~[?:?]
        at 
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
 ~[?:?]
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4541) 
~[?:?]
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2172) ~[?:?]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) 
~[?:?]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) 
~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1281)
 ~[?:?]
        at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:890) 
~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1170)
 ~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$0(FeaturesServiceImpl.java:1069)
 ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
[?:?]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
[?:?]
        at java.lang.Thread.run(Thread.java:745) [?:?]
2017-01-27T19:22:44,580 | ERROR | pool-30-thread-1 | i18n                       
      | 180 - org.apache.sling.i18n - 2.5.6 | 
[org.apache.sling.i18n.impl.JcrResourceBundleProvider(140)] The activate method 
has thrown an exception
org.apache.sling.api.resource.LoginException: Cannot derive user name for 
bundle org.apache.sling.i18n [180] and sub service sling-i18n
        at 
org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getServiceResourceResolver(ResourceResolverFactoryImpl.java:84)
 ~[?:?]
        at 
org.apache.sling.i18n.impl.JcrResourceBundleProvider.activate(JcrResourceBundleProvider.java:372)
 ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:?]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
        at 
org.apache.felix.scr.impl.inject.BaseMethod.invokeMethod(BaseMethod.java:224) 
~[?:?]
        at 
org.apache.felix.scr.impl.inject.BaseMethod.access$500(BaseMethod.java:39) 
~[?:?]
        at 
org.apache.felix.scr.impl.inject.BaseMethod$Resolved.invoke(BaseMethod.java:617)
 ~[?:?]
        at 
org.apache.felix.scr.impl.inject.BaseMethod.invoke(BaseMethod.java:501) ~[?:?]
        at 
org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:302) 
~[?:?]
        at 
org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:294) 
~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:298)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:109)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:906)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:879)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:823)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:344) 
~[?:?]
        at org.apache.felix.framework.Felix.getService(Felix.java:3699) ~[?:?]
        at 
org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleRefPair.getServiceObject(SingleRefPair.java:72)
 ~[?:?]
        at 
org.apache.felix.scr.impl.inject.BindMethod.getServiceObject(BindMethod.java:648)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2201)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.prebind(DependencyManager.java:403)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.DependencyManager.prebind(DependencyManager.java:1520)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:1006)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:859)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:823)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:344) 
~[?:?]
        at org.apache.felix.framework.Felix.getService(Felix.java:3699) ~[?:?]
        at 
org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)
 ~[?:?]
        at 
org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:414) 
~[?:?]
        at 
org.apache.sling.engine.impl.filter.ServletFilterManager.addingService(ServletFilterManager.java:128)
 ~[?:?]
        at 
org.apache.sling.engine.impl.filter.ServletFilterManager.addingService(ServletFilterManager.java:43)
 ~[?:?]
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
 ~[?:?]
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
 ~[?:?]
        at 
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) 
~[?:?]
        at 
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) ~[?:?]
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)
 ~[?:?]
        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4557) 
~[?:?]
        at org.apache.felix.framework.Felix.registerService(Felix.java:3549) 
~[?:?]
        at 
org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:887)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:874)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:132)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:941)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:741)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.enableInternal(AbstractComponentManager.java:675)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:430)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:657)
 ~[?:?]
        at 
org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:341)
 ~[?:?]
        at 
org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:390) ~[?:?]
        at org.apache.felix.scr.impl.Activator.access$200(Activator.java:54) 
~[?:?]
        at 
org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:265) 
~[?:?]
        at 
org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:254)
 ~[?:?]
        at 
org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:227)
 ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
 ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)
 ~[?:?]
        at 
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
 ~[?:?]
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4541) 
~[?:?]
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2172) ~[?:?]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) 
~[?:?]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) 
~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1281)
 ~[?:?]
        at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:890) 
~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1170)
 ~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$0(FeaturesServiceImpl.java:1069)
 ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
[?:?]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
[?:?]
        at java.lang.Thread.run(Thread.java:745) [?:?]
2017-01-27T19:22:44,594 | ERROR | FelixDispatchQueue | i18n                     
        | 180 - org.apache.sling.i18n - 2.5.6 | FrameworkEvent ERROR - 
org.apache.sling.i18n
org.osgi.framework.ServiceException: Service factory returned null. (Component: 
org.apache.sling.i18n.impl.JcrResourceBundleProvider (140))
        at 
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:380)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:344) 
~[?:?]
        at org.apache.felix.framework.Felix.getService(Felix.java:3699) ~[?:?]
        at 
org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleRefPair.getServiceObject(SingleRefPair.java:72)
 ~[?:?]
        at 
org.apache.felix.scr.impl.inject.BindMethod.getServiceObject(BindMethod.java:648)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2201)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.prebind(DependencyManager.java:403)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.DependencyManager.prebind(DependencyManager.java:1520)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:1006)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:859)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:823)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
 ~[?:?]
        at 
org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:344) 
~[?:?]
        at org.apache.felix.framework.Felix.getService(Felix.java:3699) ~[?:?]
        at 
org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)
 ~[?:?]
        at 
org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:414) 
~[?:?]
        at 
org.apache.sling.engine.impl.filter.ServletFilterManager.addingService(ServletFilterManager.java:128)
 ~[?:?]
        at 
org.apache.sling.engine.impl.filter.ServletFilterManager.addingService(ServletFilterManager.java:43)
 ~[?:?]
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
 ~[?:?]
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
 ~[?:?]
        at 
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) 
~[?:?]
        at 
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) ~[?:?]
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)
 ~[?:?]
        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4557) 
~[?:?]
        at org.apache.felix.framework.Felix.registerService(Felix.java:3549) 
~[?:?]
        at 
org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:887)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:874)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:132)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:941)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:741)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.enableInternal(AbstractComponentManager.java:675)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:430)
 ~[?:?]
        at 
org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:657)
 ~[?:?]
        at 
org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:341)
 ~[?:?]
        at 
org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:390) ~[?:?]
        at org.apache.felix.scr.impl.Activator.access$200(Activator.java:54) 
~[?:?]
        at 
org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:265) 
~[?:?]
        at 
org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:254)
 ~[?:?]
        at 
org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:227)
 ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
 ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)
 ~[?:?]
        at 
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) ~[?:?]
        at 
org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
 ~[?:?]
        at 
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
 ~[?:?]
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4541) 
~[?:?]
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2172) ~[?:?]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) 
~[?:?]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) 
~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1281)
 ~[?:?]
        at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:890) 
~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1170)
 ~[?:?]
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$0(FeaturesServiceImpl.java:1069)
 ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
[?:?]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
[?:?]
        at java.lang.Thread.run(Thread.java:745) [?:?]
{noformat}

[~radu.cotescu], [~marett]: Please have a look, sub service users are also used 
in {{SlyBindingsValuesProvider}} and {{XSSFilterImpl}}. Why?



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

Reply via email to