Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-228

CLI throws IAE on tab completion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.DR8
    • 7.0.0.DR2
    • CLI
    • None
    • Hide

      # start EAP in standlone-full-ha profile
      ./standalone.sh -c standalone-full-ha.xml &
      # connect to cli
      ./jboss-cli.sh -c
      # use tab on
      [standalone@localhost:9990 /] /subsystem=jgroups/stack=udp/transport=UDP:write-attribute(name=properties
      # use tab again
      [standalone@localhost:9990 /] /subsystem=jgroups/stack=udp/transport=UDP:write-attribute(name=properties.

      Show
      # start EAP in standlone-full-ha profile ./standalone.sh -c standalone-full-ha.xml & # connect to cli ./jboss-cli.sh -c # use tab on [standalone@localhost:9990 /] /subsystem=jgroups/stack=udp/transport=UDP:write-attribute(name=properties # use tab again [standalone@localhost:9990 /] /subsystem=jgroups/stack=udp/transport=UDP:write-attribute(name=properties.

      CLI throws IAE on tab completion.

      https://issues.jboss.org/browse/WFCORE-672 - CLI tab-completion for attribute name path syntax

      [standalone@localhost:9990 /]  /subsystem=jgroups/stack=udp/transport=UDP: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:497)
      	at org.jboss.modules.Module.run(Module.java:308)
      	at org.jboss.modules.Main.main(Main.java:487)
      

              olubyans@redhat.com Alexey Loubyansky
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: