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 spigotmc.org by Unknown author, 1 year ago
com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1
via Stack Overflow by MichalN
, 2 years ago
com.google.gson.stream.MalformedJsonException: Expected ':' at line 7 column 11
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 minecraft-france.fr by Unknown author, 2 years ago
com.google.gson.stream.MalformedJsonException: Unterminated object at line 7 column 134
via planetminecraft.com by Unknown author, 1 year ago
com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 3
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 net.minecraft.server.v1_9_R1.ChatDeserializer.a(SourceFile:501)
at net.minecraft.server.v1_9_R1.ChatDeserializer.a(SourceFile:512)
at net.minecraft.server.v1_9_R1.IChatBaseComponent$ChatSerializer.a(SourceFile:205)
at me.clip.deluxechat.compatibility.Spigot_1_9_R1_Chat.sendBungeeChat(Spigot_1_9_R1_Chat.java:160)
at me.clip.deluxechat.bungee.BungeeMessageListener.onPluginMessageReceived(BungeeMessageListener.java:39)
at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java:2486)
at net.minecraft.server.v1_9_R1.PacketPlayInCustomPayload.a(SourceFile:58)
at net.minecraft.server.v1_9_R1.PacketPlayInCustomPayload.a(SourceFile:8)
at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45)
at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:721)
at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400)
at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660)
at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559)
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, 12 hours ago
9 times, 4 months ago

Write tip

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