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

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 minecraftuser.jp by Unknown author, 1 year ago
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 2
via hobbelcraft.nl by Unknown author, 1 year ago
java.lang.IndexOutOfBoundsException: readerIndex(1) + length(66) exceeds writerIndex(64): UnpooledHeapByteBuf(ridx: 1, widx: 64, cap: 64)
via GitHub by Misat11
, 1 year ago
java.lang.IndexOutOfBoundsException: readerIndex(1) + length(77) exceeds writerIndex(63): UnpooledHeapByteBuf(ridx: 1, widx: 63, cap: 63)
via Stack Overflow by kks
, 2 years ago
java.lang.IndexOutOfBoundsException: Index: 7, Size: 1
via GitHub by shaharco
, 1 year ago
java.util.concurrent.ExecutionException: org.redisson.client.RedisTimeoutException: Redis server response timeout (5000 ms) occured for command: (EVAL) with params: [local value = redis.call('hget', KEYS[1], ARGV[2]); if value == false then return
via Stack Overflow by Asif Billa
, 6 months ago
request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
java.util.concurrent.ExecutionException: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 2
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:560)
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.og.a(SourceFile:501)
at undefined.og.a(SourceFile:512)
at undefined.ey$a.a(SourceFile:205)
at undefined.arc.a(SourceFile:111)
at undefined.bll.a(SourceFile:631)
at undefined.gt.a(SourceFile:96)
at undefined.gt.a(SourceFile:18)
at undefined.fl$1.run(SourceFile:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at undefined.h.a(SourceFile:45)
at undefined.bcx.av(SourceFile:960)
at undefined.bcx.a(SourceFile:396)

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
9 times, 4 months ago
Once, 5 months ago
30 more bugmates

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