org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Unrecognized field "_embedded" (Class com.foo.support.model.Person), not marked as ignorable at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@d4aff35; line: 2, column: 18] (through reference chain: com.foo.support.model.Person["_embedded"]); nested exception is org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "_embedded" (Class com.foo.support.model.Person), not marked as ignorable at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@d4aff35; line: 2, column: 18] (through reference chain: com.foo.support.model.Person["_embedded"])

Stack Overflow | SST | 2 months ago
  1. 0

    how to map spring-data-rest JSON response with its object using RestTEmplate

    Stack Overflow | 2 months ago | SST
    org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Unrecognized field "_embedded" (Class com.foo.support.model.Person), not marked as ignorable at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@d4aff35; line: 2, column: 18] (through reference chain: com.foo.support.model.Person["_embedded"]); nested exception is org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "_embedded" (Class com.foo.support.model.Person), not marked as ignorable at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@d4aff35; line: 2, column: 18] (through reference chain: com.foo.support.model.Person["_embedded"])
  2. 0

    dynamic json response: Could not read JSON: N/A (through reference chain) jackson fasterxml

    Stack Overflow | 2 years ago | Sven Deckers
    org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: N/A (through reference chain: be.kava.farma.modules.prins.ImageListingResponse["123465"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: N/A (through reference chain: be.kava.farma.modules.prins.ImageListingResponse["123456"])
  3. 0

    Carried over from SOCIAL-423: I tried the latest build but I get org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: No suitable constructor found for type [simple type, class org.springframework.social.facebook.api.FacebookProfile]: can not instantiate from JSON object (need to add/enable type information?) at [Source: java.io.ByteArrayInputStream@7e305fb2; line: 1, column: 2]; nested exception is com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class org.springframework.social.facebook.api.FacebookProfile]: can not instantiate from JSON object (need to add/enable type information?) at [Source: java.io.ByteArrayInputStream@7e305fb2; line: 1, column: 2] at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.readJavaType(MappingJackson2HttpMessageConverter.java:228) at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.read(MappingJackson2HttpMessageConverter.java:220) at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:95) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:549) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:517) at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:255) at org.springframework.social.facebook.api.impl.FacebookTemplate.fetchObject(FacebookTemplate.java:165) at org.springframework.social.facebook.api.impl.UserTemplate.getUserProfile(UserTemplate.java:50) at org.springframework.social.facebook.api.impl.UserTemplate.getUserProfile(UserTemplate.java:46) exception

    Spring JIRA | 3 years ago | Craig Walls
    org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: No suitable constructor found for type [simple type, class org.springframework.social.facebook.api.FacebookProfile]: can not instantiate from JSON object (need to add/enable type information?) at [Source: java.io.ByteArrayInputStream@7e305fb2; line: 1, column: 2]; nested exception is com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class org.springframework.social.facebook.api.FacebookProfile]: can not instantiate from JSON object (need to add/enable type information?) at [Source: java.io.ByteArrayInputStream@7e305fb2; line: 1, column: 2]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting exception - Could not read JSON: Unrecognized field "CatalogGrpView"

    Coderanch | 3 months ago | saravanan sambandam
    org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Unrecognized field "CatalogGrpView" (Class com.marcom.model.catalog.CatalogVO), not marked as ignorable at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@69e9c8ed; line: 1, column: 44] (through reference chain: com.marcom.model.catalog.CatalogVO["CatalogGrpView"]); nested exception is org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "CatalogGrpView" (Class com.marcom.model.catalog.CatalogVO), not marked as ignorable at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@69e9c8ed; line: 1, column: 44] (through reference chain: com.marcom.model.catalog.CatalogVO["CatalogGrpView"])
  6. 0

    Spring RestTemplate failure with upper case element names

    Stack Overflow | 8 months ago | No Spam
    org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Unrecognized field "OTPRO" (class com.ssdr.rest.message.SSDRResponse), not marked as ignorable (7 known properties: "dt", "ot", "message", "otpro", "otphone", "code", "dtphone"]) at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@4ccbe679; line: 4, column: 14] (through reference chain: com.ssdr.rest.message.SSDRResponse["OTPRO"]); nested exception is com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "OTPRO" (class com.ssdr.rest.message.SSDRResponse), not marked as ignorable (7 known properties: "dt", "ot", "message", "otpro", "otphone", "code", "dtphone"]) at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@4ccbe679; line: 4, column: 14] (through reference chain: com.ssdr.rest.message.SSDRResponse["OTPRO"])

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.http.converter.HttpMessageNotReadableException

      Could not read JSON: Unrecognized field "_embedded" (Class com.foo.support.model.Person), not marked as ignorable at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@d4aff35; line: 2, column: 18] (through reference chain: com.foo.support.model.Person["_embedded"]); nested exception is org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "_embedded" (Class com.foo.support.model.Person), not marked as ignorable at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@d4aff35; line: 2, column: 18] (through reference chain: com.foo.support.model.Person["_embedded"])

      at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readInternal()
    2. Spring
      RestTemplate.getForObject
      1. org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readInternal(MappingJacksonHttpMessageConverter.java:127)[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      2. org.springframework.http.converter.AbstractHttpMessageConverter.read(AbstractHttpMessageConverter.java:153)[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      3. org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:81)[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      4. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:446)[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      5. org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401)[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      6. org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:199)[spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
      6 frames