com.openxc.messages.UnrecognizedMessageTypeException: Unable to parse JSON from "{"bus":1,"id":2016,"mode":17,"success":true,"pid":2,"payload":"0x030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f60616{"command_response":"diagnostic_request","status":true}": com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 260 path $.payload

GitHub | zacnelson | 2 months ago
  1. 0

    Large diagnostic response payloads cause JSON parsing error

    GitHub | 2 months ago | zacnelson
    com.openxc.messages.UnrecognizedMessageTypeException: Unable to parse JSON from "{"bus":1,"id":2016,"mode":17,"success":true,"pid":2,"payload":"0x030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f60616{"command_response":"diagnostic_request","status":true}": com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 260 path $.payload

    Root Cause Analysis

    1. com.openxc.messages.UnrecognizedMessageTypeException

      Unable to parse JSON from "{"bus":1,"id":2016,"mode":17,"success":true,"pid":2,"payload":"0x030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f60616{"command_response":"diagnostic_request","status":true}": com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 260 path $.payload

      at com.openxc.messages.formatters.JsonFormatter.deserialize()
    2. com.openxc.messages
      JsonStreamer.parseNextMessage
      1. com.openxc.messages.formatters.JsonFormatter.deserialize(JsonFormatter.java:87)
      2. com.openxc.messages.streamers.JsonStreamer.parseNextMessage(JsonStreamer.java:47)
      2 frames
    3. com.openxc.sources
      BytestreamDataSource.run
      1. com.openxc.sources.BytestreamDataSource.run(BytestreamDataSource.java:165)
      1 frame
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:818)
      1 frame