admin管理员组文章数量:1608839
1. 获取参数Json的值为null
String json=request.getParameter("Json");
首先检查是否有下面的东东,
信息: Error parsing HTTP request header
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
如果有:说明tomcat 的head缓冲区大小不够,在server.xml中增加maxHttpHeaderSize字段:
<Connector URIEncoding="UTF-8" port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
useBodyEncodingForURI="false"
enableLookups="false"
connectionTimeout="20000"
redirectPort="8443" maxHttpHeaderSize="你想要的大小"/>
不过使用Web提交就不会出现这种问题,即使手机端再三强调使用的是Post方式,仍怀疑是因为使用的Get导致Header数据过长.
2. 更上面解决方案一样 maxHttpHeaderSize
org.apache.coyote.http11.HeadersTooLargeException: An attempt was made to write more data to the response headers than there was room available in the buffer. Increase maxHttpHeaderSize on the connector or write less data into the response headers.
转载于:https://wwwblogs/an5211/p/6899701.html
本文标签: headerparsingoccurrenceshttpDebug
版权声明:本文标题:further occurrences of HTTP header parsing errors will be logged at DEBUG level. 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1728549162a1163217.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论