com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of org.hello.tweetconsumer.Greeting out of START_ARRAY token at [Source: buffer(com.android.okhttp.internal.http.HttpConnection$ChunkedSource@a143f53).inputStream(); line: 1, column: 1]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Try indicating constructor to use @JsonCreator annotation.

,

You are trying to deserialize a type for which Jackson does not provide a default mapper. You should create your custom mapper for this type.

Solutions on the web

via Stack Overflow by Didem
, 1 year ago
Can not deserialize instance of org.hello.tweetconsumer.Greeting out of START_ARRAY token at [Source: buffer(com.android.okhttp.internal.http.HttpConnection$ChunkedSource@a143f53).inputStream(); line: 1, column: 1]
via Stack Overflow by Issac Balaji
, 2 years ago
Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: java.util.zip.GZIPInputStream@420e4cc8; line: 1, column: 1]
via GitHub by gberche-orange
, 2 years ago
Can not construct instance of org.springframework.security.oauth2.common.OAuth2AccessToken, problem: abstract types either need to be mapped to concrete types, have custom deserializer, or be instantiated with additional type information at [Source: org.apache.http.conn.EofSensorInputStream@774ad8b2; line: 1, column: 1]
via Stack Overflow by lakshman kumar
, 1 year ago
Can not deserialize instance of stpi.com.rest.Products out of START_ARRAY token at [Source: com.android.okhttp.internal.http.HttpTransport$ChunkedInputStream@41da0398; line: 1, column: 1]
via widecodes.com by Unknown author, 2 years ago
Can not deserialize instance of java.lang.String out of START_ARRAY token at [Source: libcore.net.http.FixedLengthInputStream@43822760; line: 1, column: 17] (through reference chain: com.example.model.Contact["attributes"])
via phonesdevelopers.com by Unknown author, 2 years ago
Can not deserialize instance of java.lang.String out of START_ARRAY token at [Source: libcore.net.http.FixedLengthInputStream@43822760; line: 1, column: 17] (through reference chain: com.example.model.Contact["attributes"])
com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of org.hello.tweetconsumer.Greeting out of START_ARRAY token at [Source: buffer(com.android.okhttp.internal.http.HttpConnection$ChunkedSource@a143f53).inputStream(); line: 1, column: 1]
at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:691)
at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:685)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromArray(BeanDeserializerBase.java:1215)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:126)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2993)
at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.readInternal(MappingJackson2HttpMessageConverter.java:123)
at org.springframework.http.converter.AbstractHttpMessageConverter.read(AbstractHttpMessageConverter.java:147)
at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:76)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:484)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:439)
at org.hello.tweetconsumer.MainActivity$HttpRequestTask.doInBackground(MainActivity.java:90)
at org.hello.tweetconsumer.MainActivity$HttpRequestTask.doInBackground(MainActivity.java:82)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 7 months ago
Once, 3 months ago
125 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.