com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: BEGIN_OBJECT expected, but met STRING Scopes: INSIDE_OBJECT>NAME>INSIDE_OBJECT>INSIDE_EMBEDDED_ARRAY>INSIDE_OBJECT Closed tags: 'Class3'/3 Token: null Tokens queue: null Values queue: , null

GitHub | andrewgaul | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Deserializing with setSameNameLists(true) fails with JsonSyntaxException

    GitHub | 1 year ago | andrewgaul
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: BEGIN_OBJECT expected, but met STRING Scopes: INSIDE_OBJECT>NAME>INSIDE_OBJECT>INSIDE_EMBEDDED_ARRAY>INSIDE_OBJECT Closed tags: 'Class3'/3 Token: null Tokens queue: null Values queue: , null
  2. 0

    Installation Error - Hortonworks

    hortonworks.com | 1 year ago
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 3442
  3. 0

    JSON to POJO Using Gson

    Stack Overflow | 1 year ago | d4v1dv00
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 206022 path $.data[49].category
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 96 path

    Stack Overflow | 10 months ago | JoeKevin
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 96 path $.response.responses[0].response
  6. 0

    Gson Parsing error with salt-net-api

    Stack Overflow | 3 months ago | Nambi
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 147 path $.info[0].StartTime

  1. Emrah Küçük 9 times, last 2 months ago
  2. linxiaolong 4 times, last 2 months ago
  3. Indri Yunita 4 times, last 3 months ago
  4. nasimk 4 times, last 2 months ago
  5. Alexandru Popa 96 times, last 3 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. com.google.gson.JsonSyntaxException

    java.lang.IllegalStateException: BEGIN_OBJECT expected, but met STRING Scopes: INSIDE_OBJECT>NAME>INSIDE_OBJECT>INSIDE_EMBEDDED_ARRAY>INSIDE_OBJECT Closed tags: 'Class3'/3 Token: null Tokens queue: null Values queue: , null

    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read()
  2. Gson
    Gson.fromJson
    1. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)
    2. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
    3. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
    4. com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
    5. com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)
    6. com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
    7. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
    8. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
    9. com.google.gson.Gson.fromJson(Gson.java:795)
    9 frames
  3. com.stanfy.gsonxml
    ListsTest.testAclXml
    1. com.stanfy.gsonxml.GsonXml.fromXml(GsonXml.java:96)
    2. com.stanfy.gsonxml.GsonXml.fromXml(GsonXml.java:66)
    3. com.stanfy.gsonxml.GsonXml.fromXml(GsonXml.java:52)
    4. com.stanfy.gsonxml.GsonXml.fromXml(GsonXml.java:42)
    5. com.stanfy.gsonxml.test.ListsTest.testAclXml(ListsTest.java:303)
    5 frames