further occurrences of HTTP header parsing errors will be logged at DEBUG level.

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://www.cnblogs.com/an5211/p/6899701.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值