org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class org.springframework.social.twitter.api.TwitterProfile]: can not instantiate from JSON object (need to add/enable type information?) at [Source: org.apache.http.conn.EofSensorInputStream@421ffbe8; line: 1, column: 2]

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

Types used for deserialization should be used in the way such that the annotation @JsonTypeInfo is visible.

Solutions on the web

via Spring JIRA by Mahesh Gujare, 1 year ago
No suitable constructor found for type [simple type, class org.springframework.social.twitter.api.TwitterProfile]: can not instantiate from JSON object (need to add/enable type information?) at [Source: org.apache.http.conn.EofSensorInputStream@421ffbe8; line: 1, column: 2]
via Spring JIRA by Mahesh Gujare, 1 year ago
No suitable constructor found for type [simple type, class org.springframework.social.twitter.api.TwitterProfile]: can not instantiate from JSON object (need to add/enable type information?) at [Source: org.apache.http.conn.EofSensorInputStream@421ffbe8; line: 1, column: 2]
via phonesdevelopers.com by Unknown author, 1 year ago
Can not deserialize instance of java.util.ArrayList out of START_OBJECT token at [Source: ; line: 1, column: 1]
via chinabtp.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.ChunkedInputStream@41b46428; line: 1, column: 11] (through reference chain: model.vo.TestResult["datas"])
via Stack Overflow by user1162985
, 2 years ago
Can not deserialize instance of java.lang.String out of START_ARRAY token at [Source: libcore.net.http.ChunkedInputStream@41b46428; line: 1, column: 11] (through reference chain: model.vo.TestResult["datas"])
via Stack Overflow by Ritesh
, 2 years ago
Can not deserialize instance of com.singh.ritesh.movies.model.MovieDataList out of START_OBJECT token at [Source: buffer(com.android.okio.GzipSource@3bbd7348).inputStream(); line: 1, column: 1]
org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class org.springframework.social.twitter.api.TwitterProfile]: can not instantiate from JSON object (need to add/enable type information?) at [Source: org.apache.http.conn.EofSensorInputStream@421ffbe8; line: 1, column: 2]
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObjectUsingNonDefault(BeanDeserializer.java:746)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:683)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2732)

Users with the same issue

You are the first who have seen this exception.

Write tip

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