Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-1635

Apps startup fails with Exceptions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
    • Environment:

      commit 22379a40319868b32d311b86197c5c0b11615516
      Author: alshabib <alshabibi.ali@gmail.com>
      Date: Mon Apr 13 11:37:33 2015 -0700

    • Epic Link:
    • Sprint:
      Cardinal Sprint 5 (5/18-5/22)

      Description

      Exception caught intermittently in CHO tests starting clusters. apps does not load correctly - no returns from apps command. Log excerpt below:

      2015-04-13 16:46:24,025 | INFO | event-dispatch-0 | DistributedLeadershipManager | 79 - org.onosproject.onos-core-dist - 1.2.0.SNAPSHOT | Gave up leadership for intent-partition-6
      2015-04-13 16:46:24,049 | ERROR | h for user karaf | onos-core-net | 77 - org.onosproject.onos-core-net - 1.2.0.SNAPSHOT | [org.onosproject.app.impl.ApplicationManager(37)] The activate method has thrown an exception
      java.lang.IllegalArgumentException: Event sink already registered for org.onosproject.app.ApplicationEvent
      at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)
      at org.onosproject.event.DefaultEventSinkRegistry.addSink(DefaultEventSinkRegistry.java:39)
      at org.onosproject.app.impl.ApplicationManager.activate(ApplicationManager.java:74)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_25]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_25]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_25]
      at java.lang.reflect.Method.invoke(Method.java:483)[:1.8.0_25]
      at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:231)
      at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:39)
      at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:624)
      at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:508)
      at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:149)
      at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:315)
      at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:127)
      at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:871)
      at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:838)
      at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:777)
      at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:308)
      at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:219)
      at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:320)
      at org.apache.felix.framework.Felix.getService(Felix.java:3568)
      at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:468)
      at org.onlab.osgi.DefaultServiceDirectory.getService(DefaultServiceDirectory.java:39)
      at org.onosproject.cli.AbstractShellCommand.get(AbstractShellCommand.java:46)
      at org.onosproject.cli.app.ApplicationsListCommand.execute(ApplicationsListCommand.java:59)
      at org.onosproject.cli.AbstractShellCommand.doExecute(AbstractShellCommand.java:125)
      at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[25:org.apache.karaf.shell.console:3.0.3]
      at Proxy375cde9b_5919_48f5_9588_3a2d5be18043.execute(Unknown Source)[:]
      at Proxy375cde9b_5919_48f5_9588_3a2d5be18043.execute(Unknown Source)[:]
      at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
      at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:208)
      at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.runConsole(ShellFactoryImpl.java:158)[86:org.apache.karaf.shell.ssh:3.0.3]
      at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1$1.run(ShellFactoryImpl.java:133)
      at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_25]
      at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[26:org.apache.karaf.jaas.modules:3.0.3]
      at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.run(ShellFactoryImpl.java:129)[86:org.apache.karaf.shell.ssh:3.0.3]

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            suibin suibin
            Reporter:
            suibin suibin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: