You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Tom Watson (Jira)" <ji...@apache.org> on 2021/02/23 17:00:00 UTC
[jira] [Closed] (FELIX-6352) SCR should protect against
unregistered IllegalStateException for its ConfigurationListener
registrations
[ https://issues.apache.org/jira/browse/FELIX-6352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tom Watson closed FELIX-6352.
-----------------------------
> SCR should protect against unregistered IllegalStateException for its ConfigurationListener registrations
> ---------------------------------------------------------------------------------------------------------
>
> Key: FELIX-6352
> URL: https://issues.apache.org/jira/browse/FELIX-6352
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-2.1.24
> Reporter: Tom Watson
> Priority: Major
> Fix For: scr-2.1.26
>
>
> The following IllegalStateException should be caught and ignored by SCR
> ERROR: Bundle adeptj-modules-data-mongodb [26] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: Service already unregistered.)
> java.lang.IllegalStateException: Service already unregistered.
> at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:141)
> at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.dereference(RegionConfigurationSupport.java:141)
> at org.apache.felix.scr.impl.ComponentRegistry.unregisterRegionConfigurationSupport(ComponentRegistry.java:698)
> at org.apache.felix.scr.impl.BundleComponentActivator.unsetRegionConfigurationSupport(BundleComponentActivator.java:755)
> at org.apache.felix.scr.impl.helper.ConfigAdminTracker$1.removedService(ConfigAdminTracker.java:82)
> at org.apache.felix.scr.impl.helper.ConfigAdminTracker$1.removedService(ConfigAdminTracker.java:41)
> at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:969)
> at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:871)
> at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)
> at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:911)
> 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:4833)
> at org.apache.felix.framework.Felix.access$000(Felix.java:112)
> at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:434)
> at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:170)
> at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:145)
> at org.apache.felix.cm.impl.ConfigurationManager.stop(ConfigurationManager.java:248)
> at org.apache.felix.cm.impl.ConfigurationAdminStarter.deactivate(ConfigurationAdminStarter.java:95)
> at org.apache.felix.cm.impl.ConfigurationAdminStarter.updatePluginsSet(ConfigurationAdminStarter.java:177)
> at org.apache.felix.cm.impl.RequiredConfigurationPluginTracker$2.run(RequiredConfigurationPluginTracker.java:155)
> at org.apache.felix.cm.impl.ActivatorWorkerQueue.run(ActivatorWorkerQueue.java:82)
> at java.base/java.lang.Thread.run(Thread.java:834)
> *ERROR* Error processing task
> java.lang.IllegalStateException: Invalid BundleContext.
> at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:491)
> at org.apache.felix.framework.BundleContextImpl.removeBundleListener(BundleContextImpl.java:215)
> at org.apache.felix.cm.impl.ConfigurationManager.stop(ConfigurationManager.java:256)
> at org.apache.felix.cm.impl.ConfigurationAdminStarter.deactivate(ConfigurationAdminStarter.java:95)
> at org.apache.felix.cm.impl.ConfigurationAdminStarter.updatePluginsSet(ConfigurationAdminStarter.java:177)
> at org.apache.felix.cm.impl.RequiredConfigurationPluginTracker$2.run(RequiredConfigurationPluginTracker.java:155)
> at org.apache.felix.cm.impl.ActivatorWorkerQueue.run(ActivatorWorkerQueue.java:82)
> at java.base/java.lang.Thread.run(Thread.java:834)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)