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

NPE when running netcfg command

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.7.0, 1.6.1
    • Component/s: None
    • Labels:
      None

      Description

      Sometimes we'll see the following exception when running 'netcfg':

      onos> log:exception-display
      java.lang.NullPointerException
      	at org.onosproject.store.config.impl.DistributedNetworkConfigStore.lambda$getConfigClasses$15(DistributedNetworkConfigStore.java:210)
      	at java.util.concurrent.ConcurrentHashMap$KeySetView.forEach(ConcurrentHashMap.java:4649)[:1.8.0_74]
      	at java.util.Collections$SetFromMap.forEach(Collections.java:5476)[:1.8.0_74]
      	at org.onosproject.store.config.impl.DistributedNetworkConfigStore.getConfigClasses(DistributedNetworkConfigStore.java:208)
      	at org.onosproject.net.config.impl.NetworkConfigManager.getConfigs(NetworkConfigManager.java:192)
      	at org.onosproject.cli.cfg.NetworkConfigCommand.addSubject(NetworkConfigCommand.java:96)
      	at org.onosproject.cli.cfg.NetworkConfigCommand.lambda$addSubjectClass$88(NetworkConfigCommand.java:92)
      	at java.lang.Iterable.forEach(Iterable.java:75)[:1.8.0_74]
      	at org.onosproject.cli.cfg.NetworkConfigCommand.addSubjectClass(NetworkConfigCommand.java:92)
      	at org.onosproject.cli.cfg.NetworkConfigCommand.lambda$addAll$87(NetworkConfigCommand.java:85)
      	at java.lang.Iterable.forEach(Iterable.java:75)[:1.8.0_74]
      	at org.onosproject.cli.cfg.NetworkConfigCommand.addAll(NetworkConfigCommand.java:83)
      	at org.onosproject.cli.cfg.NetworkConfigCommand.execute(NetworkConfigCommand.java:58)
      	at org.onosproject.cli.AbstractShellCommand.doExecute(AbstractShellCommand.java:150)
      	at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)[27:org.apache.karaf.shell.console:3.0.5]
      	at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[27:org.apache.karaf.shell.console:3.0.5]
      	at Proxy98b2b41f_ccbe_4e1d_9273_b42b75486629.execute(Unknown Source)[:]
      	at Proxy98b2b41f_ccbe_4e1d_9273_b42b75486629.execute(Unknown Source)[:]
      	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[27:org.apache.karaf.shell.console:3.0.5]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[27:org.apache.karaf.shell.console:3.0.5]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[27:org.apache.karaf.shell.console:3.0.5]
      	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[27:org.apache.karaf.shell.console:3.0.5]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[27:org.apache.karaf.shell.console:3.0.5]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[27:org.apache.karaf.shell.console:3.0.5]
      	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)
      	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:210)
      	at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.runConsole(ShellFactoryImpl.java:158)[150:org.apache.karaf.shell.ssh:3.0.5]
      	at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1$1.run(ShellFactoryImpl.java:133)
      	at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_74]
      	at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[28:org.apache.karaf.jaas.modules:3.0.5]
      	at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.run(ShellFactoryImpl.java:129)[150:org.apache.karaf.shell.ssh:3.0.5]
      

      I don't know of a way to reproduce this, it sometimes randomly appears. Once this happens the user can no longer view the network configuration.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jono Jonathan Hart
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: