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 qcloud.com by Unknown author, 1 year ago
java.lang.IllegalStateException: Expected an int but was BOOLEAN at line 1 column 201 path $[0].createTime
via GitHub by tugbabodrumlu
, 2 years ago
java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 92
via GitHub by jeffpk62
, 1 year ago
java.lang.IllegalStateException: Expected STRING but was BEGIN_ARRAY
via Stack Overflow by ddawng.quang
, 11 months ago
java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY at line 1 column 11 path $[0].tags
via GitHub by phathvu
, 2 years ago
java.lang.IllegalStateException: Expected NUMBER but was BOOLEAN
via GitHub by gregoryenriquez
, 7 months ago
java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 724 path $[0].caption
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected an int but was BOOLEAN at line 1 column 201 path $[0].createTime	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:200)	at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)	at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)	at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)	at com.google.gson.Gson.fromJson(Gson.java:810)	at com.google.gson.Gson.fromJson(Gson.java:775)	at com.google.gson.Gson.fromJson(Gson.java:724)	at com.tencent.qcloud.suixinbo.presenters.OKhttpHelper.getLiveList(OKhttpHelper.java:183)	at com.tencent.qcloud.suixinbo.presenters.LiveListViewHelper$GetLiveListTask.doInBackground(LiveListViewHelper.java:43)	at com.tencent.qcloud.suixinbo.presenters.LiveListViewHelper$GetLiveListTask.doInBackground(LiveListViewHelper.java:39)	at android.os.AsyncTask$2.call(AsyncTask.java:295)	at java.util.concurrent.FutureTask.run(FutureTask.java:237)	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)	at java.lang.Thread.run(Thread.java:818)