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

NPE when calling 'onos:intents -p -j'

    XMLWordPrintable

    Details

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

      commit decd7a6c7d7a07e9bd4a7771fb189ff8e53e7b20

      Description

      When checking pending intents after installing host intents I got an NPE from the cli

      This only happened once, and subsequent calls return: []

      onos> log:exception-display
      java.lang.NullPointerException
      	at org.onosproject.codec.impl.IntentCodec.encode(IntentCodec.java:52)
      	at org.onosproject.codec.impl.IntentCodec.encode(IntentCodec.java:33)
      	at org.onosproject.cli.AbstractShellCommand.jsonForEntity(AbstractShellCommand.java:165)
      	at org.onosproject.cli.net.IntentsListCommand.lambda$json$39(IntentsListCommand.java:394)
      	at org.onosproject.cli.net.IntentsListCommand$$Lambda$379/1668400870.accept(Unknown Source)
      	at java.util.ArrayList.forEach(ArrayList.java:1249)[:1.8.0_45]
      	at org.onosproject.cli.net.IntentsListCommand.json(IntentsListCommand.java:394)
      	at org.onosproject.cli.net.IntentsListCommand.execute(IntentsListCommand.java:77)
      	at org.onosproject.cli.AbstractShellCommand.doExecute(AbstractShellCommand.java:129)
      	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.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[25:org.apache.karaf.shell.console:3.0.3]
      	at Proxy5d339749_e98b_4ad6_b1ba_81f1bc4920e1.execute(Unknown Source)[:]
      	at Proxy5d339749_e98b_4ad6_b1ba_81f1bc4920e1.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_45]
      	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:
            jhall Jon Hall
            Reporter:
            jhall Jon Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: