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

GitHub | ssuukk | 3 years ago
  1. 0

    GitHub comment 9#23889516

    GitHub | 3 years ago | ssuukk
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: NAME expected, but met BEGIN_OBJECT
  2. 0

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

    GitHub | 3 years ago | jedwards1211
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: BEGIN_OBJECT expected, but met STRING
  3. 0

    Deserializing an array

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

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    Gson .JsonSyntaxException - java.lang.NumberFormatException: Invalid double: ""

    Stack Overflow | 2 years ago | Artem Shevchenko
    com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: Invalid double: ""

    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

      NAME expected, but met STRING

      at com.stanfy.gsonxml.XmlReader.expect()
    2. com.stanfy.gsonxml
      XmlReader.nextName
      1. com.stanfy.gsonxml.XmlReader.expect(XmlReader.java:137)
      2. com.stanfy.gsonxml.XmlReader.nextName(XmlReader.java:338)
      2 frames
    3. Gson
      Gson.fromJson
      1. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:167)
      2. com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
      3. com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:72)
      4. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
      5. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
      6. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
      7. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
      8. com.google.gson.Gson.fromJson(Gson.java:795)
      8 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. pl.qus.xenoamp
      Jxml.Deserialize
      1. pl.qus.xenoamp.helper.Jxml.Deserialize(Jxml.java:28)
      1 frame
    6. pl.qus.musicbrainz
      MBParser.test
      1. pl.qus.musicbrainz.MBParser.test(MBParser.java:181)
      1 frame
    7. pl.qus.xenoamp
      XenoAmp$Testowy.run
      1. pl.qus.xenoamp.XenoAmp$Testowy.run(XenoAmp.java:162)
      1 frame
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:856)
      1 frame