Skip to content
Advertisement

Tag: spring-mvc

I/O error while reading input message; nested exception is java.io.IOException: Stream closed

This is my controller: This is the error I get: “message”: “I/O error while reading input message; nested exception is java.io.IOException: Stream closed” Answer Your error is the result of @RequestBody being used twice in your controller method arguments. Following line causes the issue: You cannot use it this way as only one @RequestBody per method is allowed. Using @RequestBody

Advertisement