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 mark.jon
, 1 year ago
java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1
via GitHub by alitong
, 7 months ago
java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY at line 1 column 53 path $.
via Stack Overflow by Bolic
, 2 years ago
java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2
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 GitHub by hmspain
, 1 year ago
Expected a com.g oogle.gson.JsonObject but was com.google.gson.JsonPrimitive at
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1	at com.google.gson.Gson.fromJson(Gson.java:815)	at com.google.gson.Gson.fromJson(Gson.java:768)	at com.google.gson.Gson.fromJson(Gson.java:717)	at com.kosalgeek.android.json.JsonConverter.toArrayList(JsonConverter.java:42)	at markjon.nobleza.qaldi.Table.onResponse(Table.java:51)	at markjon.nobleza.qaldi.Table.onResponse(Table.java:20)