java.lang.IllegalStateException: Expected an int but was BOOLEAN at line 1 column 201 path $[0].createTime

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

Solutions on the web

via qcloud.com by Unknown author, 1 year ago
Expected an int but was BOOLEAN at line 1 column 201 path $[0].createTime
via Atlassian JIRA by Pavel Baranchikov, 1 year ago
Expected an int but was BEGIN_OBJECT at line 1 column 26 path $.testResult.fCount
java.lang.IllegalStateException: Expected an int but was BOOLEAN at line 1 column 201 path $[0].createTime
at com.google.gson.stream.JsonReader.nextInt(JsonReader.java:1200)
at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:239)
at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:231)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:103)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:196)
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.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 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)

Users with the same issue

9 times, 1 year ago
2 times, 1 year ago

Write tip

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