com.google.gson.JsonSyntaxException

com.google.gson.stream.MalformedJsonException: Expected EOF at line 1 column 21

Samebug tips2

This means you had a syntax problem in your serialization/deserialization, check the Gson javadoc to check the right syntax: https://goo.gl/g7LnZb


rafaelrafael

This seems to be a bug in the-blue-alliance, fixed in version 4.2.3 (link for github in case you want the changelog: https://goo.gl/NQAKUf ). If you're not using it, it might be that you're parsing xml as json.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web280

Stack trace

  • com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected EOF at line 1 column 21 at com.google.gson.JsonParser.parse(JsonParser.java:65) at com.google.gson.JsonParser.parse(JsonParser.java:45) at com.rallydev.rest.response.Response.<init>(Response.java:25) at com.rallydev.rest.response.QueryResponse.<init>(QueryResponse.java:16) at com.rallydev.rest.RallyRestApi.query(RallyRestApi.java:179) at QueryExample.main(QueryExample.java:36) Caused by: com.google.gson.stream.MalformedJsonException: Expected EOF at line 1 column 21 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1298) at com.google.gson.stream.JsonReader.peek(JsonReader.java:390) at com.google.gson.JsonParser.parse(JsonParser.java:60) ... 5 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Unknown visitor
Unknown visitorOnce,
HandemelindoHandemelindo
6 times, last one
RajeshRajesh
2 times, last one
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
30 more bugmates