[CONTROLLER-1822] Module name is not unique. Found two conflicting factories with same name 'netty-global-event-executor' Created: 05/Apr/18  Updated: 05/Apr/18  Resolved: 05/Apr/18

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

Type: Bug Priority: Medium
Reporter: Paul Greenberg Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Error log with Oxygen March 22, 2018:

Caused by: java.lang.IllegalArgumentException: Module name is not unique. Found two conflicting factories with same name 'netty-global-event-executor': 'org.opendaylight.controller.config.yang.netty.eventexecutor.GlobalEventExecutorModuleFactory@16d5fb0a' 'org.opendaylight.controller.config.yang.netty.eventexecutor.GlobalEventExecutorModuleFactory@3771d98b'
    at org.opendaylight.controller.config.manager.impl.osgi.BundleContextBackedModuleFactoriesResolver.getAllFactories(BundleContextBackedModuleFactoriesResolver.java:68) ~[?:?]
    at org.opendaylight.controller.config.manager.impl.ConfigRegistryImpl.beginConfigSafe(ConfigRegistryImpl.java:213) ~[?:?]
    at org.opendaylight.controller.config.manager.impl.ConfigRegistryImpl.beginConfig(ConfigRegistryImpl.java:198) ~[?:?]
    at org.opendaylight.controller.config.manager.impl.osgi.BlankTransactionServiceTracker.lambda$new$0(BlankTransactionServiceTracker.java:40) ~[?:?]
    at org.opendaylight.controller.config.manager.impl.osgi.BlankTransactionServiceTracker.blankTransactionSync(BlankTransactionServiceTracker.java:75) ~[?:?]
    at org.opendaylight.controller.config.manager.impl.osgi.ModuleFactoryBundleTracker.removedBundle(ModuleFactoryBundleTracker.java:69) ~[?:?]
    at org.opendaylight.controller.config.manager.impl.osgi.ModuleFactoryBundleTracker.removedBundle(ModuleFactoryBundleTracker.java:32) ~[?:?]
    at org.opendaylight.controller.config.manager.impl.osgi.ExtensibleBundleTracker.removedBundle(ExtensibleBundleTracker.java:103) ~[?:?]
    at org.opendaylight.controller.config.manager.impl.osgi.ExtensibleBundleTracker.removedBundle(ExtensibleBundleTracker.java:51) ~[?:?]
    at org.osgi.util.tracker.BundleTracker$Tracked.customizerRemoved(BundleTracker.java:495) ~[?:?]
    at org.osgi.util.tracker.BundleTracker$Tracked.customizerRemoved(BundleTracker.java:415) ~[?:?]
    at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341) ~[?:?]
    at org.osgi.util.tracker.BundleTracker.close(BundleTracker.java:192) ~[?:?]
    at org.opendaylight.controller.config.manager.impl.util.OsgiRegistrationUtil.lambda$aggregate$0(OsgiRegistrationUtil.java:66) ~[?:?]
    at org.opendaylight.controller.config.manager.impl.osgi.ConfigManagerActivator.stop(ConfigManagerActivator.java:148) ~[?:?]
    at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:830) ~[?:?]
    at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:1) ~[?:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
    at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:823) ~[?:?]
    ... 13 more


 Comments   
Comment by Tom Pantelis [ 05/Apr/18 ]

Looks like this occurred on shutdown but it would be helpful to include some context as to what you installed and how and the steps that led up to it. Either way, this is related to the config system which is deprecated in lieu of blueprint and not used by any upstream projects and is being removed in Flourine.

Comment by Paul Greenberg [ 05/Apr/18 ]

tpantelis, it is a vanilla Oxygen install. That the message I see in "log:display" before I even touch anything.

opendaylight-user@root>info
Karaf
  Karaf version               4.1.3
  Karaf home                  /opt/odl
  Karaf base                  /opt/odl
  OSGi Framework              org.eclipse.osgi-3.11.3.v20170209-1843

JVM
  Java Virtual Machine        OpenJDK 64-Bit Server VM version 25.144-b01
  Version                     1.8.0_144
  Vendor                      Oracle Corporation
  Pid                         2602
  Uptime                      10 hours 41 minutes
  Total compile time          4 minutes
Threads
  Live threads                107
  Daemon threads              84
  Peak                        201
  Total started               892
Memory
  Current heap size           831,768 kbytes
  Maximum heap size           1,864,192 kbytes
  Committed heap size         1,508,352 kbytes
  Pending objects             0
  Garbage collector           Name = 'PS Scavenge', Collections = 1490, Time = 50.837 seconds
  Garbage collector           Name = 'PS MarkSweep', Collections = 37, Time = 22.242 seconds
Classes
  Current classes loaded      25,657
  Total classes loaded        27,379
  Total classes unloaded      1,722
Operating system
  Name                        Linux version 3.10.0-514.21.1.el7.x86_64
  Architecture                amd64
  Processors                  4
opendaylight-user@root>
Generated at Wed Feb 07 19:56:32 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.