org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: BufferedInputStream is closed; nested exception is java.io.IOException: BufferedInputStream is closed

Spring JIRA | Aphiwad Chhoeun | 4 years ago
  1. 0

    tried to call rest webservice, and got this exception thrown only on HTC Incredible S, tested on other device working fine W/System.err( 3433): org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: BufferedInputStream is closed; nested exception is java.io.IOException: BufferedInputStream is closed W/System.err( 3433): at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readInternal(MappingJacksonHttpMessageConverter.java:125) W/System.err( 3433): at org.springframework.http.converter.AbstractHttpMessageConverter.read(AbstractHttpMessageConverter.java:147) W/System.err( 3433): at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:76) W/System.err( 3433): at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:655) W/System.err( 3433): at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:641) W/System.err( 3433): at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:484) W/System.err( 3433): at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:439) W/System.err( 3433): at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:415)

    Spring JIRA | 4 years ago | Aphiwad Chhoeun
    org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: BufferedInputStream is closed; nested exception is java.io.IOException: BufferedInputStream is closed
  2. 0

    tried to call rest webservice, and got this exception thrown only on HTC Incredible S, tested on other device working fine W/System.err( 3433): org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: BufferedInputStream is closed; nested exception is java.io.IOException: BufferedInputStream is closed W/System.err( 3433): at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readInternal(MappingJacksonHttpMessageConverter.java:125) W/System.err( 3433): at org.springframework.http.converter.AbstractHttpMessageConverter.read(AbstractHttpMessageConverter.java:147) W/System.err( 3433): at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:76) W/System.err( 3433): at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:655) W/System.err( 3433): at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:641) W/System.err( 3433): at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:484) W/System.err( 3433): at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:439) W/System.err( 3433): at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:415)

    Spring JIRA | 4 years ago | Aphiwad Chhoeun
    org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: BufferedInputStream is closed; nested exception is java.io.IOException: BufferedInputStream is closed
  3. 0

    Junit Error | org.springframework.oxm.UnmarshallingFailureException: XStream unmarshalling exception; nested exception is com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: - Reply of Your Every Question

    everyreply.com | 1 year ago
    org.springframework.http.converter.HttpMessageNotReadableException: Could not read [class response]; nested exception is org.springframework.oxm.UnmarshallingFailureException: XStream unmarshalling exception; nested exception is com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: No such field product.image org.springframework.http.converter.xml.MarshallingHttpMessageConverter.readFromSource(MarshallingHttpMessageConverter.java:123)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Junit Error | org.springframework.oxm.UnmarshallingFailureException: XStream unmarshalling exception; nested exception is com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: - Reply of Your Every Question

    everyreply.com | 11 months ago
    org.springframework.http.converter.HttpMessageNotReadableException: Could not read [class response]; nested exception is org.springframework.oxm.UnmarshallingFailureException: XStream unmarshalling exception; nested exception is com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: No such field product.image org.springframework.http.converter.xml.MarshallingHttpMessageConverter.readFromSource(MarshallingHttpMessageConverter.java:123)
  6. 0

    GitHub comment 1#238048746

    GitHub | 4 months ago | Pytry
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: N/A (through reference chain: com.dogjaw.services.authentication.b2c.AzurePolicyMetaData["http_logout_supported"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: N/A (through reference chain: com.dogjaw.services.authentication.b2c.AzurePolicyMetaData["http_logout_supported"])

    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: BufferedInputStream is closed; nested exception is java.io.IOException: BufferedInputStream is closed

      at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readInternal()
    2. Spring
      RestTemplate.exchange
      1. org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readInternal(MappingJacksonHttpMessageConverter.java:125)
      2. org.springframework.http.converter.AbstractHttpMessageConverter.read(AbstractHttpMessageConverter.java:147)
      3. org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:76)
      4. org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:655)
      5. org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:641)
      6. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:484)
      7. org.springframework.web.client.RestTemplate.execute(RestTemplate.java:439)
      8. org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:415)
      8 frames