com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING

GitHub | rminchev1 | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Adding an exec task throws an exception on the server

    GitHub | 7 months ago | rminchev1
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING
  2. 0

    Cannot parse hover results

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

    Editing Config

    GitHub | 6 years ago | lmk-chris
    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: invalid number or unquoted string near ?{ "colorMember": "G
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Retrofit - removing some invalid characters from response body before parsing it as json

    Stack Overflow | 2 years ago | pomber
    retrofit.RetrofitError: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1
  6. 0

    Async task's messages exchange with Java Servlet

    Stack Overflow | 2 years ago
    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 692 path $

  1. Emrah Küçük 9 times, last 2 months ago
  2. linxiaolong 4 times, last 2 months ago
  3. Indri Yunita 4 times, last 3 months ago
  4. nasimk 4 times, last 2 months ago
  5. Alexandru Popa 96 times, last 3 months ago
16 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. java.lang.IllegalStateException

    Expected BEGIN_ARRAY but was STRING

    at com.google.gson.internal.bind.JsonTreeReader.expect()
  2. Gson
    Gson.fromJson
    1. com.google.gson.internal.bind.JsonTreeReader.expect(JsonTreeReader.java:139)
    2. com.google.gson.internal.bind.JsonTreeReader.beginArray(JsonTreeReader.java:58)
    3. com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:80)
    4. com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
    5. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:116)
    6. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:216)
    7. com.google.gson.Gson.fromJson(Gson.java:879)
    8. com.google.gson.Gson.fromJson(Gson.java:944)
    8 frames
  3. net.hawkengine.core
    TaskDefinitionAdapter.deserialize
    1. net.hawkengine.core.utilities.deserializers.TaskDefinitionAdapter.deserialize(TaskDefinitionAdapter.java:53)
    2. net.hawkengine.core.utilities.deserializers.TaskDefinitionAdapter.deserialize(TaskDefinitionAdapter.java:25)
    2 frames
  4. Gson
    Gson.fromJson
    1. com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58)
    2. com.google.gson.Gson.fromJson(Gson.java:879)
    3. com.google.gson.Gson.fromJson(Gson.java:844)
    4. com.google.gson.Gson.fromJson(Gson.java:793)
    5. com.google.gson.Gson.fromJson(Gson.java:765)
    5 frames
  5. net.hawkengine.ws
    WsEndpoint.onWebSocketText
    1. net.hawkengine.ws.WsEndpoint.call(WsEndpoint.java:144)
    2. net.hawkengine.ws.WsEndpoint.onWebSocketText(WsEndpoint.java:87)
    2 frames
  6. Jetty
    SelectChannelEndPoint$2.run
    1. org.eclipse.jetty.websocket.common.events.JettyListenerEventDriver.onTextMessage(JettyListenerEventDriver.java:189)
    2. org.eclipse.jetty.websocket.common.message.SimpleTextMessage.messageComplete(SimpleTextMessage.java:69)
    3. org.eclipse.jetty.websocket.common.events.AbstractEventDriver.appendMessage(AbstractEventDriver.java:66)
    4. org.eclipse.jetty.websocket.common.events.JettyListenerEventDriver.onTextFrame(JettyListenerEventDriver.java:158)
    5. org.eclipse.jetty.websocket.common.events.AbstractEventDriver.incomingFrame(AbstractEventDriver.java:162)
    6. org.eclipse.jetty.websocket.common.WebSocketSession.incomingFrame(WebSocketSession.java:367)
    7. org.eclipse.jetty.websocket.common.extensions.AbstractExtension.nextIncomingFrame(AbstractExtension.java:176)
    8. org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtension.nextIncomingFrame(PerMessageDeflateExtension.java:105)
    9. org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.forwardIncoming(CompressExtension.java:142)
    10. org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtension.incomingFrame(PerMessageDeflateExtension.java:85)
    11. org.eclipse.jetty.websocket.common.extensions.ExtensionStack.incomingFrame(ExtensionStack.java:220)
    12. org.eclipse.jetty.websocket.common.Parser.notifyFrame(Parser.java:220)
    13. org.eclipse.jetty.websocket.common.Parser.parse(Parser.java:256)
    14. org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.readParse(AbstractWebSocketConnection.java:675)
    15. org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:505)
    16. org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
    17. org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
    18. org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
    18 frames
  7. org.eclipse.jetty
    ExecuteProduceConsume.run
    1. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)
    2. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)
    2 frames
  8. Jetty
    QueuedThreadPool$3.run
    1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
    2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
    2 frames
  9. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame