java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $

GitHub | wenmingvs | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    【CrashLog】 WeiSwift 2016-08-04 09:49:03:494

    GitHub | 9 months ago | wenmingvs
    java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
  2. 0

    【CrashLog】 WeiSwift 2016-09-06 11:26:01:06

    GitHub | 8 months ago | wenmingvs
    java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
  3. 0

    How to parse a nested JSON in Java?

    Stack Overflow | 12 months ago | Johji
    java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Terminated input leaves inaccessible metrics behind

    GitHub | 3 years ago | kroepke
    java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 5
  6. 0

    sencha android packaging packager.json (on windows)

    Stack Overflow | 3 years ago | Mitch
    java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 9 column 26
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

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

    at com.google.gson.stream.JsonReader.beginObject()
  2. Gson
    Gson.fromJson
    1. com.google.gson.stream.JsonReader.beginObject(JsonReader.java:387)
    2. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:189)
    3. com.google.gson.Gson.fromJson(Gson.java:810)
    4. com.google.gson.Gson.fromJson(Gson.java:775)
    5. com.google.gson.Gson.fromJson(Gson.java:724)
    6. com.google.gson.Gson.fromJson(Gson.java:696)
    6 frames
  3. com.wenming.weiswift
    StatusDetailModelImp$4.onComplete
    1. com.wenming.weiswift.entity.list.RetweetList.parse(RetweetList.java:49)
    2. com.wenming.weiswift.mvp.model.imp.StatusDetailModelImp$4.onComplete(StatusDetailModelImp.java:137)
    2 frames
  4. com.sina.weibo
    AsyncWeiboRunner$RequestRunner.onPostExecute
    1. com.sina.weibo.sdk.net.AsyncWeiboRunner$RequestRunner.onPostExecute(AsyncWeiboRunner.java:152)
    2. com.sina.weibo.sdk.net.AsyncWeiboRunner$RequestRunner.onPostExecute(AsyncWeiboRunner.java:1)
    2 frames
  5. Android Platform
    ActivityThread.main
    1. android.os.AsyncTask.finish(AsyncTask.java:632)
    2. android.os.AsyncTask.access$600(AsyncTask.java:177)
    3. android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
    4. android.os.Handler.dispatchMessage(Handler.java:110)
    5. android.os.Looper.loop(Looper.java:193)
    6. android.app.ActivityThread.main(ActivityThread.java:5367)
    6 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:663)
    2 frames
  8. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame