Issue Type: Bug Bug
Affects Versions: 7.1.1.Final
Assignee: Alexey Loubyansky
Components: CLI
Created: 19/Jun/12 7:33 AM
Description:

Running the following script fails on a freshly installed AS 7.1.1.FINAL.

connect
/host=master/server-config=test1:add(group=main-server-group,auto-start=true,socket-binding-port-offset=0)
/host=master/server-config=test2:add(group=main-server-group,auto-start=true,socket-binding-port-offset=100)
/host=master/server-config=test3:add(group=main-server-group,auto-start=true,socket-binding-port-offset=200)
/host=master/server-config=test4:add(group=main-server-group,auto-start=true,socket-binding-port-offset=300)

The output looks like this:

kalle@elvira:~/tmp/jboss-as-7.1.1.Final/bin$ ./jboss-cli.sh --file=/home/kalle/tmp/bug_script.txt
{"outcome" => "success"}
{"outcome" => "success"}
'/host=master/server-config=test3:add(group=main-server-group,auto-start=true,socket-binding-port-offset=200)' is not a valid operation name.
kalle@elvira:~/tmp/jboss-as-7.1.1.Final/bin$ 

The first two servers are created but the third fails. If I do the same interactively, it also fails, but if I then add the "test4" server-config, it will be created successfully. Output below:

kalle@elvira:~/tmp/jboss-as-7.1.1.Final/bin$ ./jboss-cli.sh 
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect
[domain@localhost:9999 /] /host=master/server-config=test1:add(group=main-server-group,auto-start=true,socket-binding-port-offset=0)
{"outcome" => "success"}
[domain@localhost:9999 /] /host=master/server-config=test2:add(group=main-server-group,auto-start=true,socket-binding-port-offset=100)
{"outcome" => "success"}
[domain@localhost:9999 /] /host=master/server-config=test3:add(group=main-server-group,auto-start=true,socket-binding-port-offset=200)
'/host=master/server-config=test3:add(group=main-server-group,auto-start=true,socket-binding-port-offset=200)' is not a valid operation name.
[domain@localhost:9999 /] /host=master/server-config=test3:add(group=main-server-group,auto-start=true,socket-binding-port-offset=200)
'/host=master/server-config=test3:add(group=main-server-group,auto-start=true,socket-binding-port-offset=200)' is not a valid operation name.
[domain@localhost:9999 /] /host=master/server-config=test4:add(group=main-server-group,auto-start=true,socket-binding-port-offset=300)
{"outcome" => "success"}
[domain@localhost:9999 /]
Environment: Ubuntu 12.04,
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
Project: Application Server 7
Labels: CLI
Priority: Major Major
Reporter: Kalle Rosenbaum
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira