-
Type:
Story
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: 1.5.0
-
Fix Version/s: 1.5.0
-
Component/s: None
-
Labels:None
-
Environment:
commit a636405a61067e09f7ae8ce4dc51a4b6ec71db5a
Author: Priyanka B <priyanka.b@huawei.com>
Date: Mon Feb 1 10:25:42 2016 +0530label subsystem bugfix
Change-Id: Ic18c2d5a95e318e7624f2aad66528e5c97144ec5
-
Story Points:2
-
Epic Link:
-
Sprint:Falcon Sprint #2 (1/25 - 2/12)
On a single node ONOS cluster:
NPE when using 'leaders -j'
leaders output:
onos> leaders ------------------------------------------------------------------------ Topic | Leader | Term | Elected | ------------------------------------------------------------------------ intent-partition-6 | 10.128.30.11 | 1 | 10m ago | intent-partition-7 | 10.128.30.11 | 1 | 10m ago | intent-partition-4 | 10.128.30.11 | 1 | 10m ago | intent-partition-5 | 10.128.30.11 | 1 | 10m ago | intent-partition-8 | 10.128.30.11 | 1 | 10m ago | intent-partition-9 | 10.128.30.11 | 1 | 10m ago | intent-partition-13 | 10.128.30.11 | 1 | 10m ago | intent-partition-11 | 10.128.30.11 | 1 | 10m ago | intent-partition-12 | 10.128.30.11 | 1 | 10m ago | intent-partition-10 | 10.128.30.11 | 1 | 10m ago | org.onosproject.election | 10.128.30.11 | 1 | 7m ago | intent-partition-2 | 10.128.30.11 | 1 | 10m ago | intent-partition-3 | 10.128.30.11 | 1 | 10m ago | intent-partition-0 | 10.128.30.11 | 1 | 10m ago | intent-partition-1 | 10.128.30.11 | 1 | 10m ago | ------------------------------------------------------------------------
leaders -j output:
onos> leaders -j Error executing command: java.lang.NullPointerException
Exception from the logs
2016-02-01 10:33:08,811 | ERROR | h for user karaf | ShellUtil | 27 - org.apache.karaf.shell.console - 3.0.5 | Exception caught while executing command java.lang.NullPointerException at org.onosproject.cli.net.LeaderCommand.lambda$json$7(LeaderCommand.java:129) at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)[:1.8.0_66] at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:352)[:1.8.0_66] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)[:1.8.0_66] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)[:1.8.0_66] at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)[:1.8.0_66] at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)[:1.8.0_66] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)[:1.8.0_66] at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)[:1.8.0_66] at org.onosproject.cli.net.LeaderCommand.json(LeaderCommand.java:123) at org.onosproject.cli.net.LeaderCommand.execute(LeaderCommand.java:178) at org.onosproject.cli.AbstractShellCommand.doExecute(AbstractShellCommand.java:129) 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 Proxy11cdf141_b70f_4927_8583_a2a5064437d9.execute(Unknown Source)[:] at Proxy11cdf141_b70f_4927_8583_a2a5064437d9.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)[137: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_66] 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)[137:org.apache.karaf.shell.ssh:3.0.5]