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

GitHub | mickaelistria | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    GitHub comment 23#235905481

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

    GSON deserialization going wrong: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $

    Stack Overflow | 1 year ago | Charlotte1993
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
  3. 0

    Cant get the corect gson response kitkat devices

    Stack Overflow | 10 months ago | swaroop
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    PingHandler IllegalStateException when pinging 1.7.10 mod server

    GitHub | 9 months ago | Brian-Graham
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 2 path $
  6. 0

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

    Stack Overflow | 3 years ago | bourbaki4481472
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1

  1. iridic 59 times, last 3 months ago
  2. th3teacher 1 times, last 6 months ago
  3. ank_07 27 times, last 6 months ago
  4. Stefan Braune 2 times, last 7 months ago
  5. Diogo Jaym 4 times, last 8 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