java.lang.IllegalStateException: Parameter count exceeded allowed maximum: 512
Issue
- EAP 4.3 / EAP 5 でログに以下のようなエラーが出力されます
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/myapp].[default]] (ajp-0.0.0.0-8009-1) サーブレット default のServlet.service()が例外を投げました
java.lang.IllegalStateException: Parameter count exceeded allowed maximum: 512
at org.apache.tomcat.util.http.Parameters.addField(Parameters.java:218)
at org.apache.tomcat.util.http.Parameters.addParam(Parameters.java:337)
at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:417)
at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:368)
at org.apache.catalina.connector.Request.parseParameters(Request.java:2568)
at org.apache.catalina.connector.Request.getParameter(Request.java:1060)
at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:355)
- EAP 6 でログに以下のようなエラーが出力されます
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/hello].[jsp]] (http-/127.0.0.1:8080-2) JBWEB000236: Servlet.service() for servlet jsp threw exception: java.lang.IllegalStateException: JBWEB002004: 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.
at org.apache.tomcat.util.http.Parameters.addParameter(Parameters.java:184) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:360) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:213) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.catalina.connector.Request.parseParameters(Request.java:2858) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.catalina.connector.Request.getParameter(Request.java:1279) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.x
- 5.2.0 以降
- 5.1.2 + セキュリティパッチ JBPAPP-7790
- 4.3.0 CP10 + セキュリティパッチ JBPAPP-7862
- Red Hat Enterprise Linux (RHEL) 6
- tomcat6 version >= 6.0.24-36.el6_2
- Red Hat Enterprise Linux (RHEL) 5
- tomcat5 version >= 5.5.23-0jpp.31.el5_8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
