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