You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call this method, the below exception occurs:
Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@3ac467f3; line: 1, column: 1]. Stacktrace follows:
com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@3ac467f3; line: 1, column: 1]
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:749)
at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:59)
at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:12)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3051)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2206)
at grails.plugins.rest.client.RestBuilder.invokeRestTemplate(RestBuilder.groovy:307)
at grails.plugins.rest.client.RestBuilder.doRequestInternal(RestBuilder.groovy:280)
at grails.plugins.rest.client.RestBuilder.doRequestInternal(RestBuilder.groovy:268)
at grails.plugins.rest.client.RestBuilder.get(RestBuilder.groovy:113)
at com.fet.ebu.imsghub.service.LineService$$EP6OF3Sl.$tt__getUser(LineService.groovy:104)
at com.fet.ebu.imsghub.v1.LineController.index(LineController.groovy:20)
at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198)
at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Would you please help me to solve the problem ?
Thank you
The text was updated successfully, but these errors were encountered:
@wureka I worked it around with adding accept JSONObject into the builder customizer. After that I can read resp.body as a JSONObject. Working on deserializing response to prepared POGOs now.
Hi,
My code is as below:
When I call this method, the below exception occurs:
Would you please help me to solve the problem ?
Thank you
The text was updated successfully, but these errors were encountered: