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]

Solutions on the web363

  • 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 Stack Overflow by FredM
    , 1 year ago
    No suitable constructor found for type [simple type, class javax.xml.bind.JAXBElement<de.dhbw.pgbackend.Beitrag>]: can not instantiate from JSON object (need to add/enable type information?) at [Source: org.apache.catalina.connector.CoyoteInputStream@2771f735; line: 1, column: 2] at org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163)
  • Stack trace

    • 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.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readInternal(MappingJacksonHttpMessageConverter.java:125) 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:453) at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:251) at org.springframework.social.twitter.api.impl.UserTemplate.getUserProfile(UserTemplate.java:54) at org.springframework.social.twitter.connect.TwitterAdapter.setConnectionValues(TwitterAdapter.java:30) at org.springframework.social.connect.support.AbstractConnection.setValues(AbstractConnection.java:172) at org.springframework.social.connect.support.AbstractConnection.initKey(AbstractConnection.java:135) at org.springframework.social.connect.support.OAuth1Connection.<init>(OAuth1Connection.java:57) at org.springframework.social.connect.support.OAuth1ConnectionFactory.createConnection(OAuth1ConnectionFactory.java:58) at com.cbs.app.view.TwitterWebOAuthActivity$TwitterPostConnectTask.doInBackground(TwitterWebOAuthActivity.java:246) at com.cbs.app.view.TwitterWebOAuthActivity$TwitterPostConnectTask.doInBackground(TwitterWebOAuthActivity.java:213) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237) Caused by: 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) at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1923) at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readInternal(MappingJacksonHttpMessageConverter.java:122)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    10 times, 1 month ago
    177 times, 1 month ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    21 more bugmates