[jboss-jira] [JBoss JIRA] (WFLY-4721) CLI crashes with IllegalArgumentException on tab completion on protocol properties

Radoslav Husar (JIRA) issues at jboss.org
Tue Jun 2 05:55:03 EDT 2015


     [ https://issues.jboss.org/browse/WFLY-4721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radoslav Husar updated WFLY-4721:
---------------------------------
    Steps to Reproduce: 
# apply a fix for https://issues.jboss.org/browse/WFLY-4720
# /subsystem=jgroups/channel=ee/fork=myfork:add
# /subsystem=jgroups/channel=ee/fork=myfork/protocol=SEQUENCER:add
# type in /subsystem=jgroups/channel=ee/fork=myfork/protocol=SEQUENCER:write-attribute(name=properties
# press tab - dot gets added
# press tab - crashes with  IAE

  was:
# apply a fix for https://issues.jboss.org/browse/WFLY-4720
# /subsystem=jgroups/channel=ee/fork=myfork:add
# /subsystem=jgroups/channel=ee/fork=myfork/protocol=SEQUENCER:add
# type in /subsystem=jgroups/channel=ee/fork=myfork/protocol=SEQUENCER:write-attribute(name=properties
# press tab
# press tab
# ISE



> CLI crashes with IllegalArgumentException on tab completion on protocol properties
> ----------------------------------------------------------------------------------
>
>                 Key: WFLY-4721
>                 URL: https://issues.jboss.org/browse/WFLY-4721
>             Project: WildFly
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 10.0.0.Alpha2
>            Reporter: Radoslav Husar
>            Assignee: Alexey Loubyansky
>
> {noformat}[standalone at localhost:9990 /] /subsystem=jgroups/channel=ee/fork=myfork/protocol=SEQUENCER:write-attribute(name=properties.java.lang.IllegalArgumentException
> at org.jboss.dmr.ModelValue.getKeys(ModelValue.java:136)
> at org.jboss.dmr.ModelNode.keys(ModelNode.java:1373)
> at org.jboss.as.cli.impl.AttributeNamePathCompleter$AttributeNamePathCallbackHandler.getCandidates(AttributeNamePathCompleter.java:165)
> at org.jboss.as.cli.impl.AttributeNamePathCompleter.complete(AttributeNamePathCompleter.java:112)
> at org.jboss.
> ...
> .cli.impl.AttributeNamePathCompleter.complete(AttributeNamePathCompleter.java:96)
> 	at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:229)
> 	at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:73)
> 	at org.jboss.as.cli.CommandCompleter.doComplete(CommandCompleter.java:126)
> 	at org.jboss.as.cli.CommandCompleter.complete(CommandCompleter.java:63)
> 	at org.jboss.as.cli.impl.Console$Factory$1$1.complete(Console.java:122)
> 	at org.jboss.aesh.console.Console.complete(Console.java:1227)
> 	at org.jboss.aesh.console.Console.parseOperation(Console.java:551)
> 	at org.jboss.aesh.console.Console.read(Console.java:453)
> 	at org.jboss.aesh.console.Console.read(Console.java:347)
> 	at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:198)
> 	at org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1327)
> 	at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:272)
> 	at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:45)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:483)
> 	at org.jboss.modules.Module.run(Module.java:308)
> 	at org.jboss.modules.Main.main(Main.java:487)
> 	[rhusar at x220 wildfly-10.0.0.Alpha3-SNAPSHOT]$ 
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list