Parameter Count Exceeded Allowed Maximum

Last modified by superadmin on 2026/11/25 21:30

Large XWiki forms exceed the number of request parameters Tomcat accepts until maxParameterCount is raised on the HTTP connector.

Explanation

When submitting a form in XWiki, you may encounter an error similar to the following:

java.lang.IllegalStateException:
Parameter count exceeded allowed maximum: 512

Cause

Tomcat limits the maximum number of request parameters accepted in a single HTTP request. Large XWiki forms can exceed this default limit.

Solution

  1. Open the TOMCAT_HOME/conf/server.xml file.
  2. Locate the <Connector> element used by your HTTP connector.
  3. Increase the maxParameterCount value. For example:
    <Connector port="8080" maxParameterCount="10000" />
  4. Save the file.
  5. Restart Tomcat.

Related

Get Connected