com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: BEGIN_OBJECT expected, but met STRING

GitHub | jedwards1211 | 4 years 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

    GsonXml with setSameNameLists(true) throws exception when deserializing empty list nodes

    GitHub | 4 years ago | jedwards1211
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: BEGIN_OBJECT expected, but met STRING
  2. 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
  3. 0

    GitHub comment 9#23889516

    GitHub | 4 years ago | ssuukk
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: NAME expected, but met BEGIN_OBJECT
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Deserializing an array

    GitHub | 4 years ago | ssuukk
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: NAME expected, but met STRING
  6. 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

    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

      BEGIN_OBJECT expected, but met STRING

      at com.stanfy.gsonxml.XmlReader.expect()
    2. com.stanfy.gsonxml
      XmlReader.beginObject
      1. com.stanfy.gsonxml.XmlReader.expect(XmlReader.java:137)
      2. com.stanfy.gsonxml.XmlReader.beginObject(XmlReader.java:143)
      2 frames
    3. Gson
      Gson.fromJson
      1. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:165)
      2. com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
      3. com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)
      4. com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
      5. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
      6. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
      7. com.google.gson.Gson.fromJson(Gson.java:803)
      7 frames
    4. com.stanfy.gsonxml
      GsonXml.fromXml
      1. com.stanfy.gsonxml.GsonXml.fromXml(GsonXml.java:92)
      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)
      4 frames
    5. com.cybertrader.master
      GsonXmlTest.main
      1. com.cybertrader.master.message.fixml2.GsonXmlTest.main(GsonXmlTest.java:31)
      1 frame