java.lang.NullPointerException

JIRA | sivachidambaram subramanian | 2 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    onos> get-flow-stats -a -i OUTPUT of:0000000000000001/2 deviceId=of:0000000000000001, show ALL flows, liveType=ALL, instruction type=OUTPUT Error executing command: java.lang.NullPointerException KARAF LOG: 2017-02-03 12:11:34,864 | ERROR | sh for user onos | ShellUtil | 27 - org.apache.karaf.shell.console - 3.0.8 | Exception caught while executing command java.lang.NullPointerException at org.onosproject.net.statistic.impl.FlowStatisticManager.loadAllPortInternal(FlowStatisticManager.java:290) at org.onosproject.net.statistic.impl.FlowStatisticManager.loadAllByType(FlowStatisticManager.java:151) at org.onosproject.cli.net.GetFlowStatisticsCommand.execute(GetFlowStatisticsCommand.java:185) 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.8] at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[27:org.apache.karaf.shell.console:3.0.8] at Proxyaa370def_b193_419e_845b_726060d74566.execute(Unknown Source)[:] at Proxyaa370def_b193_419e_845b_726060d74566.execute(Unknown Source)[:] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[27:org.apache.karaf.shell.console:3.0.8] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[27:org.apache.karaf.shell.console:3.0.8] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[27:org.apache.karaf.shell.console:3.0.8] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[27:org.apache.karaf.shell.console:3.0.8] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[27:org.apache.karaf.shell.console:3.0.8] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[27:org.apache.karaf.shell.console:3.0.8] 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)[47:org.apache.karaf.shell.ssh:3.0.8] at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1$1.run(ShellFactoryImpl.java:133) at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_77] at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[28:org.apache.karaf.jaas.modules:3.0.8] at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.run(ShellFactoryImpl.java:129)[47:org.apache.karaf.shell.ssh:3.0.8] Even filtering by livetype is not working.

    JIRA | 2 months ago | sivachidambaram subramanian
    java.lang.NullPointerException
  2. 0

    Example: onos> netcfg get Error executing command: java.lang.NullPointerException Stacktrace: {noformat} 2016-12-07 21:05:55,111 | ERROR | ssh for user sdn | ShellUtil | 27 - org.apache.karaf.shell.console - 3.0.5 | Exception caught while executing command java.lang.NullPointerException at org.onosproject.cli.cfg.NetworkConfigCommand.execute(NetworkConfigCommand.java:64) 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 Proxy5bdb8089_443c_40e2_8ad0_f18e77eb671e.execute(Unknown Source)[:] at Proxy5bdb8089_443c_40e2_8ad0_f18e77eb671e.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)[157: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_101] 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)[157:org.apache.karaf.shell.ssh:3.0.5] {noformat}

    JIRA | 4 months ago | Jon Hall
    java.lang.NullPointerException
  3. 0

    1] Test Code String xml = "<filter xmlns=\"ydt.filter-type\" type=\"subtree\"><network xmlns=\"urn:TBD:params:xml:ns:yang:nodes\"><name>My name</name><surname>My Surname</surname><isHappy>false</isHappy></network></filter>"; List<Object> yangModuleDecodedList = yangCodecHandler.decode(xml, YangProtocolEncodingFormat.XML_ENCODING); Please find the Attached Yang File Output : Exception: onos> exception-display java.lang.NullPointerException at org.onosproject.yms.app.yob.YobSingleInstanceLeafHandler.setObjectInParent(YobSingleInstanceLeafHandler.java:59) at org.onosproject.yms.app.yob.YobListener.exitYdtNode(YobListener.java:79) at org.onosproject.yms.app.yob.YobListener.exitYdtNode(YobListener.java:91) at org.onosproject.yms.app.ydt.DefaultYdtWalker.walkTree(DefaultYdtWalker.java:66) at org.onosproject.yms.app.ydt.DefaultYdtWalker.walk(DefaultYdtWalker.java:96) at org.onosproject.yms.app.yob.DefaultYobBuilder.getYangObject(DefaultYobBuilder.java:43) at org.onosproject.yms.app.ych.DefaultYangCodecHandler.getObjectList(DefaultYangCodecHandler.java:241) at org.onosproject.yms.app.ych.DefaultYangCodecHandler.decode(DefaultYangCodecHandler.java:199) at org.onosproject.ymstest.cli.YmsTestCommand.execute(YmsTestCommand.java:90) 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 Proxy2c8c95a2_4d2b_4472_930d_0a4e362aadfd.execute(Unknown Source)[:] at Proxy2c8c95a2_4d2b_4472_930d_0a4e362aadfd.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.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:109) at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_101] 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.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:102)[27:org.apache.karaf.shell.console:3.0.5] onos> *********************************** Module Having Problem : YobHandler.java createYangBuilderObject try { yangDefaultClass = Class.forName(qualifiedClassName); } catch (ClassNotFoundException e) { log.error("YOB: failed to load class for class " + className); } try { Confirmed by : Bharat

    JIRA | 7 months ago | antony silvester
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    print(...) method throws an exception: cannot parse PortNumber class object to number. print("portNumber=%d, %s", portDescription.portNumber(),annotations(portDescription.annotations())) java.util.IllegalFormatConversionException: d != org.onosproject.net.PortNumber at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4302)[:1.8.0_65] at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2793)[:1.8.0_65] at java.util.Formatter$FormatSpecifier.print(Formatter.java:2747)[:1.8.0_65] at java.util.Formatter.format(Formatter.java:2520)[:1.8.0_65] at java.util.Formatter.format(Formatter.java:2455)[:1.8.0_65] at java.lang.String.format(String.java:2940)[:1.8.0_65] at org.onosproject.cli.AbstractShellCommand.print(AbstractShellCommand.java:73) at org.onosproject.cli.net.DevicePortDetailsCommand.lambda$execute$39(DevicePortDetailsCommand.java:43) at java.util.ArrayList.forEach(ArrayList.java:1249)[:1.8.0_65] at org.onosproject.cli.net.DevicePortDetailsCommand.execute(DevicePortDetailsCommand.java:42) 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 Proxyf81c5460_b185_493c_914a_5a7475ddaf97.execute(Unknown Source)[:] at Proxyf81c5460_b185_493c_914a_5a7475ddaf97.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.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:109) at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_65] 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.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:102)[27:org.apache.karaf.shell.console:3.0.5]

    JIRA | 2 weeks ago | Michal Mach
    java.util.IllegalFormatConversionException: d != org.onosproject.net.PortNumber
  6. 0

    When availability of Continuous resource is queried, but the resource is not registered, ResourceStore exceptionaly fails throwing Exception. It'll be better to return availability=false. {noformat} java.util.NoSuchElementException: No value present at java.util.Optional.get(Optional.java:135)[:1.8.0_101] at org.onosproject.store.resource.impl.ConsistentContinuousResourceSubStore.isAvailable(ConsistentContinuousResourceSubStore.java:100) at org.onosproject.store.resource.impl.ConsistentResourceStore.isAvailable(ConsistentResourceStore.java:277) at org.onosproject.net.resource.impl.ResourceManager.isAvailable(ResourceManager.java:201) at org.onosproject.newoptical.OpticalPathProvisioner$BandwidthLinkWeight.hasEnoughBandwidth(OpticalPathProvisioner.java:646) at org.onosproject.newoptical.OpticalPathProvisioner$BandwidthLinkWeight.weight(OpticalPathProvisioner.java:609) at org.onosproject.net.topology.AdapterLinkWeigher.weight(AdapterLinkWeigher.java:39) at org.onosproject.net.topology.AdapterLinkWeigher.weight(AdapterLinkWeigher.java:27) at org.onlab.graph.AbstractGraphPathSearch$DefaultResult.relaxEdge(AbstractGraphPathSearch.java:175) at org.onlab.graph.DijkstraGraphSearch.internalSearch(DijkstraGraphSearch.java:63) at org.onlab.graph.AbstractGraphPathSearch.search(AbstractGraphPathSearch.java:322) at org.onosproject.common.DefaultTopology.getPaths(DefaultTopology.java:381) at org.onosproject.common.DefaultTopology.getPaths(DefaultTopology.java:350) at org.onosproject.store.topology.impl.DistributedTopologyStore.getPaths(DistributedTopologyStore.java:225) at org.onosproject.net.topology.impl.TopologyManager.getPaths(TopologyManager.java:173) at org.onosproject.net.topology.AbstractPathService.getPaths(AbstractPathService.java:101) at org.onosproject.net.topology.impl.PathManager.getPaths(PathManager.java:90) at org.onosproject.net.topology.AbstractPathService.getPaths(AbstractPathService.java:70) at org.onosproject.net.topology.impl.PathManager.getPaths(PathManager.java:84) at org.onosproject.newoptical.OpticalPathProvisioner.setupConnectivity(OpticalPathProvisioner.java:249) at org.onosproject.newoptical.cli.AddOpticalConnectivityCommand.execute(AddOpticalConnectivityCommand.java:73) 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.8] at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[27:org.apache.karaf.shell.console:3.0.8] at Proxya96b366d_53f8_4196_8c65_48d541ed957e.execute(Unknown Source)[:] at Proxya96b366d_53f8_4196_8c65_48d541ed957e.execute(Unknown Source)[:] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[27:org.apache.karaf.shell.console:3.0.8] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[27:org.apache.karaf.shell.console:3.0.8] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[27:org.apache.karaf.shell.console:3.0.8] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[27:org.apache.karaf.shell.console:3.0.8] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[27:org.apache.karaf.shell.console:3.0.8] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[27:org.apache.karaf.shell.console:3.0.8] 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)[47:org.apache.karaf.shell.ssh:3.0.8] at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1$1.run(ShellFactoryImpl.java:133) at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_101] at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[28:org.apache.karaf.jaas.modules:3.0.8] at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.run(ShellFactoryImpl.java:129)[47:org.apache.karaf.shell.ssh:3.0.8] {noformat}

    JIRA | 3 weeks ago | Yuta Higuchi
    java.util.NoSuchElementException: No value present

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.onosproject.net.statistic.impl.FlowStatisticManager.loadAllPortInternal()
    2. org.onosproject.net
      FlowStatisticManager.loadAllByType
      1. org.onosproject.net.statistic.impl.FlowStatisticManager.loadAllPortInternal(FlowStatisticManager.java:290)
      2. org.onosproject.net.statistic.impl.FlowStatisticManager.loadAllByType(FlowStatisticManager.java:151)
      2 frames
    3. org.onosproject.cli
      AbstractShellCommand.doExecute
      1. org.onosproject.cli.net.GetFlowStatisticsCommand.execute(GetFlowStatisticsCommand.java:185)
      2. org.onosproject.cli.AbstractShellCommand.doExecute(AbstractShellCommand.java:150)
      2 frames
    4. Apache Karaf :: Shell :: Console
      AbstractCommand.execute
      1. org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)[27:org.apache.karaf.shell.console:3.0.8]
      2. org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[27:org.apache.karaf.shell.console:3.0.8]
      2 frames
    5. Unknown
      Proxyaa370def_b193_419e_845b_726060d74566.execute
      1. Proxyaa370def_b193_419e_845b_726060d74566.execute(Unknown Source)[:]
      2. Proxyaa370def_b193_419e_845b_726060d74566.execute(Unknown Source)[:]
      2 frames
    6. Apache Felix Gogo Runtime
      CommandSessionImpl.execute
      1. org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[27:org.apache.karaf.shell.console:3.0.8]
      2. org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[27:org.apache.karaf.shell.console:3.0.8]
      3. org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[27:org.apache.karaf.shell.console:3.0.8]
      4. org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[27:org.apache.karaf.shell.console:3.0.8]
      5. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[27:org.apache.karaf.shell.console:3.0.8]
      6. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[27:org.apache.karaf.shell.console:3.0.8]
      7. org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)
      7 frames
    7. Apache Karaf :: Shell :: Console
      ConsoleImpl.run
      1. org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:210)
      1 frame
    8. org.apache.karaf
      ShellFactoryImpl$ShellImpl$1$1.run
      1. org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.runConsole(ShellFactoryImpl.java:158)[47:org.apache.karaf.shell.ssh:3.0.8]
      2. org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1$1.run(ShellFactoryImpl.java:133)
      2 frames
    9. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)[:1.8.0_77]
      1 frame
    10. Karaf
      JaasHelper.doAs
      1. org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[28:org.apache.karaf.jaas.modules:3.0.8]
      1 frame
    11. org.apache.karaf
      ShellFactoryImpl$ShellImpl$1.run
      1. org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.run(ShellFactoryImpl.java:129)[47:org.apache.karaf.shell.ssh:3.0.8]
      1 frame