org.onosproject.yms.app.ydt.exceptions.YdtExceptions: Can't invoke get parent at logical root node.

JIRA | antony silvester | 8 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

    Steps: please find the attachment of the ymstest app. Topology.yang is the yangfile Take all the files form the private git that shared already. Same thing you can use. Send the below Json format. POST : http://127.0.01:8181/onos/restconf/data/topology { "node": [{ "node-id": "123", "node-prop": ["example"], "termination-points": { "number-of-tp": 100, "termination-point": [ { "tp-id": "200" } ] } }] } Exception : onos> onos> exception-display org.onosproject.yms.app.ydt.exceptions.YdtExceptions: Can't invoke get parent at logical root node. at org.onosproject.yms.app.ydt.YangRequestWorkBench.traverseToParent(YangRequestWorkBench.java:548) at org.onosproject.restconf.utils.parser.json.JsonToYdtListener.exitJsonNode(JsonToYdtListener.java:95) at org.onosproject.restconf.utils.parser.json.DefaultJsonWalker.walk(DefaultJsonWalker.java:117) at org.onosproject.restconf.utils.parser.json.DefaultJsonWalker.walk(DefaultJsonWalker.java:81) at org.onosproject.restconf.utils.parser.json.DefaultJsonWalker.walk(DefaultJsonWalker.java:56) at org.onosproject.restconf.utils.parser.json.ParserUtils.convertJsonToYdt(ParserUtils.java:101) at org.onosproject.restconf.restconfmgr.RestconfManager.doPostOperation(RestconfManager.java:106) at org.onosproject.restconf.rpp.RestconfWebResource.handlePostRequest(RestconfWebResource.java:125)[180:org.onosproject.onos-app-restconf-rpp:1.7.0.SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_101] at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)[136:org.glassfish.jersey.core.jersey-server:2.22.2] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)[136:org.glassfish.jersey.core.jersey-server:2.22.2] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)[136:org.glassfish.jersey.core.jersey-server:2.22.2] at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)[136:org.glassfish.jersey.core.jersey-server:2.22.2] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)[136:org.glassfish.jersey.core.jersey-server:2.22.2] at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)[136:org.glassfish.jersey.core.jersey-server:2.22.2] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)[136:org.glassfish.jersey.core.jersey-server:2.22.2] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)[136:org.glassfish.jersey.core.jersey-server:2.22.2] at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)[136:org.glassfish.jersey.core.jersey-server:2.22.2] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)[128:org.glassfish.jersey.core.jersey-common:2.22.2] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)[128:org.glassfish.jersey.core.jersey-common:2.22.2] at org.glassfish.jersey.internal.Errors.process(Errors.java:315)[128:org.glassfish.jersey.core.jersey-common:2.22.2] at org.glassfish.jersey.internal.Errors.process(Errors.java:297)[128:org.glassfish.jersey.core.jersey-common:2.22.2] at org.glassfish.jersey.internal.Errors.process(Errors.java:267)[128:org.glassfish.jersey.core.jersey-common:2.22.2] at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)[128:org.glassfish.jersey.core.jersey-common:2.22.2] at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[136:org.glassfish.jersey.core.jersey-server:2.22.2] at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[136:org.glassfish.jersey.core.jersey-server:2.22.2] at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)[142:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2] at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[142:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2] at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[142:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2] at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[142:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2] at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[142:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2] at org.e

    JIRA | 8 months ago | antony silvester
    org.onosproject.yms.app.ydt.exceptions.YdtExceptions: Can't invoke get parent at logical root node.

    Root Cause Analysis

    1. org.onosproject.yms.app.ydt.exceptions.YdtExceptions

      Can't invoke get parent at logical root node.

      at org.onosproject.yms.app.ydt.YangRequestWorkBench.traverseToParent()
    2. org.onosproject.yms
      YangRequestWorkBench.traverseToParent
      1. org.onosproject.yms.app.ydt.YangRequestWorkBench.traverseToParent(YangRequestWorkBench.java:548)
      1 frame
    3. org.onosproject.restconf
      RestconfWebResource.handlePostRequest
      1. org.onosproject.restconf.utils.parser.json.JsonToYdtListener.exitJsonNode(JsonToYdtListener.java:95)
      2. org.onosproject.restconf.utils.parser.json.DefaultJsonWalker.walk(DefaultJsonWalker.java:117)
      3. org.onosproject.restconf.utils.parser.json.DefaultJsonWalker.walk(DefaultJsonWalker.java:81)
      4. org.onosproject.restconf.utils.parser.json.DefaultJsonWalker.walk(DefaultJsonWalker.java:56)
      5. org.onosproject.restconf.utils.parser.json.ParserUtils.convertJsonToYdt(ParserUtils.java:101)
      6. org.onosproject.restconf.restconfmgr.RestconfManager.doPostOperation(RestconfManager.java:106)
      7. org.onosproject.restconf.rpp.RestconfWebResource.handlePostRequest(RestconfWebResource.java:125)[180:org.onosproject.onos-app-restconf-rpp:1.7.0.SNAPSHOT]
      7 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_101]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_101]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_101]
      4. java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_101]
      4 frames
    5. jersey-core-server
      ServerRuntime$2.run
      1. org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)[136:org.glassfish.jersey.core.jersey-server:2.22.2]
      2. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)[136:org.glassfish.jersey.core.jersey-server:2.22.2]
      3. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)[136:org.glassfish.jersey.core.jersey-server:2.22.2]
      4. org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)[136:org.glassfish.jersey.core.jersey-server:2.22.2]
      5. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)[136:org.glassfish.jersey.core.jersey-server:2.22.2]
      6. org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)[136:org.glassfish.jersey.core.jersey-server:2.22.2]
      7. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)[136:org.glassfish.jersey.core.jersey-server:2.22.2]
      8. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)[136:org.glassfish.jersey.core.jersey-server:2.22.2]
      9. org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)[136:org.glassfish.jersey.core.jersey-server:2.22.2]
      9 frames
    6. Jersey Core
      RequestScope.runInScope
      1. org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)[128:org.glassfish.jersey.core.jersey-common:2.22.2]
      2. org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)[128:org.glassfish.jersey.core.jersey-common:2.22.2]
      3. org.glassfish.jersey.internal.Errors.process(Errors.java:315)[128:org.glassfish.jersey.core.jersey-common:2.22.2]
      4. org.glassfish.jersey.internal.Errors.process(Errors.java:297)[128:org.glassfish.jersey.core.jersey-common:2.22.2]
      5. org.glassfish.jersey.internal.Errors.process(Errors.java:267)[128:org.glassfish.jersey.core.jersey-common:2.22.2]
      6. org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)[128:org.glassfish.jersey.core.jersey-common:2.22.2]
      6 frames
    7. jersey-core-server
      ApplicationHandler.handle
      1. org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[136:org.glassfish.jersey.core.jersey-server:2.22.2]
      2. org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[136:org.glassfish.jersey.core.jersey-server:2.22.2]
      2 frames
    8. jersey-container-servlet-core
      ServletContainer.service
      1. org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)[142:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
      2. org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)[142:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
      3. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)[142:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
      4. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)[142:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
      5. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)[142:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
      5 frames