java.lang.IllegalStateException: getReader() has already been called for this request

后端 未结 4 597
孤街浪徒
孤街浪徒 2020-12-29 04:12

I want to add logging to my Servlet, so I\'ve created Filter which should display request and go to the Servlet. But unfortunately I\'ve encoutered exception:



        
4条回答
  •  一生所求
    2020-12-29 04:28

    The main problem is that you can't read the input both as binary stream and character stream, not even if the one is called in a filter and the other in the servlet.

提交回复
热议问题