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

GitHub | sabrinawilske | 6 days ago
  1. 0

    GitHub comment 30#271834685

    GitHub | 6 days ago | sabrinawilske
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected STRING but was BEGIN_OBJECT
  2. 0

    Failed to invoke clarifai2.dto.ClarifaiStatus() with no args

    GitHub | 3 months ago | hackable
    java.lang.RuntimeException: Failed to invoke clarifai2.dto.ClarifaiStatus() with no args
  3. 0

    GitHub comment 26#256641683

    GitHub | 3 months ago | hackable
    java.lang.RuntimeException: Failed to invoke clarifai2.dto.ClarifaiStatus() with no args
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Parsing Json from Gson

    Stack Overflow | 1 year ago | DMR
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  6. 0

    I want to convert my json object to my java onject using fromJson() of GSON

    Stack Overflow | 3 years ago | niranjandeshak
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapte rFactory.java:176)
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 STRING but was BEGIN_OBJECT

    at com.google.gson.internal.bind.JsonTreeReader.nextString()
  2. Gson
    Gson.fromJson
    1. com.google.gson.internal.bind.JsonTreeReader.nextString(JsonTreeReader.java:154)
    2. com.google.gson.internal.bind.TypeAdapters$EnumTypeAdapter.read(TypeAdapters.java:741)
    3. com.google.gson.internal.bind.TypeAdapters$EnumTypeAdapter.read(TypeAdapters.java:717)
    4. com.google.gson.Gson.fromJson(Gson.java:805)
    5. com.google.gson.Gson.fromJson(Gson.java:870)
    6. com.google.gson.Gson.fromJson(Gson.java:843)
    6 frames
  3. clarifai2.internal
    InternalUtil.fromJson
    1. clarifai2.internal.InternalUtil.fromJson(InternalUtil.java:145)
    1 frame
  4. clarifai2.dto.model
    ModelVersion$Adapter$1.deserialize
    1. clarifai2.dto.model.ModelVersion$Adapter$1.deserialize(ModelVersion.java:42)
    2. clarifai2.dto.model.ModelVersion$Adapter$1.deserialize(ModelVersion.java:31)
    2 frames
  5. clarifai2.internal
    JSONAdapterFactory$Adapter.read
    1. clarifai2.internal.JSONAdapterFactory$Adapter.read(JSONAdapterFactory.java:173)
    1 frame
  6. Gson
    Gson.fromJson
    1. com.google.gson.Gson.fromJson(Gson.java:805)
    2. com.google.gson.Gson.fromJson(Gson.java:870)
    3. com.google.gson.Gson.fromJson(Gson.java:843)
    3 frames
  7. clarifai2.internal
    InternalUtil.fromJson
    1. clarifai2.internal.InternalUtil.fromJson(InternalUtil.java:145)
    1 frame
  8. clarifai2.dto.model
    Model$Adapter$2.deserialize
    1. clarifai2.dto.model.Model$Adapter$2.deserialize(Model.java:211)
    2. clarifai2.dto.model.Model$Adapter$2.deserialize(Model.java:197)
    2 frames
  9. clarifai2.internal
    JSONAdapterFactory$Adapter.read
    1. clarifai2.internal.JSONAdapterFactory$Adapter.read(JSONAdapterFactory.java:173)
    1 frame
  10. Gson
    Gson.fromJson
    1. com.google.gson.Gson.fromJson(Gson.java:805)
    2. com.google.gson.Gson.fromJson(Gson.java:870)
    2 frames
  11. clarifai2.api.request
    ClarifaiRequest$Builder.executeSync
    1. clarifai2.api.request.model.GetModelRequest$1$1.fromJSON(GetModelRequest.java:34)
    2. clarifai2.api.request.model.GetModelRequest$1$1.fromJSON(GetModelRequest.java:32)
    3. clarifai2.api.request.ClarifaiRequest$Impl.executeSync(ClarifaiRequest.java:285)
    4. clarifai2.api.request.ClarifaiRequest$Builder.executeSync(ClarifaiRequest.java:192)
    4 frames
  12. clarifai2.dto.model
    DefaultModels$1.run
    1. clarifai2.dto.model.DefaultModels.update(DefaultModels.java:52)
    2. clarifai2.dto.model.DefaultModels.access$000(DefaultModels.java:10)
    3. clarifai2.dto.model.DefaultModels$1.run(DefaultModels.java:42)
    3 frames
  13. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    3. java.lang.Thread.run(Unknown Source)
    3 frames