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

Issue in JSON parsing when array size is zero

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.10.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1

      Description

      2017-02-27 06:47:03,005 | ERROR | l for user karaf | ShellUtil | 27 - org.apache.karaf.shell.console - 3.0.5 | Exception caught while executing command
      java.lang.IllegalArgumentException: Requested allocation_pools is not child in neutronSubnets
      at org.onosproject.yms.app.ydt.YangRequestWorkBench.addChild(YangRequestWorkBench.java:414)
      at org.onosproject.yms.app.ydt.YangRequestWorkBench.addChild(YangRequestWorkBench.java:294)
      at org.onosproject.yms.app.ydt.YangRequestWorkBench.addChild(YangRequestWorkBench.java:269)
      at org.onosproject.protocol.restconf.server.utils.parser.json.JsonToYdtListener.enterJsonNode(JsonToYdtListener.java:78)
      at org.onosproject.protocol.restconf.server.utils.parser.json.DefaultJsonWalker.walk(DefaultJsonWalker.java:38)
      at org.onosproject.protocol.restconf.server.utils.parser.json.DefaultJsonWalker.walkJsonNode(DefaultJsonWalker.java:76)
      at org.onosproject.protocol.restconf.server.utils.parser.json.DefaultJsonWalker.walkArrayNode(DefaultJsonWalker.java:104)
      at org.onosproject.protocol.restconf.server.utils.parser.json.DefaultJsonWalker.walkJsonNode(DefaultJsonWalker.java:81)
      at org.onosproject.protocol.restconf.server.utils.parser.json.DefaultJsonWalker.walk(DefaultJsonWalker.java:56)
      at org.onosproject.protocol.restconf.server.utils.parser.json.ParserUtils.convertJsonToYdt(ParserUtils.java:91)
      at org.onosproject.protocol.restconf.ctl.JsonYdtCodec.decodeCompositeProtocolDataToYdt(JsonYdtCodec.java:115)
      at org.onosproject.yms.app.ych.DefaultYangCodecHandler.decode(DefaultYangCodecHandler.java:222)
      at org.onosproject.ssfcym.manager.SsfcNeutornSubnetYangManager.getSubnets(SsfcNeutornSubnetYangManager.java:184)

        Attachments

          Activity

            People

            • Assignee:
              Vidyashree-Huawei Vidyashree Rama
              Reporter:
              Vidyashree-Huawei Vidyashree Rama
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: