2 Replies Latest reply on Jun 2, 2015 3:04 AM by gtulasidhar

    java.lang.IllegalStateException: UT000047: The number of parameters exceeded the maximum of 1000

    gtulasidhar

      Hi Team,

      We are getting below error.even i have added below bold details in standalone.xml file.Kindly do the needful.

       

      <http-listener name="default" socket-binding="http" max-parameters="5000"/>

      <system-properties>

          <property name="org.apache.tomcat.util.http.Parameters.MAX_COUNT" value="5000"/>

      </system-properties>

       

      Error:-

       

      2015-05-28 12:10:25,587 ERROR [io.undertow.request] (default task-18) UT005023: Exception handling request to /search.do

      : java.lang.IllegalStateException: UT000047: The number of parameters exceeded the maximum of 1000

              at io.undertow.server.handlers.form.FormData.add(FormData.java:77) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

              at io.undertow.server.handlers.form.FormData.add(FormData.java:67) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

              at io.undertow.server.handlers.form.FormEncodedDataDefinition$FormEncodedDataParser.doParse(FormEncodedDataDefinition.java:172) [undertow-core-1.1.0.Final.jar:1

      .1.0.Final]

              at io.undertow.server.handlers.form.FormEncodedDataDefinition$FormEncodedDataParser.parseBlocking(FormEncodedDataDefinition.java:251) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

              at io.undertow.servlet.spec.HttpServletRequestImpl.parseFormData(HttpServletRequestImpl.java:752) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

              at io.undertow.servlet.spec.HttpServletRequestImpl.getParameterNames(HttpServletRequestImpl.java:648) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

              at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:459) [struts.jar:1.2.9]

              at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816) [struts.jar:1.2.9]

              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203) [struts.jar:1.2.9]

              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [struts.jar:1.2.9]

              at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) [struts.jar:1.2.9]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

        • 1. Re: java.lang.IllegalStateException: UT000047: The number of parameters exceeded the maximum of 1000
          jaysensharma

          The parameter which you tried applying is not for undertow.

           

          Try running the following CLI Command to increase the max-parameter values:

           

          /subsystem=undertow/server=default-server/http-listener=default/:write-attribute(name=max-parameters,value=5000)

           

          Or edit standalone.xml

           

          <subsystem xmlns="urn:jboss:domain:undertow:1.2">

                      <buffer-cache name="default"/>

                      <server name="default-server">

                          <http-listener name="default" socket-binding="http" max-parameters="5000"/>

                          <host name="default-host" alias="localhost">

                              <location name="/" handler="welcome-content"/>

                              <filter-ref name="server-header"/>

                              <filter-ref name="x-powered-by-header"/>

                          </host>

           

           

          NOTE: but you should keep in mind that having a very large value for max-parameters  can cause attacks.  The maximum number of parameters that will be parsed. This is used to protect against hash vulnerabilities. This applies to both query parameters, and to POST data, but is not cumulative (i.e. you can potentially have max parameters * 2 total parameters.(Defaults to 1000)

          1 of 1 people found this helpful
          • 2. Re: java.lang.IllegalStateException: UT000047: The number of parameters exceeded the maximum of 1000
            gtulasidhar

            Thank you very much Jaya Kumar issue is solved.

            If you know wildfly 8.2 start/stop scripts for instance share me please..