1. 程式人生 > >暫時解決java.lang.IllegalStateException: It is invalid to call isReady() when the response has not been put into non-blocking mode

暫時解決java.lang.IllegalStateException: It is invalid to call isReady() when the response has not been put into non-blocking mode

服務器 lose img () arguments it is 分享 exc 解決

環境:

本機-apache-tomcat-9.0.0.M21

服務器-apache-tomcat-9.0.0.M9

錯誤復盤:

最初不知道是tomcat版本解決的,實現了一個下載PDF文件的功能,在action中使用SpringMVC提供的功能對OutputStream進行了close(這塊內部邏輯暫不了解)

另外,[email protected],其中使用了一行代碼JSON.toJSONString(arguments),結果程序報錯

技術分享

  因為程序在本地沒有這個問題,懷疑是tomcat版本導致,暫時通過升級tomcat版本的方式解決,後續進行深入研究。

暫時解決java.lang.IllegalStateException: It is invalid to call isReady() when the response has not been put into non-blocking mode