com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 2 column 1 path $

GitHub | fire | 2 months ago
  1. 0

    Unable to register Windows Agent to Linux server.

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

    Automated exception search integrated into your IDE

  5. 0

    Amy Mitchell - Google+

    google.com | 1 year ago
    com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: Expected an int but was 3.8 at line 1 column 200
  6. 0

    Android Exception in parsing a static json

    Stack Overflow | 7 months ago | Akshat Arora
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

  1. Indri Yunita 4 times, last 2 weeks ago
  2. nasimk 1 times, last 2 weeks ago
  3. Alexandru Popa 96 times, last 2 weeks ago
  4. iridic 6 times, last 3 weeks ago
  5. bmacedo 36 times, last 2 weeks ago
14 more registered users
52 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 line 2 column 1 path $

    at com.google.gson.stream.JsonReader.beginObject()
  2. Gson
    Gson.fromJson
    1. com.google.gson.stream.JsonReader.beginObject(JsonReader.java:387)
    2. com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:183)
    3. com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145)
    4. com.google.gson.Gson.fromJson(Gson.java:810)
    5. com.google.gson.Gson.fromJson(Gson.java:775)
    6. com.google.gson.Gson.fromJson(Gson.java:724)
    7. com.google.gson.Gson.fromJson(Gson.java:696)
    7 frames
  3. com.thoughtworks.go
    AgentController.loop
    1. com.thoughtworks.go.security.RegistrationJSONizer.fromJson(RegistrationJSONizer.java:49)
    2. com.thoughtworks.go.agent.service.SslInfrastructureService$RemoteRegistrationRequester.readResponse(SslInfrastructureService.java:190)
    3. com.thoughtworks.go.agent.service.SslInfrastructureService$RemoteRegistrationRequester.requestRegistration(SslInfrastructureService.java:182)
    4. com.thoughtworks.go.agent.service.SslInfrastructureService.register(SslInfrastructureService.java:103)
    5. com.thoughtworks.go.agent.service.SslInfrastructureService.registerIfNecessary(SslInfrastructureService.java:87)
    6. com.thoughtworks.go.agent.AgentController.rpcLoop(AgentController.java:181)
    7. com.thoughtworks.go.agent.AgentController.loop(AgentController.java:173)
    7 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    3. java.lang.reflect.Method.invoke(Unknown Source)
    3 frames
  5. Spring Core
    MethodInvoker.invoke
    1. org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
    1 frame
  6. Spring Context
    DelegatingTimerTask.run
    1. org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:65)
    2. org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)
    2 frames
  7. Java RT
    TimerThread.run
    1. java.util.TimerThread.mainLoop(Unknown Source)
    2. java.util.TimerThread.run(Unknown Source)
    2 frames