java.lang.RuntimeException: retrofit.converter.ConversionException: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

Stack Overflow | Zidane | 5 months ago
  1. 0

    How to solve retrofit Conversion Exception when converting to json string

    Stack Overflow | 5 months ago | Zidane
    java.lang.RuntimeException: retrofit.converter.ConversionException: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  2. 0

    IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path

    GitHub | 1 year ago | FHellmann
    java.lang.RuntimeException: retrofit.converter.ConversionException: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  3. 0

    pragati sharma - Google+

    google.com | 9 months ago
    java.lang.RuntimeException: retrofit.converter.ConversionException: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    There is no Ghost Blog at {blogUrl}

    GitHub | 8 months ago | charany1
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  6. 0

    There is no Ghost Blog at {blogUrl}

    GitHub | 8 months ago | charany1
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

  1. iridic 6 times, last 4 weeks ago
  2. Indri Yunita 4 times, last 2 weeks ago
  3. nasimk 1 times, last 2 weeks ago
  4. Alexandru Popa 96 times, last 2 weeks ago
  5. bmacedo 36 times, last 2 weeks ago
14 more registered users
52 unregistered visitors
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 STRING at line 1 column 1 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)
    4 frames
  3. Retrofit
    RetrofitError.getBodyAs
    1. retrofit.converter.GsonConverter.fromBody(GsonConverter.java:63)
    2. retrofit.RetrofitError.getBodyAs(RetrofitError.java:137)
    2 frames
  4. com.xera.deviceinsight
    AppTimeUsageRecorder$2.failure
    1. com.xera.deviceinsight.structs.AppTimeUsageRecorder$2.failure(AppTimeUsageRecorder.java:163)
    1 frame
  5. Retrofit
    CallbackRunnable$2.run
    1. retrofit.CallbackRunnable$2.run(CallbackRunnable.java:53)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.os.Handler.handleCallback(Handler.java:730)
    2. android.os.Handler.dispatchMessage(Handler.java:92)
    3. android.os.Looper.loop(Looper.java:176)
    4. android.app.ActivityThread.main(ActivityThread.java:5419)
    4 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:525)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
    2 frames
  9. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame