11 Replies Latest reply: Nov 18, 2014 10:14 AM by Jean-Frederic Clere RSS

    maxParameterCount on standalone configuration

    Henrique Sousa Newbie

      Hello, devs and folks!


      I have an unusual form in an application that contains a lot of fields for submission. Though the request was not that long (Content-Length: 25114), it failed when I tried to send over 580 input fields. The error message I got was:


      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.


      So I went on and looked up maxParameterCount. It is a common Connector property for Tomcat, but it does not show up at the XML schema used by JBoss AS:

      https://github.com/jbossas/jboss-as/blob/master/build/src/main/resources/docs/schema/jboss-as-web_1_1.xsd (lookup "web-connector-attlist").


      Therefore, I cannot just add the connector attribute in standalone.xml like so:


      <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" maxParameterCount="1000" />


      The parser complains with


      Message: JBAS014788: Unexpected attribute 'maxParameterCount' encountered

              at org.jboss.as.controller.parsing.ParseUtils.unexpectedAttribute(ParseUtils.java:104)


      Is there any way to set maxParameterCount on the Tomcat connector? I appreciate any help. Best regards,