[
https://issues.jboss.org/browse/AS7-3791?page=com.atlassian.jira.plugin.s...
]
Richard Achmatowicz commented on AS7-3791:
------------------------------------------
The problem here is that the error message is too cryptic.
What is happening is that if you try to create a stack via the add() operation *without*
having specified a transport element and a non-empty protocol stack, either as optional
parameters or via batching (see below), the runtime will try to install the transport
element anyway, and will complain that its required parameter "type" describing
the name of the transport protocol (i.e. udp, tcp, tunnel) may not be null. This is the
message we are seeing.
In order to specify a stack's transport and protocol list, there are two methods:
- create the stack with one call to add() and specify them as optional parameters to the
add operation, which now accepts transport and protocols parameters (see the operation
description for add)
- create the stack in several steps using batching, as described above
I think this can be cleared up by checking if the transport element is undefined , or the
protocol list is empty, and outputting a message something like: "stack transport
element is undefined - please specify a transport and protocol stack, either as optional
parameters to the add operation or via batching".
Cannot add/remove stack, protocols
----------------------------------
Key: AS7-3791
URL:
https://issues.jboss.org/browse/AS7-3791
Project: Application Server 7
Issue Type: Bug
Components: Domain Management
Reporter: Heiko Braun
Assignee: Richard Achmatowicz
Fix For: 7.1.2.Final
[standalone@localhost:9999 /] /subsystem=jgroups/stack=tcp/protocol=test:add
{
"outcome" => "failed",
"failure-description" => "JBAS014739: No handler for add at address
[
(\"subsystem\" => \"jgroups\"),
(\"stack\" => \"tcp\"),
(\"protocol\" => \"test\")
]",
"rolled-back" => true
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira