[CONTROLLER-75] Exception thrown in config subsystem Created: 02/Dec/13  Updated: 25/Jul/23  Resolved: 02/Dec/13

Status: Resolved
Project: controller
Component/s: config
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Ed Warnicke Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: PC



 Description   

02:49:23.999 [System Bundle Shutdown] INFO o.o.c.c.manager.impl.DestroyedModule - Destroying ModuleIdentifier

{factoryName='runtime-generated-mapping', instanceName='runtime-mapping-singleton'}
02:49:24.003 [System Bundle Shutdown] ERROR o.o.c.c.manager.impl.DestroyedModule - Error while closing instance of ModuleIdentifier{factoryName='runtime-generated-mapping', instanceName='runtime-mapping-singleton'}

java.lang.IllegalStateException: The service has been unregistered
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:209) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.opendaylight.controller.sal.binding.dom.serializer.impl.RuntimeGeneratedMappingServiceImpl.close(RuntimeGeneratedMappingServiceImpl.java:429) ~[sal-binding-broker-impl-1.0-SNAPSHOT.jar:na]
at org.opendaylight.controller.config.manager.impl.DestroyedModule.close(DestroyedModule.java:48) ~[config-manager-0.2.3-SNAPSHOT.jar:na]
at org.opendaylight.controller.config.manager.impl.ConfigRegistryImpl.close(ConfigRegistryImpl.java:393) ~[config-manager-0.2.3-SNAPSHOT.jar:na]
at org.opendaylight.controller.config.manager.impl.osgi.ConfigManagerActivator.stop(ConfigManagerActivator.java:61) ~[config-manager-0.2.3-SNAPSHOT.jar:na]
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_25]
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:566) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1206) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:592) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:692) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:600) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle$1.run(InternalSystemBundle.java:261) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]
02:49:24.005 [System Bundle Shutdown] ERROR o.o.c.c.manager.impl.DestroyedModule - Error while closing osgi registration of ModuleIdentifier

{factoryName='runtime-generated-mapping', instanceName='runtime-mapping-singleton'}

java.lang.IllegalStateException: The service has been unregistered
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:209) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.opendaylight.controller.config.manager.impl.osgi.BeanToOsgiServiceManager$OsgiRegistration.close(BeanToOsgiServiceManager.java:110) ~[config-manager-0.2.3-SNAPSHOT.jar:na]
at org.opendaylight.controller.config.manager.impl.DestroyedModule.close(DestroyedModule.java:58) ~[config-manager-0.2.3-SNAPSHOT.jar:na]
at org.opendaylight.controller.config.manager.impl.ConfigRegistryImpl.close(ConfigRegistryImpl.java:393) ~[config-manager-0.2.3-SNAPSHOT.jar:na]
at org.opendaylight.controller.config.manager.impl.osgi.ConfigManagerActivator.stop(ConfigManagerActivator.java:61) ~[config-manager-0.2.3-SNAPSHOT.jar:na]
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_25]
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:566) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1206) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:592) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:692) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:600) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle$1.run(InternalSystemBundle.java:261) ~[org.eclipse.osgi-3.8.1.v20120830-144521.jar:na]
at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]
02:49:24.069 [main] INFO o.o.p.e.spi.reactors.ReactorManager - suite finished
Tests run: 24, Failures: 24, Errors: 0, Skipped: 0, Time elapsed: 130.11 sec <<< FAILURE! - in org.opendaylight.lispflowmapping.integrationtest.MappingServiceIntegrationTest

This is when running

cd lispflowmapping/distribution/;mvn clean install

It shows up in the integration tests.



 Comments   
Comment by Tomas Olvecky [ 02/Dec/13 ]

I've analyzed org.opendaylight.lispflowmapping.integrationtest.MappingServiceIntegrationTest.
Since something is calling System.exit, I've only enabled one test:org.opendaylight.lispflowmapping.integrationtest.MappingServiceIntegrationTest#northboundRetrieveSourceDestKey
The test fails in @Before on not being able to get org.opendaylight.lispflowmapping.interfaces.lisp.IFlowMapping instance from SR. This service is dependent on org.opendaylight.controller.sal.binding.api.BindingAwareBroker that is not in SR. Reason is that this service is instantiated using netconf persister. Please look at sal-binding-it, e.g. org.opendaylight.controller.test.sal.binding.it.TestHelper - it contains netconf bundles with config-persister-file-adapter, and configuration file controller.config where wiring for binding-broker-impl is defined. In case of questions please ask me or Tony.

Generated at Wed Feb 07 19:52:07 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.