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 | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Large diagnostic response payloads cause JSON parsing error

    GitHub | 6 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