关于Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors错误的原因
2018-03-07 10:08
627 查看
今天对项目进行维护,突然发现修改内容后不能保存,前端页面显示白屏,后台tomcat在debug模式下出现:Error parsing HTTP request header Note:further occurrences of HTTP header parsing error,于是百度了一下子
产生这个错误的原因是:
1.tomcat服务器的header缓存不足
这个问题很好解决,只需要在tomcat的server.xml文件中设置增加maxHttpHeaderSize字段即可:
<Connector URIEncoding="UTF-8" port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
useBodyEncodingForURI="false"
enableLookups="false"
connectionTimeout="20000"
redirectPort="8443" maxHttpHeaderSize="你想要的大小"/>
如:
<Connector port="8080" executor="tomcatThreadPool"
protocol="HTTP/1.1"
maxThreads="1000"
maxHttpHeaderSize="8192"
minSpareThreads="100"
maxSpareThreads="200"
acceptCount="1000"
maxConnections="1000"
connectionTimeout="30000"
keepAliveTimeout="15000"
maxKeepAliveRequests="1"
tcpNoDelay="true"
redirectPort="8443"
enableLookups="false"
URIEncoding="UTF-8"/>
仅此而已
产生这个错误的原因是:
1.tomcat服务器的header缓存不足
这个问题很好解决,只需要在tomcat的server.xml文件中设置增加maxHttpHeaderSize字段即可:<Connector URIEncoding="UTF-8" port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
useBodyEncodingForURI="false"
enableLookups="false"
connectionTimeout="20000"
redirectPort="8443" maxHttpHeaderSize="你想要的大小"/>
如:
<Connector port="8080" executor="tomcatThreadPool"
protocol="HTTP/1.1"
maxThreads="1000"
maxHttpHeaderSize="8192"
minSpareThreads="100"
maxSpareThreads="200"
acceptCount="1000"
maxConnections="1000"
connectionTimeout="30000"
keepAliveTimeout="15000"
maxKeepAliveRequests="1"
tcpNoDelay="true"
redirectPort="8443"
enableLookups="false"
URIEncoding="UTF-8"/>
仅此而已
2.第二原因是表单的提交造成的
更改表单的method属性,由get变为post即可。相关文章推荐
- Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
- Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
- tomcat报错 error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
- [Java Web]Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
- [Java Web]Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
- Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
- [Java Web]Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors
- Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.错误解决办法
- dojo/request 出现tomcat报错 error parsing HTTP request header Note: further occurrences of HTTP header..
- further occurrences of HTTP header parsing errors will be logged at DEBUG level.错误
- TOMCAT Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
- 报错Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
- 解决 Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level问题
- further occurrences of HTTP header parsing errors will be logged at DEBUG level.错误
- Tomcat 7 报“INFO: Error parsing HTTP request header”错误
- Tomcat 7.0.43 “INFO: Error parsing HTTP request header”
- 关于使用springmvc时Failed to load resource: the server responded with a status of 400 (Bad Request)错误可能原因
- android编程中遇到的关于Error parsing XML: unbound prefix错误的原因及解决办法
- Error parsing HTTP request header
- Error parsing HTTP request header--400 bad request