com.fasterxml.jackson.core.JsonParseException: Unexpected character (':' (code 58)): was expecting comma to separate ARRAY entries at [Source: {"/onos/restconf":{"network":{"name":"Huawei","surname":"Bangalore","isHappy":"false","networklist":["network-id":"123","server-provided":"false"]}}}; line: 1, column: 115]

JIRA | antony silvester | 3 months ago
  1. 0

    Get operation throws exception with restconf server code. Exception occured only with LIST. Leaf works fine. Steps: 1] Please find the yang file. 2] YMS latest and restconf latest code Post operation : Post : http://127.0.01:8181/onos/restconf/data/network { "name": "Huawei", "surname": "Bangalore", "networklist": [{ "network-id": "123", "server-provided": "false" }] } Get operation : Exception in onos terminal. onos> com.fasterxml.jackson.core.JsonParseException: Unexpected character (':' (code 58)): was expecting comma to separate ARRAY entries at [Source: {"/onos/restconf":{"network":{"name":"Huawei","surname":"Bangalore","isHappy":"false","networklist":["network-id":"123","server-provided":"false"]}}}; line: 1, column: 115] at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1586) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:521) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:450) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._skipComma(ReaderBasedJsonParser.java:2204) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:632) at com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer.deserializeArray(JsonNodeDeserializer.java:264) at com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer.deserializeObject(JsonNodeDeserializer.java:227) at com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer.deserializeObject(JsonNodeDeserializer.java:224) at com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer.deserializeObject(JsonNodeDeserializer.java:224) at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:69) at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:15) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3789) at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:2324) at org.onosproject.restconf.utils.parser.json.DefaultJsonBuilder.getTreeNode(DefaultJsonBuilder.java:140) at org.onosproject.restconf.utils.parser.json.ParserUtils.convertYdtToJson(ParserUtils.java:102) at org.onosproject.restconf.restconfmgr.RestconfManager.doGetOperation(RestconfManager.java:95) at org.onosproject.restconf.rpp.RestconfWebResource.handleGetRequest(RestconfWebResource.java:73) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:267) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69) at org.eclipse.jetty.server.handler.ScopedHand

    JIRA | 3 months ago | antony silvester
    com.fasterxml.jackson.core.JsonParseException: Unexpected character (':' (code 58)): was expecting comma to separate ARRAY entries at [Source: {"/onos/restconf":{"network":{"name":"Huawei","surname":"Bangalore","isHappy":"false","networklist":["network-id":"123","server-provided":"false"]}}}; line: 1, column: 115]
  2. 0

    GATE / Mailing Lists

    sourceforge.net | 11 months ago
    com.fasterxml.jackson.core.JsonParseException: Unexpected end-of-input: expected close marker for OBJECT (from [Source: java.io.StringReader@...; line: 1, column: 0]) at [Source: java.io.StringReader@...; line: 1, column: 3]
  3. 0

    [ProcessBuffer] Unable to process event MessageEvent{raw=null, message=null}, sequence 6104949 java.lang.IllegalStateException: Failed to decompress the GELF message payload

    GitHub | 2 years ago | andreaconsadori
    com.fasterxml.jackson.core.JsonParseException: Unexpected character ('�' (code 65533 / 0xfffd)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: �D��I�ë���o�#B��@-��^E64L��%�V?�V��dx��T�r�0~��8c˲c�&��S�d�#�M��� �l( �ÙW��X9?m9��C<�~�o�]} 0V�� �D�����F�ؠ �$y2͢(JDg�p9�v��=Н��b������˪�+ B���˶'��D�������bJ�%»`ojX��s�R�A�[~P���6���=C8�▒▒�y�7Հ��UC���"E��0�<E!�Yz1 ���"Jx>O��w���ki�2�H��z_c��=�j�Ū�>� J��4�S~�^����l���րl�9�So��J����N���s�`��7c�l��b}6���>�-�N~%@c�f�ڂ��b�0Ӑ�a�&<M�"�äȲi�s�ˋ�����$L�$�p�� ����vR�#�r�����C��q�/�%�vʷ��AHβR�@ Ь�Hţ8 #�ŢL�R��Y�W���Iw���ܪ��젬�-z�o�:2_�������Z��[4�ʝ�|���k�c�~0�pȚs�q�1▒▒�T��h��d{��Pn����o��A�orXV��)�; line: 1, column: 2]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GELF over TCP error (0.20.0-rc.2)

    GitHub | 3 years ago | karlvlam
    com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 3)): only regular white space (\r, \n, \t) is allowed between tokens at [Source: java.io.StringReader@40dfb9a8; line: 1, column: 2]
  6. 0

    Plugin Crashes App on Android If Config-file Url Is Wrong

    GitHub | 11 months ago | johnmiroki
    com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title></title> <link href="css/style.css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="css/timeshaft/default.css" /> <link rel="stylesheet" type="text/css" href="css/timeshaft/component.css" /> <link href="lib/ionic/css/ionic.css" rel="stylesheet"> <link href="css/angular-chart.min.css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="css/pingan.css" /> <script src="lib/modernizr.custom.js"></script> <script data-main="js/main" src="lib/require.js"></script> <!-- <script src="cordova.js"></script> --> <script type="text/javascript"> // 调试代码 window.onerror = function(msg, url, line) { var idx = url.lastIndexOf("/"); alert("ERROR in " + url + " (line #" + line + "): " + msg); return false; }; </script> <div style="display:none"> <script src="http://s11.cnzz.com/z_stat.php?id=1257060790&web_id=1257060790" language="JavaScript"></script> </div> </head> <body style="max-width:750px"> <ion-nav-view></ion-nav-view> </body> </html> ; line: 1, column: 2]

  1. kid 1 times, last 4 weeks ago
  2. tyson925 2 times, last 4 months ago
  3. regisso 1 times, last 5 months ago
  4. pradhul 3 times, last 9 months ago
37 unregistered visitors
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. com.fasterxml.jackson.core.JsonParseException

    Unexpected character (':' (code 58)): was expecting comma to separate ARRAY entries at [Source: {"/onos/restconf":{"network":{"name":"Huawei","surname":"Bangalore","isHappy":"false","networklist":["network-id":"123","server-provided":"false"]}}}; line: 1, column: 115]

    at com.fasterxml.jackson.core.JsonParser._constructError()
  2. Jackson-core
    ReaderBasedJsonParser.nextToken
    1. com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1586)
    2. com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:521)
    3. com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:450)
    4. com.fasterxml.jackson.core.json.ReaderBasedJsonParser._skipComma(ReaderBasedJsonParser.java:2204)
    5. com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:632)
    5 frames
  3. Jackson
    ObjectMapper.readTree
    1. com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer.deserializeArray(JsonNodeDeserializer.java:264)
    2. com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer.deserializeObject(JsonNodeDeserializer.java:227)
    3. com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer.deserializeObject(JsonNodeDeserializer.java:224)
    4. com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer.deserializeObject(JsonNodeDeserializer.java:224)
    5. com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:69)
    6. com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:15)
    7. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3789)
    8. com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:2324)
    8 frames
  4. org.onosproject.restconf
    RestconfWebResource.handleGetRequest
    1. org.onosproject.restconf.utils.parser.json.DefaultJsonBuilder.getTreeNode(DefaultJsonBuilder.java:140)
    2. org.onosproject.restconf.utils.parser.json.ParserUtils.convertYdtToJson(ParserUtils.java:102)
    3. org.onosproject.restconf.restconfmgr.RestconfManager.doGetOperation(RestconfManager.java:95)
    4. org.onosproject.restconf.rpp.RestconfWebResource.handleGetRequest(RestconfWebResource.java:73)
    4 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  6. jersey-core-server
    ServerRuntime$2.run
    1. org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
    2. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
    3. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
    4. org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
    5. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
    6. org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
    7. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
    8. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
    9. org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)
    9 frames
  7. Jersey Core
    RequestScope.runInScope
    1. org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
    2. org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
    3. org.glassfish.jersey.internal.Errors.process(Errors.java:315)
    4. org.glassfish.jersey.internal.Errors.process(Errors.java:297)
    5. org.glassfish.jersey.internal.Errors.process(Errors.java:267)
    6. org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
    6 frames
  8. jersey-core-server
    ApplicationHandler.handle
    1. org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
    2. org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
    2 frames
  9. jersey-container-servlet-core
    ServletContainer.service
    1. org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)
    2. org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)
    3. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
    4. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)
    5. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)
    5 frames
  10. Jetty
    ServletHandler.doHandle
    1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
    2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
    2 frames
  11. OPS4J Pax Web - Jetty
    HttpServiceServletHandler.doHandle
    1. org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)
    1 frame