[ https://issues.apache.org/jira/browse/ARIES-1788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Schneider updated ARIES-1788: --------------------------------------- Fix Version/s: (was: rsa-1.12.0) rsa-1.13.0 > NPE on log line > --------------- > > Key: ARIES-1788 > URL: https://issues.apache.org/jira/browse/ARIES-1788 > Project: Aries > Issue Type: Bug > Components: Remote Service Admin > Affects Versions: rsa-1.11.0 > Environment: Linux, jdk18 > Reporter: Ivo Leitão > Assignee: Christian Schneider > Priority: Major > Fix For: rsa-1.13.0 > > > Hi, > Sometimes I get a NPE in the DistributionProviderTracker as sampled bellow. > From my analysis it is caused by this line. This happens as presented bellow > normally after the registration of a config. I seems that the previous lines > were protected from NPE's but this one is missing the same treatment. > > {code:java} > ... > LOG.info("Registering RemoteServiceAdmin for provider " + > provider.getClass().getName()); > ...{code} > > 2018-03-04T01:36:38.870911734Z 2018-03-04T01:36:38,870 | INFO | > OsgiInstallerImpl | installer | 252 - org.apache.sling.installer.core - > 3.8.10 | Installed configuration org.apache.cxf.dosgi.http from resource > TaskResource(url=fileinstall91ba51cf3af2d6db3bc56bd9984dd3b8:/karaf-data/deploy/install.loc.core/core/org.apache.cxf.dosgi.http.cfg, > entity=config:org.apache.cxf.dosgi.http, state=INSTALL, > attributes=[org.apache.sling.installer.api.tasks.ResourceTransformer=:212:, > service.pid=org.apache.cxf.dosgi.http], > digest=1f4df79791159cb3c35bb1832be4ba3b) > 2018-03-04T01:36:38.919651742Z 2018-03-04T01:36:38,883 | ERROR | > features-1-thread-1 | Felix | - - | Bundle org.apache.aries.rsa.core [120] > EventDispatcher: Error during dispatch. (java.lang.NullPointerException) > 2018-03-04T01:36:38.919714648Z java.lang.NullPointerException: null > 2018-03-04T01:36:38.919794115Z at > org.apache.aries.rsa.core.DistributionProviderTracker.addingService(DistributionProviderTracker.java:59) > ~[?:?] > 2018-03-04T01:36:38.919813238Z at > org.apache.aries.rsa.core.DistributionProviderTracker.addingService(DistributionProviderTracker.java:39) > ~[?:?] > 2018-03-04T01:36:38.919866292Z at > org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) > ~[?:?] > 2018-03-04T01:36:38.919883382Z at > org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) > ~[?:?] > 2018-03-04T01:36:38.919922491Z at > org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) > ~[?:?] > 2018-03-04T01:36:38.919938661Z at > org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) ~[?:?] > 2018-03-04T01:36:38.919980225Z at > org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901) > ~[?:?] > 2018-03-04T01:36:38.919996574Z at > org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990) > ~[?:?] > 2018-03-04T01:36:38.920036455Z at > org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838) > ~[?:?] > 2018-03-04T01:36:38.920052293Z at > org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545) > ~[?:?] > 2018-03-04T01:36:38.920091875Z at > org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4595) ~[?:?] > 2018-03-04T01:36:38.920107658Z at > org.apache.felix.framework.Felix.registerService(Felix.java:3587) ~[?:?] > 2018-03-04T01:36:38.920150324Z at > org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348) > ~[?:?] > 2018-03-04T01:36:38.920165892Z at > org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:887) > ~[?:?] > 2018-03-04T01:36:38.920202734Z at > org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:874) > ~[?:?] > 2018-03-04T01:36:38.920217794Z at > org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:132) > ~[?:?] > 2018-03-04T01:36:38.920256314Z at > org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:941) > ~[?:?] > 2018-03-04T01:36:38.920274591Z at > org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:741) > ~[?:?] > 2018-03-04T01:36:38.920314322Z at > org.apache.felix.scr.impl.manager.AbstractComponentManager.enableInternal(AbstractComponentManager.java:675) > ~[?:?] > 2018-03-04T01:36:38.920330321Z at > org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:430) > ~[?:?] > 2018-03-04T01:36:38.920371806Z at > org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:657) > ~[?:?] > 2018-03-04T01:36:38.920387388Z at > org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:341) > ~[?:?] > 2018-03-04T01:36:38.920424322Z at > org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:390) ~[?:?] > 2018-03-04T01:36:38.920439082Z at > org.apache.felix.scr.impl.Activator.access$200(Activator.java:54) ~[?:?] > 2018-03-04T01:36:38.920475920Z at > org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:265) > ~[?:?] > 2018-03-04T01:36:38.920490790Z at > org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:254) > ~[?:?] > 2018-03-04T01:36:38.920531561Z at > org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:227) > ~[?:?] > 2018-03-04T01:36:38.920547731Z at > org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482) > ~[?:?] > 2018-03-04T01:36:38.920584797Z at > org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415) > ~[?:?] > 2018-03-04T01:36:38.920600039Z at > org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) ~[?:?] > 2018-03-04T01:36:38.920639136Z at > org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444) > ~[?:?] > 2018-03-04T01:36:38.920654887Z at > org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915) > ~[?:?] > 2018-03-04T01:36:38.920692119Z at > org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834) > ~[?:?] > 2018-03-04T01:36:38.920707032Z at > org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516) > ~[?:?] > 2018-03-04T01:36:38.920747100Z at > org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) ~[?:?] > 2018-03-04T01:36:38.920767468Z at > org.apache.felix.framework.Felix.startBundle(Felix.java:2174) ~[?:?] > 2018-03-04T01:36:38.920804456Z at > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?] > 2018-03-04T01:36:38.920819561Z at > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) ~[?:?] > 2018-03-04T01:36:38.920856664Z at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1361) > ~[?:?] > 2018-03-04T01:36:38.920871953Z at > org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:888) > ~[?:?] > 2018-03-04T01:36:38.920911820Z at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1248) > ~[?:?] > 2018-03-04T01:36:38.920928307Z at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$1(FeaturesServiceImpl.java:1147) > ~[?:?] > 2018-03-04T01:36:38.920968297Z at > java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] > 2018-03-04T01:36:38.920983401Z at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > [?:?] > 2018-03-04T01:36:38.921025252Z at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > [?:?] > 2018-03-04T01:36:38.921040344Z at java.lang.Thread.run(Thread.java:748) [?:?] > > Regards, > Ivo Leitão -- This message was sent by Atlassian JIRA (v7.6.3#76005)