java - Jboss CLI: Expected [INT] but was STRING -
i making cli script add 2 attributes(max-post-size, max-save-post-size) http connector
should looks like:
<connector name="http" protocol="http/1.1" scheme="http" max-post-size="5120000000" max-save-post-size="1024000000" socket-binding="http"/>
my command is:
/subsystem=web/connector=https:add(socket-binding=http,scheme=http,protocol="http/1.1",max-post-size=5120000000, max-save-post-size=1024000000)
but gives me
"failure-description" => "jbas014688: wrong type max-post-size. expected [int] string",
so confused how declare integer in cli, try max-post-size=[5120000000]
, max-save-post-size=[1024000000]
doesn't work
given
[standalone@localhost:9999 connector=http] cd /subsystem=web/connector=http
the type of attribute int
:
[standalone@localhost:9999 connector=http] ls -l
attribute value type
[...]
max-post-size 2120000000 int
[...]
if value < 2,147,483,647, works:
[standalone@localhost:9999 connector=http] /subsystem=web/connector=http:write-attribute(name=max-post-size, value=2120000000)
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
if value greater, fails:
[standalone@localhost:9999 connector=http] /subsystem=web/connector=http:write-attribute(name=max-post-size, value=3120000000)
{
"outcome" => "failed",
"failure-description" => "jbas014688: wrong type max-post-size. expected [int] string",
"rolled-back" => true,
"response-headers" => {"process-state" => "reload-required"}
}
so error message misleading.
Comments
Post a Comment