com.google.gson.JsonParseException: Expecting array but found object: {}

GitHub | robinsonbonilha | 8 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 308#229690574

    GitHub | 8 months ago | robinsonbonilha
    com.google.gson.JsonParseException: Expecting array but found object: {}
  2. 0

    [speech-to-text] recognize() method without sessions failing with JsonParseException

    GitHub | 9 months ago | jeffpk62
    com.google.gson.JsonParseException: Expecting array but found object: {}
  3. 0

    google-gson vs Jackson

    Google Groups | 6 years ago | t02i288a
    com.google.gson.JsonParseException: Expecting array but found object: java.lang.Object@cf5ac5
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    crash with embeded "

    GitHub | 2 years ago | GoogleCodeExporter
    com.google.gson.JsonParseException: Failed parsing JSON source: java.io.StringReader@380e28b9 to Json
  6. 0

    JsonParseException: The JsonDeserializer com.google.gson.DefaultTypeAdapters while running google places api

    Stack Overflow | 2 years ago | Kamini
    com.google.gson.JsonParseException: The JsonDeserializer com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter@356dd6e9 failed to deserialized json object {"geometry":{"location":{"lat":-33.8599827,"lng":151.2021282}}} given the type com.google.gson.ParameterizedTypeImpl@53b59b06

  1. linxiaolong 5 times, last 2 months ago
7 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. com.google.gson.JsonParseException

    Expecting array but found object: {}

    at com.google.gson.JsonArrayDeserializationVisitor.startVisitingObject()
  2. Gson
    Gson.fromJson
    1. com.google.gson.JsonArrayDeserializationVisitor.startVisitingObject(JsonArrayDeserializationVisitor.java:89)
    2. com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:119)
    3. com.google.gson.JsonDeserializationContextDefault.fromJsonArray(JsonDeserializationContextDefault.java:67)
    4. com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:52)
    5. com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter.deserialize(DefaultTypeAdapters.java:663)
    6. com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter.deserialize(DefaultTypeAdapters.java:624)
    7. com.google.gson.JsonDeserializerExceptionWrapper.deserialize(JsonDeserializerExceptionWrapper.java:51)
    8. com.google.gson.JsonDeserializationVisitor.invokeCustomDeserializer(JsonDeserializationVisitor.java:92)
    9. com.google.gson.JsonObjectDeserializationVisitor.visitFieldUsingCustomHandler(JsonObjectDeserializationVisitor.java:117)
    10. com.google.gson.ReflectingFieldNavigator.visitFieldsReflectively(ReflectingFieldNavigator.java:63)
    11. com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:120)
    12. com.google.gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationContextDefault.java:76)
    13. com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:54)
    14. com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter.deserialize(DefaultTypeAdapters.java:663)
    15. com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter.deserialize(DefaultTypeAdapters.java:624)
    16. com.google.gson.JsonDeserializerExceptionWrapper.deserialize(JsonDeserializerExceptionWrapper.java:51)
    17. com.google.gson.JsonDeserializationVisitor.invokeCustomDeserializer(JsonDeserializationVisitor.java:92)
    18. com.google.gson.JsonObjectDeserializationVisitor.visitFieldUsingCustomHandler(JsonObjectDeserializationVisitor.java:117)
    19. com.google.gson.ReflectingFieldNavigator.visitFieldsReflectively(ReflectingFieldNavigator.java:63)
    20. com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:120)
    21. com.google.gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationContextDefault.java:76)
    22. com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:54)
    23. com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter.deserialize(DefaultTypeAdapters.java:663)
    24. com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter.deserialize(DefaultTypeAdapters.java:624)
    25. com.google.gson.JsonDeserializerExceptionWrapper.deserialize(JsonDeserializerExceptionWrapper.java:51)
    26. com.google.gson.JsonDeserializationVisitor.invokeCustomDeserializer(JsonDeserializationVisitor.java:92)
    27. com.google.gson.JsonObjectDeserializationVisitor.visitFieldUsingCustomHandler(JsonObjectDeserializationVisitor.java:117)
    28. com.google.gson.ReflectingFieldNavigator.visitFieldsReflectively(ReflectingFieldNavigator.java:63)
    29. com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:120)
    30. com.google.gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationContextDefault.java:76)
    31. com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:54)
    32. com.google.gson.Gson.fromJson(Gson.java:551)
    33. com.google.gson.Gson.fromJson(Gson.java:498)
    33 frames
  3. com.ibm.watson
    WatsonService$1.execute
    1. com.ibm.watson.developer_cloud.util.ResponseUtils.getObject(ResponseUtils.java:90)
    2. com.ibm.watson.developer_cloud.util.ResponseConverterUtils$3.convert(ResponseConverterUtils.java:76)
    3. com.ibm.watson.developer_cloud.util.ResponseConverterUtils$3.convert(ResponseConverterUtils.java:73)
    4. com.ibm.watson.developer_cloud.service.WatsonService.processServiceCall(WatsonService.java:396)
    5. com.ibm.watson.developer_cloud.service.WatsonService$1.execute(WatsonService.java:179)
    5 frames
  4. br.com.lume
    SpeechToTextExample.main
    1. br.com.lume.common.util.SpeechToTextExample.main(SpeechToTextExample.java:33)
    1 frame