Hi,
you can configure your wildfly undertow settings in the standlone.xml.
The default max-parameters value of the http-listener in my wildfly 18 is 1000.
You can list your undertow configuration via jboss-cli like this:
(Example for wildfly 18)
/subsystem=undertow/server=default-server/http-listener=default:query
The output will look something like this
{
"outcome" => "success",
"result" => {
"max-connections" => undefined,
"max-cookies" => 200,
"max-header-size" => 1048576,
"max-headers" => 200,
"max-parameters" => 1000,
"max-post-size" => 3000000000L,
You can change the value of the attribut via jboss-cli like that:
/subsystem=undertow/server=default-server/http-listener=default:write-attribute(name=max-parameters,
value=5000)
or edit the standalone.xml manually. If you want to use ssl or ajp with your
wildfly you will have to modify the https-listener or ajp-listener too.
Greetings Matthias
-----Ursprüngliche Nachricht-----
Von: Stefan Seltenreich <[email protected]>
Gesendet: Montag, 3. Februar 2020 10:13
An: [email protected]
Betreff: Jboss problem with to many parameters at form
Hi,
I use currently Wicket 7 and want to create an settings page which will have
some webforms and options. This I would like to deploy on an
jboss-wildfly-server.
Now there is a problem with the submit of the forms itself with the exception.
java.lang.RuntimeException: io.undertow.util.ParameterLimitException: UT000047:
The number of parameters exceeded the maximum of 1000
at
[email protected]//io.undertow.server.handlers.form.FormData.add(FormData.java:95)
at
[email protected]//io.undertow.server.handlers.form.FormData.add(FormData.java:85)
at
[email protected]//io.undertow.server.handlers.form.FormEncodedDataDefinition$FormEncodedDataParser.addPair(FormEncodedDataDefinition.java:223)
at
[email protected]//io.undertow.server.handlers.form.FormEncodedDataDefinition$FormEncodedDataParser.doParse(FormEncodedDataDefinition.java:175)
at
[email protected]//io.undertow.server.handlers.form.FormEncodedDataDefinition$FormEncodedDataParser.parseBlocking(FormEncodedDataDefinition.java:294)
at
[email protected]//io.undertow.servlet.spec.HttpServletRequestImpl.parseFormData(HttpServletRequestImpl.java:835)
at
[email protected]//io.undertow.servlet.spec.HttpServletRequestImpl.getParameterMap(HttpServletRequestImpl.java:789)<mailto:[email protected]//io.undertow.servlet.spec.HttpServletRequestImpl.getParameterMap(HttpServletRequestImpl.java:789)>
... 20 more
Caused by: io.undertow.util.ParameterLimitException: UT000047: The number of
parameters exceeded the maximum of 1000
... 81 more
The reason is that for each input field which underlines in
org.apache.wicket.markup.html.form.Form, an data-entree form in dataForm is
generated in the frontend. This FormData list will be send back to the
webserver as parameter list additional to the parameters which will caused to
this error.
The FormData includes each input-field (it doesn't matter is it
manipulated/filled or not) with its values). How can I minimize the amount of
FormData in wicket or how can I prevent this error without splitting the
settings-website in different parts? Or what is the best solution without
changing the whole page? (The page self is generated dynamically) Thank you
very much for an answer Best regards, Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]