com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: STRING expected, but met NAME Scopes: INSIDE_OBJECT>NAME>INSIDE_OBJECT Closed tags: Token: null Tokens queue: BEGIN_OBJECT, NAME, STRING, null Values queue: response, @name, test, null ```

GitHub | mlesikov | 3 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

    GitHub comment 11#26517670

    GitHub | 3 years ago | mlesikov
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: STRING expected, but met NAME Scopes: INSIDE_OBJECT>NAME>INSIDE_OBJECT Closed tags: Token: null Tokens queue: BEGIN_OBJECT, NAME, STRING, null Values queue: response, @name, test, null ```
  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

    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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 9#23889516

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

    Deserializing an array

    GitHub | 4 years ago | ssuukk
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: NAME expected, but met STRING

  1. Nikolay Rybak 12 times, last 2 days ago
  2. justCodeit 11 times, last 3 weeks ago
  3. filpgame 4 times, last 1 month ago
  4. Emrah Küçük 9 times, last 3 months ago
  5. linxiaolong 4 times, last 3 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: STRING expected, but met NAME Scopes: INSIDE_OBJECT>NAME>INSIDE_OBJECT Closed tags: Token: null Tokens queue: BEGIN_OBJECT, NAME, STRING, null Values queue: response, @name, test, null ```

    at com.google.gson.Gson.fromJson()
  2. Gson
    Gson.fromJson
    1. com.google.gson.Gson.fromJson(Gson.java:766)
    1 frame
  3. 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)
    3 frames
  4. com.evo.adm
    ListsTest.primitiveListIntSameName
    1. com.evo.adm.common.server.email.ListsTest.primitiveListIntSameName(ListsTest.java:232)
    1 frame
  5. Java RT
    DelegatingMethodAccessorImpl.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3 frames
  6. JUnit
    JUnitCore.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    5. org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    8. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    9. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    10. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    11. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    12. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    13. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    14. org.junit.runner.JUnitCore.run(JUnitCore.java:157)
    14 frames
  7. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:77)
    1 frame
  8. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
    2 frames
  9. Java RT
    NativeMethodAccessorImpl.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    2 frames
  10. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
    1 frame