io.typefox.lsapi.services.json.InvalidMessageException: Could not parse response: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING

GitHub | mickaelistria | 4 months ago
  1. 0

    GitHub comment 23#235905481

    GitHub | 4 months ago | mickaelistria
    io.typefox.lsapi.services.json.InvalidMessageException: Could not parse response: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING
  2. 0

    Trying to read JSON (using GSON) into an Object which has another object as a field.

    Stack Overflow | 2 years ago | bourbaki4481472
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 104#137788599

    GitHub | 1 year ago | mchugh19
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY at line 1 column 79 path $.info[0].Target
  6. 0

    Error when retrieve a blog's followers

    GitHub | 3 years ago | phathvu
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected NUMBER but was BOOLEAN

  1. iridic 59 times, last 1 week ago
  2. th3teacher 1 times, last 3 months ago
  3. ank_07 27 times, last 3 months ago
  4. Stefan Braune 2 times, last 4 months ago
  5. Diogo Jaym 4 times, last 6 months ago
5 more registered users
3 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. java.lang.IllegalStateException

    Expected BEGIN_OBJECT but was STRING

    at com.google.gson.internal.bind.JsonTreeReader.expect()
  2. Gson
    ReflectiveTypeAdapterFactory$Adapter.read
    1. com.google.gson.internal.bind.JsonTreeReader.expect(JsonTreeReader.java:139)
    2. com.google.gson.internal.bind.JsonTreeReader.beginObject(JsonTreeReader.java:70)
    3. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:210)
    3 frames
  3. io.typefox.lsapi
    CollectionTypeAdapterFactory$Adapter.read
    1. io.typefox.lsapi.services.json.adapters.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.xtend:29)
    2. io.typefox.lsapi.services.json.adapters.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.xtend:67)
    3. io.typefox.lsapi.services.json.adapters.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.xtend)
    3 frames
  4. Gson
    Gson.fromJson
    1. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:117)
    2. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:217)
    3. com.google.gson.Gson.fromJson(Gson.java:861)
    4. com.google.gson.Gson.fromJson(Gson.java:926)
    5. com.google.gson.Gson.fromJson(Gson.java:899)
    5 frames
  5. io.typefox.lsapi
    LanguageServerProtocol$IOHandler.run
    1. io.typefox.lsapi.services.json.MessageJsonHandler.parseResponse(MessageJsonHandler.xtend:210)
    2. io.typefox.lsapi.services.json.MessageJsonHandler.parseMessage(MessageJsonHandler.xtend:160)
    3. io.typefox.lsapi.services.json.MessageJsonHandler.parseMessage(MessageJsonHandler.xtend:149)
    4. io.typefox.lsapi.services.json.LanguageServerProtocol.handleMessage(LanguageServerProtocol.xtend:72)
    5. io.typefox.lsapi.services.json.LanguageServerProtocol$IOHandler.handleMessage(LanguageServerProtocol.xtend:267)
    6. io.typefox.lsapi.services.json.LanguageServerProtocol$IOHandler.run(LanguageServerProtocol.xtend:203)
    7. io.typefox.lsapi.services.json.LanguageServerProtocol$IOHandler.run(LanguageServerProtocol.xtend:163)
    7 frames
  6. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    5. java.lang.Thread.run(Thread.java:745)
    5 frames