8 Replies Latest reply on Nov 18, 2014 9:25 AM by yuvraj.patel

    maxParameterCount in EAP 6.1.0

    ohmygod

      I am using EAP 6.1.0. What is this error about? Any configuration to modify to make it work? The same behaviour worked in 7.1.1.Final version.

       

       

      2013-04-01 16:09:19,153;[http-/0.0.0.0:8080-2];ERROR;com.demo.servlet.ControlServlet;Exception servicing request: 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)
                at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:360)
                at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:213)
                at org.apache.catalina.connector.Request.parseParameters(Request.java:2851)
                at org.apache.catalina.connector.Request.getParameter(Request.java:1275)
                at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:349)
                at com.demo.servlet.ControlServlet.doGet(ControlServlet.java:293)
      
      
        • 1. Re: maxParameterCount in EAP 6.1.0
          ctomc

          Mike,

           

          see docs about custom system properites to configure jbossweb

          http://docs.jboss.org/jbossweb/7.0.x/sysprops.html

           

          it think what you are looking for is org.apache.tomcat.util.http.Parameters.MAX_COUNT

           

           

           

           

          --

          tomaz

          • 2. Re: maxParameterCount in EAP 6.1.0
            ohmygod

            Thanks Tomaz, I read this, but could you please show me how to set the parameter into JBoss configuration for my application?

            • 3. Re: maxParameterCount in EAP 6.1.0
              jaikiran

              mike just wrote:

               

              but could you please show me how to set the parameter into JBoss configuration for my application?

              At the top of the page which Tomaz pointed to, there's an example on how to set the system properties. That's one of the ways.

              • 4. Re: maxParameterCount in EAP 6.1.0
                ohmygod

                Hi Jaikiran, do you mean this one?

                 

                standalone@localhost:9999 /] ./system-property=org.apache.catalina.JSESSIONID:add(value="MYID")
                {"outcome" => "success"}
                standalone@localhost:9999 /] :shutdown
                Communication error: Channel closed
                Closed connection to localhost:9999
                
                

                 

                I am sorry I am not able to understand this configuration. Can you show me a little more clearly? Or can this setting be put in the standalone.xml? I am a bit dull on the command.

                • 5. Re: maxParameterCount in EAP 6.1.0
                  ohmygod

                  Hi Jaikiran, I have added the MAX_COUNT parameter and restarted the server. And I can find related property in standalone.xml. But it seems still not working. The same error reproduces when doing the same behaviour.

                   

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

                   

                  Any idea about this?

                  • 6. Re: maxParameterCount in EAP 6.1.0
                    jaikiran

                    You added it wrong. It should have been this:

                     

                    [standalone@localhost:9999 /] /system-property=org.apache.tomcat.util.http.Parameters.MAX_COUNT:add(value="1234")

                     

                    where 1234 is the value you want to set for the org.apache.tomcat.util.http.Parameters.MAX_COUNT parameter.

                     

                    That command is the CLI way for invoking the management operation which adds system properties, which is of the following syntax:

                     

                    /system-property=<name of the system property>:add(value="<the value you want to add>")

                     

                    "add" is the name of the operation an /system-property is the address of the management resource.

                    • 7. Re: maxParameterCount in EAP 6.1.0
                      ohmygod

                      OMG, that is my fault. I modified it and made the value "-1" and now it works. Thanks so much.

                       

                      BTW, could "-1" bring any side-effect to the server performance?

                      • 8. Re: maxParameterCount in EAP 6.1.0
                        yuvraj.patel

                        Hi All,

                         

                        Was there anything similar in Jboss 5? I want to know how it works in previous Jboss versions.

                         

                        Thanks

                        Yuvraj