java.lang.RuntimeException: java.io.IOException: 緩沖區溢出且未設置接收器,請限制[4,096]和緩沖區長度[4,096]


環境:tomcat9

問題:tomcat控制台中文報錯,百度難以找到答案

java.lang.RuntimeException: java.io.IOException: 緩沖區溢出且未設置接收器,請限制[4,096]和緩沖區長度[4,096]

英文內容

java.io.IOException: Buffer overflow and no sink is set, limit [4,096] and buffer length [4,096]

解決:查詢overflow

https://stackoverflow.com/questions/57871348/buffer-overflow-error-when-calling-request-authenticate-on-tomcat

Seeing as there's no other information on the internet,adding a maxSavePostSize resolved this issue for me. For example, setting to 2MB to allow larger posts from IDP:

<Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" maxSavePostSize ="2097152" />

添加新屬性maxSavePostSize ="2097152"


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM