java.lang.IllegalStateException

Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web133

  • via Stack Overflow by Johji
    ,
  • Stack trace

    • java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $ at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:387) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:189) 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.google.gson.Gson.fromJson(Gson.java:696) at com.wenming.weiswift.entity.list.RetweetList.parse(RetweetList.java:49) at com.wenming.weiswift.mvp.model.imp.StatusDetailModelImp$3.onComplete(StatusDetailModelImp.java:103) at com.sina.weibo.sdk.net.AsyncWeiboRunner$RequestRunner.onPostExecute(AsyncWeiboRunner.java:152) at com.sina.weibo.sdk.net.AsyncWeiboRunner$RequestRunner.onPostExecute(AsyncWeiboRunner.java:1) at android.os.AsyncTask.finish(AsyncTask.java:651) at android.os.AsyncTask.access$500(AsyncTask.java:180) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5438) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    nasimknasimk
    2 times, last one
    serious2monkeysserious2monkeys
    Once,
    Stefan BrauneStefan Braune
    Once,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    32 more bugmates