Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4721

CLI crashes with IllegalArgumentException on tab completion on protocol properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 10.0.0.Alpha2
    • CLI
    • None
    • Hide
      1. apply a fix for https://issues.jboss.org/browse/WFLY-4720
      2. /subsystem=jgroups/channel=ee/fork=myfork:add
      3. /subsystem=jgroups/channel=ee/fork=myfork/protocol=SEQUENCER:add
      4. type in /subsystem=jgroups/channel=ee/fork=myfork/protocol=SEQUENCER:write-attribute(name=properties
      5. press tab - dot gets added
      6. press tab - crashes with IAE
      Show
      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

    Description

      [standalone@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.as.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@x220 wildfly-10.0.0.Alpha3-SNAPSHOT]$ 
      

      Attachments

        Issue Links

          Activity

            People

              olubyans@redhat.com Alexey Loubyansky
              rhn-engineering-rhusar Radoslav Husar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: