Note that there are some explanatory texts on larger screens.

plurals
  1. POGson (Json) parse exception
    primarykey
    data
    text
    <p>I'm getting an exception while parsing a JSON with Gson. </p> <p>The following is the exception :</p> <pre><code>com.google.gson.JsonParseException: The JsonDeserializer StringTypeAdapter failed to deserialize json object {"CGLIB$BOUND":true,"CGLIB$CONSTRUCTED":true,"CGLIB$CALLBACK_0":{"interfaces":[{}],"constructed":true,"persistentClass":{},"getIdentifierMethod":{"clazz":{},"slot":0,"name":"getmId","returnType":{},"parameterTypes":[],"exceptionTypes":[],"modifiers":1,"annotations":[0,3,0,67,0,0,0,68,0,0,0,69,0,1,0,70,115,0,71],"root":{"clazz":{},"slot":0,"name":"getmId","returnType":{},"parameterTypes":[],"exceptionTypes":[],"modifiers":1,"annotations":[0,3,0,67,0,0,0,68,0,0,0,69,0,1,0,70,115,0,71],"override":false},"override":false},"setIdentifierMethod":{"clazz":{},"slot":1,"name":"setmId","returnType":{},"parameterTypes":[{}],"exceptionTypes":[],"modifiers":1,"root":{"clazz":{},"slot":1,"name":"setmId","returnType":{},"parameterTypes":[{}],"exceptionTypes":[],"modifiers":1,"override":false},"override":false},"overridesEquals":false,"initialized":false,"entityName":"com.domain.Hotel","id":1,"unwrap":false},"mId":0,"mHotelLatitude":0.0,"mHotelLongitude":0.0,"mHotelRating":0.0,"mHotelAvgPrice":0.0} given the type class java.lang.String </code></pre> <p>JSON:</p> <pre><code>{ "CGLIB$BOUND": true, "CGLIB$CONSTRUCTED": true, "CGLIB$CALLBACK_0": { "interfaces": [ {} ], "constructed": true, "persistentClass": {}, "getIdentifierMethod": { "clazz": {}, "slot": 0, "name": "getmId", "returnType": {}, "parameterTypes": [], "exceptionTypes": [], "modifiers": 1, "annotations": [ 0, 3, 0, 67, 0, 0, 0, 68, 0, 0, 0, 69, 0, 1, 0, 70, 115, 0, 71 ], "root": { "clazz": {}, "slot": 0, "name": "getmId", "returnType": {}, "parameterTypes": [], "exceptionTypes": [], "modifiers": 1, "annotations": [ 0, 3, 0, 67, 0, 0, 0, 68, 0, 0, 0, 69, 0, 1, 0, 70, 115, 0, 71 ], "override": false }, "override": false }, "setIdentifierMethod": { "clazz": {}, "slot": 1, "name": "setmId", "returnType": {}, "parameterTypes": [ {} ], "exceptionTypes": [], "modifiers": 1, "root": { "clazz": {}, "slot": 1, "name": "setmId", "returnType": {}, "parameterTypes": [ {} ], "exceptionTypes": [], "modifiers": 1, "override": false }, "override": false }, "overridesEquals": false, "initialized": false, "entityName": "com.domain.Hotel", "id": 1, "unwrap": false }, "mId": 0, "mHotelLatitude": 0, "mHotelLongitude": 0, "mHotelRating": 0, "mHotelAvgPrice": 0 } </code></pre> <p>Does anybody have an idea about why this exception would come? </p> <p>Regards</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload