org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Unrecognized field "uri" (Class org.json.JSONObject), not marked as ignorable at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@6f526c5f; line: 2, column: 12] (through reference chain: org.json.JSONObject["uri"]); nested exception is org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "uri" (Class org.json.JSONObject), not marked as ignorable at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@6f526c5f; line: 2, column: 12] (through reference chain: org.json.JSONObject["uri"])

Stack Overflow | Maik | 2 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp . Or join the community to write better ones.
  1. 0

    Could not read JSON: Unrecognized field (...), not marked as ignorable

    Stack Overflow | 2 years ago | Maik
    org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Unrecognized field "uri" (Class org.json.JSONObject), not marked as ignorable at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@6f526c5f; line: 2, column: 12] (through reference chain: org.json.JSONObject["uri"]); nested exception is org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "uri" (Class org.json.JSONObject), not marked as ignorable at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@6f526c5f; line: 2, column: 12] (through reference chain: org.json.JSONObject["uri"])
  2. 0

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

    Coderanch | 5 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"])
  3. 0

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

    Stack Overflow | 4 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"])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring RestTemplate failure with upper case element names

    Stack Overflow | 10 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"])
  6. 0
    samebug tip
    Replace single quotes (') to double ones ("). You should use double quotes in JSON.

    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 "uri" (Class org.json.JSONObject), not marked as ignorable at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@6f526c5f; line: 2, column: 12] (through reference chain: org.json.JSONObject["uri"]); nested exception is org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "uri" (Class org.json.JSONObject), not marked as ignorable at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@6f526c5f; line: 2, column: 12] (through reference chain: org.json.JSONObject["uri"])

      at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readJavaType()
    2. Spring
      RestTemplate.getForObject
      1. org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readJavaType(MappingJacksonHttpMessageConverter.java:181)
      2. org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.read(MappingJacksonHttpMessageConverter.java:173)
      3. org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:94)
      4. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:517)
      5. org.springframework.web.client.RestTemplate.execute(RestTemplate.java:472)
      6. org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:237)
      6 frames