2 Replies Latest reply on May 29, 2014 8:24 AM by Thiago Hernandes

    UT000047: The number of parameters exceeded the maximum of 1000

    Thiago Hernandes Newbie

      How can i resolve this issue??

       

      Stack Trace

      java.lang.IllegalStateException: UT000047: The number of parameters exceeded the maximum of 1000
      at io.undertow.server.handlers.form.FormData.add(FormData.java:77)
      at io.undertow.server.handlers.form.FormData.add(FormData.java:67)
      at io.undertow.server.handlers.form.FormEncodedDataDefinition$FormEncodedDataParser.doParse(FormEncodedDataDefinition.java:153)
      at io.undertow.server.handlers.form.FormEncodedDataDefinition$FormEncodedDataParser.parseBlocking(FormEncodedDataDefinition.java:226)
      at io.undertow.servlet.spec.HttpServletRequestImpl.parseFormData(HttpServletRequestImpl.java:726)
      at io.undertow.servlet.spec.HttpServletRequestImpl.getParameter(HttpServletRequestImpl.java:600)
      at com.sun.faces.context.RequestParameterMap.get(RequestParameterMap.java:75)
      at com.sun.faces.context.RequestParameterMap.get(RequestParameterMap.java:56)
      at java.util.Collections$UnmodifiableMap.get(Collections.java:1339)
      at com.sun.faces.application.view.MultiViewHandler.calculateRenderKitId(MultiViewHandler.java:222)
      at javax.faces.application.ViewHandlerWrapper.calculateRenderKitId(ViewHandlerWrapper.java:157)
      at com.sun.faces.context.FacesContextImpl.isPostback(FacesContextImpl.java:212)
      at javax.faces.context.FacesContextWrapper.isPostback(FacesContextWrapper.java:461)
      at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:193)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:121)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
      at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)
      at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52)
      at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)

      and more....

       

      I´ve anothers the option "MAX_PARAMETERS". But it isn´t in standalone.xml or any file.

       

      ????????? Bug???

        • 1. Re: UT000047: The number of parameters exceeded the maximum of 1000
          Scott Marlow Master

          Try setting max-parameters instead which is mentioned here.

          1 of 1 people found this helpful
          • 2. Re: UT000047: The number of parameters exceeded the maximum of 1000
            Thiago Hernandes Newbie

            Thanks Scott!!

             

            The solution:

             

            ....

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

                        <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>

                        </server>

                        <servlet-container name="default">

                            <jsp-config/>

                        </servlet-container>

                        <handlers>

                            <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>

                        </handlers>

                        <filters>

                            <response-header name="server-header" header-name="Server" header-value="WildFly/8"/>

                            <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>

                        </filters>

                    </subsystem>

             

            ....

             

            Now, it´s worked fine!