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

  1. ,

    Your json input might be invalid. Try checking it in a validator like https://jsonlint.com

  2. ,

    Your custom gson deserializer might have a bug. Try to write a unit test that checks proper deserialization of only that class by forging a json that contains a single field of that type.

Solutions on the web

via Stack Overflow by Nguyễn Thị Bình An
, 1 year ago
com.google.gson.stream.MalformedJsonException: Unterminated array at line 1 column 30 path $[0].question[1]
via Stack Overflow by Kayvar
, 1 year ago
java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 186 path $.
via Stack Overflow by Adam Law
, 2 years ago
java.io.EOFException: End of input at line 1 column 71
via Stack Overflow by Bolic
, 2 years ago
java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2
via GitHub by seanford
, 1 year ago
Expected a com.g oogle.gson.JsonObject but was com.google.gson.JsonPrimitive at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.jav a:917) at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(Type
via GitHub by hmspain
, 1 year ago
com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.jav a:917) at
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated array at line 1 column 30 path $[0].question[1]	at com.google.gson.Gson.fromJson(Gson.java:902)	at com.google.gson.Gson.fromJson(Gson.java:852)	at com.google.gson.Gson.fromJson(Gson.java:801)	at svmc.anthao.MainActivity$1.onPostExecute(MainActivity.java:49)	at svmc.anthao.MainActivity$1.onPostExecute(MainActivity.java:36)	at android.os.AsyncTask.finish(AsyncTask.java:632)	at android.os.AsyncTask.access$600(AsyncTask.java:177)	at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)	at android.os.Handler.dispatchMessage(Handler.java:102)	at android.os.Looper.loop(Looper.java:149)	at android.app.ActivityThread.main(ActivityThread.java:5268)	at java.lang.reflect.Method.invokeNative(Native Method)	at java.lang.reflect.Method.invoke(Method.java:515)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)	at dalvik.system.NativeStart.main(Native Method)