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

  1. 0

    error in retrofit response json

    Stack Overflow | 1 week ago | Parth Panchal
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  2. 0

    Android: java.text.ParseException: Unparseable date

    Stack Overflow | 2 months ago | Barrier
    com.google.gson.JsonSyntaxException: 1989-10-11
  3. 0

    Gson conversion to Json with two date format is not working

    Stack Overflow | 2 months ago | Barrier
    com.google.gson.JsonParseException: Unparseable date: "1478880594000". Supported formats: [yyyy-MM-dd'T'HH:mm:ss, yyyy-MM-dd]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path

    Stack Overflow | 2 months ago | Theo
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
  6. 0

    Android- Caused by: java.text.ParseException: Unparseable date:

    Stack Overflow | 2 months ago | Barrier
    com.google.gson.JsonSyntaxException: 1478871293000

  1. Emrah Küçük 9 times, last 1 month ago
  2. linxiaolong 4 times, last 1 month ago
  3. Indri Yunita 4 times, last 2 months ago
  4. nasimk 4 times, last 2 weeks ago
  5. Alexandru Popa 96 times, last 2 months ago
16 more registered users
53 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:210)
    3. com.google.gson.Gson.fromJson(Gson.java:814)
    4. com.google.gson.Gson.fromJson(Gson.java:779)
    4 frames
  3. Retrofit
    OkHttpCall$1.onResponse
    1. retrofit.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:36)
    2. retrofit.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:24)
    3. retrofit.OkHttpCall.parseResponse(OkHttpCall.java:148)
    4. retrofit.OkHttpCall.access$100(OkHttpCall.java:29)
    5. retrofit.OkHttpCall$1.onResponse(OkHttpCall.java:94)
    5 frames
  4. OkHttp
    NamedRunnable.run
    1. com.squareup.okhttp.Call$AsyncCall.execute(Call.java:168)
    2. com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
    2 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    3. java.lang.Thread.run(Thread.java:818)
    3 frames