java.lang.IllegalStateException

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 https://goo.gl/IspUjB


rafaelrafael

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(Request.java:1178) at org.apache.catalina.connector.RequestFacade.getInputStream(RequestFacade.java:407) at org.springframework.http.server.ServletServerHttpRequest.getBody(ServletServerHttpRequest.java:165) at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters(RequestResponseBodyMethodProcessor.java:120) at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(RequestResponseBodyMethodProcessor.java:100)

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.