PWC3997: getReader() has already been called for this request

Samebug tips1

This happens when you read the input as binary stream getInputStream() and character stream getReader, you can only use one way, or you can try this workaround


Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web5

Stack trace

  • java.lang.IllegalStateException: PWC3997: getReader() has already been called for this request at org.apache.catalina.connector.Request.getInputStream( at org.apache.catalina.connector.RequestFacade.getInputStream( at org.springframework.http.server.ServletServerHttpRequest.getBody( at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters( at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

We couldn't find other users who have seen this exception.