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

GitHub | JeffreyCA | 8 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

    GSON Error

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

    Error sometimes when pinging the server

    GitHub | 7 months ago | Eufranio
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 2 path $
  3. 0

    Expected BEGIN_OBJECT but was STRING

    GitHub | 5 months ago | Eufranio
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 2 path $
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Editing Config

    GitHub | 6 years ago | lmk-chris
    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: invalid number or unquoted string near ?{ "colorMember": "G
  6. 0

    Outputting parsed JSON results from Google Custom Search in Java

    Stack Overflow | 3 years ago | gwar666
    com.google.gson.JsonSyntaxException: java.io.EOFException: End of input at line 1 column 2

  1. Nikolay Rybak 9 times, last 3 weeks ago
  2. justCodeit 11 times, last 2 months ago
  3. filpgame 4 times, last 2 months ago
  4. Emrah Küçük 9 times, last 4 months ago
  5. linxiaolong 4 times, last 4 months ago
19 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. com.google.gson.JsonSyntaxException

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

    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read()
  2. Gson
    Gson.fromJson
    1. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:224)
    2. com.google.gson.Gson.fromJson(Gson.java:887)
    3. com.google.gson.Gson.fromJson(Gson.java:852)
    4. com.google.gson.Gson.fromJson(Gson.java:801)
    5. com.google.gson.Gson.fromJson(Gson.java:773)
    5 frames
  3. com.anupcowkur.reservoir
    Reservoir.get
    1. com.anupcowkur.reservoir.Reservoir.get(Reservoir.java:176)
    1 frame