com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

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

,
Expert tip

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.

Solutions on the web

via Mojang JIRA by Marcono1234, 1 year ago
com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1
via Mojang JIRA by Marcono1234, 1 year ago
com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1
via rivalrebels.com by Unknown author, 1 year ago
com.google.gson.stream.MalformedJsonException: Unterminated object at line 11 column 7
via GitHub by prodkid
, 2 years ago
com.google.gson.stream.MalformedJsonException: Expected ':' at line 1 column 8194
via qnundrum.com by Unknown author, 2 years ago
com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 8195
via GitHub by elfake100
, 2 years ago
com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 8198
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505)
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1386)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:572)
at com.google.gson.stream.JsonReader.peek(JsonReader.java:414)
at com.google.gson.internal.Streams.parse(Streams.java:42)
at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54)
at undefined.oc.a(SourceFile:501)
at undefined.oc.a(SourceFile:512)
at undefined.eu$a.a(SourceFile:205)
at undefined.ahc.b(SourceFile:69)
at undefined.apq.a(SourceFile:42)
at undefined.xx.m(SourceFile:140)
at undefined.ahm.a(SourceFile:1480)
at undefined.lp.a(SourceFile:719)
at undefined.ahm.g(SourceFile:1458)
at undefined.ahm.k(SourceFile:1348)
at undefined.lp.k(SourceFile:552)
at net.minecraft.server.MinecraftServer.D(SourceFile:624)
at undefined.bxw.C(SourceFile:154)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 day ago
9 times, 4 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.