post提交数据参数量过大问题
2017-10-19 13:55
274 查看
使用jboss7.1在页面以post方式提交数据,报如下错误:
[java] view
plain cop
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/].[action]] (http--0.0.0.0-8545-8) Servlet.service() for servlet action threw exception: java.lang.IllegalStateException: More than the maximum number of request parameters (GET plus
POST) for a single request ([512]) were detected. Any parameters beyond this limit have been ignored. To change this limit, set the maxParameterCount attribute on the Connector.
....
错误的原因是请求参数超过了最大请求参数数量,需要修改maxParameterCount配置。只需要在jboss7.1的standalone.xml文件中增加一个配置即可
[html] view
plain copy
<system-properties>
<property name="org.apache.catalina.connector.URI_ENCODING" value="UTF-8"/>
<property name="org.apache.catalina.connector.USE_BODY_ENCODING_FOR_QUERY_STRING" value="true"/>
<!-- 最大请求参数数量配置-->
<property name="org.apache.tomcat.util.http.Parameters.MAX_COUNT" value="5000"/>
</system-properties>
即增加:
[html] view
plain copy
<property name="org.apache.tomcat.util.http.Parameters.MAX_COUNT" value="5000"/>
原文解答地址:https://developer.jboss.org/thread/177942?_sscc=t
[java] view
plain cop
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/].[action]] (http--0.0.0.0-8545-8) Servlet.service() for servlet action threw exception: java.lang.IllegalStateException: More than the maximum number of request parameters (GET plus
POST) for a single request ([512]) were detected. Any parameters beyond this limit have been ignored. To change this limit, set the maxParameterCount attribute on the Connector.
....
错误的原因是请求参数超过了最大请求参数数量,需要修改maxParameterCount配置。只需要在jboss7.1的standalone.xml文件中增加一个配置即可
[html] view
plain copy
<system-properties>
<property name="org.apache.catalina.connector.URI_ENCODING" value="UTF-8"/>
<property name="org.apache.catalina.connector.USE_BODY_ENCODING_FOR_QUERY_STRING" value="true"/>
<!-- 最大请求参数数量配置-->
<property name="org.apache.tomcat.util.http.Parameters.MAX_COUNT" value="5000"/>
</system-properties>
即增加:
[html] view
plain copy
<property name="org.apache.tomcat.util.http.Parameters.MAX_COUNT" value="5000"/>
原文解答地址:https://developer.jboss.org/thread/177942?_sscc=t
相关文章推荐
- 解决angular的$http.post()提交数据时后台接收不到参数值问题的方法
- POST提交参数数据过大,设置tomcat的配置文件
- struts2 数据传输问题---“POST方式提交数据量过大,在后台接收不到数据”问题的解决
- struts2 数据传输问题---POST方式提交数据量过大,在后台接收不到数据
- Http Post请求提交json格式数据工具类,解决请求参数中文乱码问题
- 解决angular的$http.post()提交数据时后台接收不到参数值问题的方法
- angular的$http.post()提交数据到Java后台接收不到参数值问题的解决方法
- 解决angular的$http.post()提交数据时后台接收不到参数值问题的方法
- 解决angular的$http.post()提交数据时后台接收不到参数值问题的方法
- 菜鸟调错(九)——POST方法提交参数丢失问题
- 关于ajax post请求,参数过大产生的问题解决 Java
- post提交的数据有哪几种编码格式?能否通过URL参数获取用户账户密码
- 找到一篇关于form以post、get方式提交数据中文乱码问题总结
- curl post参数,接口接收不到数据问题
- AFN中POST请求提交数据的方式及一些问题
- 表单用post方法提交数据时乱码问题
- 表单提交数据量过大导致数据丢失的问题
- 解决post内容过大后台接收参数为NULL的问题
- 表单中多个请求参数名字相同,服务器到底获取的是哪个请求参数的值,表单的action和get和post提交方式的关系以及提交数据的不同点
- 使用angularjs的$http.post异步提交数据时,服务器接收不了的问题