java.lang.ArrayIndexOutOfBoundsException: 1

JIRA | antony silvester | 3 months ago
  1. 0

    Test Steps: issue 1: exception while posting with body containing container ----------- POST 127.0.0.1:8181/onos/restconf/data/network { "name": "Huawei", "surname": "Bangalore", "network-path": { "source": "10.1.1.1" } } --- response ---- { "code": 500, "message": "1" } **************************************** ---- exception ------ ****************************************** onos> display 2016-09-07 18:16:08,417 | INFO | qtp1172809260-63 | RestconfWebResource | 175 - org.onosproject.onos-app-restconf-rpp - 1.7.0.SNAPSHOT | handlePostRequest: network 2016-09-07 18:16:08,418 | WARN | qtp1172809260-63 | ServerErrorMapper | 145 - org.onosproject.onlab-rest - 1.7.0.SNAPSHOT | Unhandled REST exception java.lang.ArrayIndexOutOfBoundsException: 1 at org.onosproject.restconf.utils.parser.json.JsonToYdtListener.enterJsonNode(JsonToYdtListener.java:58) at org.onosproject.restconf.utils.parser.json.DefaultJsonWalker.walk(DefaultJsonWalker.java:38) at org.onosproject.restconf.utils.parser.json.DefaultJsonWalker.walk(DefaultJsonWalker.java:76) at org.onosproject.restconf.utils.parser.json.DefaultJsonWalker.walk(DefaultJsonWalker.java:56) at org.onosproject.restconf.utils.parser.json.ParserUtils.convertJsonToYdt(ParserUtils.java:100) at org.onosproject.restconf.restconfmgr.RestconfManager.doPostOperation(RestconfManager.java:104) at org.onosproject.restconf.rpp.RestconfWebResource.handlePostRequest(RestconfWebResource.java:125)[175: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.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)[111:org.ops4j.pax.web.pax-web-jetty:3.2.6] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)[111:org.ops4j.pax.web.pax-web-jetty:3.2.6] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)[111:org.ops4j.pax.web.pax-web-jetty:3.2.6] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.server.Server.handle(Server.java:370)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415] at java.lang.Thread.run(Thread.java:745)[:1.8.0_101] *********************************** yang file ------------- module network { yang-version 1; namespace "urn:TBD:params:xml:ns:yang:nodes"; prefix nd; organization "TBD"; contact "WILL-BE-DEFINED-LATER"; description "This module defines a common base model for a collection of nodes in a network. Node definitions s are further used in network topologies and inventories."; revision 2014-03-09 { description "Initial revision."; reference "draft-clemm-i2rs-yang-network-topo-04"; } leaf name { type string; } leaf surname { type string; } leaf isHappy { type boolean; mandatory true; } list networklist { key "network-id"; leaf network-id { type string; } leaf server-provided { type string; } } container network-path { leaf source { type string; } leaf destination { type string; } } }

    JIRA | 3 months ago | antony silvester
    java.lang.ArrayIndexOutOfBoundsException: 1
  2. 0

    ArrayIndexOutOfBounds When Splitting String

    Stack Overflow | 4 years ago | n0shadow
    java.lang.ArrayIndexOutOfBoundsException: 1
  3. 0

    ArrayIndexOutOfBoundsException occurring when program running

    Stack Overflow | 4 years ago | dharma
    java.lang.ArrayIndexOutOfBoundsException: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Parsing Data from CSV to Array in Java

    Stack Overflow | 5 years ago
    java.lang.ArrayIndexOutOfBoundsException: 1
  6. 0

    Java Array index out og bounds Exception when getting input in java

    Stack Overflow | 4 years ago
    java.lang.ArrayIndexOutOfBoundsException: 1

    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.ArrayIndexOutOfBoundsException

      1

      at org.onosproject.restconf.utils.parser.json.JsonToYdtListener.enterJsonNode()
    2. org.onosproject.restconf
      RestconfWebResource.handlePostRequest
      1. org.onosproject.restconf.utils.parser.json.JsonToYdtListener.enterJsonNode(JsonToYdtListener.java:58)
      2. org.onosproject.restconf.utils.parser.json.DefaultJsonWalker.walk(DefaultJsonWalker.java:38)
      3. org.onosproject.restconf.utils.parser.json.DefaultJsonWalker.walk(DefaultJsonWalker.java:76)
      4. org.onosproject.restconf.utils.parser.json.DefaultJsonWalker.walk(DefaultJsonWalker.java:56)
      5. org.onosproject.restconf.utils.parser.json.ParserUtils.convertJsonToYdt(ParserUtils.java:100)
      6. org.onosproject.restconf.restconfmgr.RestconfManager.doPostOperation(RestconfManager.java:104)
      7. org.onosproject.restconf.rpp.RestconfWebResource.handlePostRequest(RestconfWebResource.java:125)[175:org.onosproject.onos-app-restconf-rpp:1.7.0.SNAPSHOT]
      7 frames
    3. 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
    4. 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
    5. 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
    6. 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
    7. 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
    8. Jetty
      ServletHandler.doHandle
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      2 frames
    9. OPS4J Pax Web - Jetty
      HttpServiceServletHandler.doHandle
      1. org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)[111:org.ops4j.pax.web.pax-web-jetty:3.2.6]
      1 frame
    10. Jetty
      ContextHandler.doHandle
      1. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      2. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      3. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      4. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      4 frames
    11. OPS4J Pax Web - Jetty
      HttpServiceContext.doHandle
      1. org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)[111:org.ops4j.pax.web.pax-web-jetty:3.2.6]
      1 frame
    12. Jetty
      ScopedHandler.handle
      1. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      2. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      3. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      4. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      4 frames
    13. OPS4J Pax Web - Jetty
      JettyServerHandlerCollection.handle
      1. org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)[111:org.ops4j.pax.web.pax-web-jetty:3.2.6]
      1 frame
    14. Jetty
      AsyncHttpConnection.handle
      1. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      2. org.eclipse.jetty.server.Server.handle(Server.java:370)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      3. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      4. org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      5. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      6. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      7. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      8. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      8 frames
    15. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      2 frames
    16. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[102:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
      2 frames
    17. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[:1.8.0_101]
      1 frame