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

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

Solutions on the web

via Spring JIRA by Aphiwad Chhoeun, 1 year ago
via Spring JIRA by Aphiwad Chhoeun, 1 year ago
via Stack Overflow by SST
, 1 year ago
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
via GitHub by christoph-buente
, 2 years ago
Could not read JSON: null; nested exception is java.net.SocketTimeoutException
via GitHub by christoph-buente
, 2 years ago
Could not read JSON: null; nested exception is java.net.SocketTimeoutException
via Stack Overflow by user1844354
, 2 years ago
Could not read JSON: Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out
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(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$ResponseEntityResponseExtractor.extractData(RestTemplate.java:655)
at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:641)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:484)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:439)

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.