Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1771

CLI - Tab completion in composite operation throws IAE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Alpha8
    • 3.0.0.Alpha7
    • CLI
    • None

      Getting an exception when trying to make a composite operation

      [standalone@localhost:9990 /] :composite(steps=[{aException in thread "Aesh Process Loop 1409160703" java.lang.IllegalArgumentException
      	at org.jboss.dmr.ModelValue.getKeys(ModelValue.java:139)
      	at org.jboss.dmr.ModelNode.keys(ModelNode.java:1378)
      	at org.jboss.as.cli.impl.ValueTypeCompleter$ValueTypeCallbackHandler.getCandidates(ValueTypeCompleter.java:502)
      	at org.jboss.as.cli.impl.ValueTypeCompleter.complete(ValueTypeCompleter.java:332)
      	at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:254)
      	at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:74)
      	at org.jboss.as.cli.CommandCompleter.doComplete(CommandCompleter.java:134)
      	at org.jboss.as.cli.CommandCompleter.complete(CommandCompleter.java:63)
      	at org.jboss.as.cli.impl.Console$Factory$1$1.complete(Console.java:143)
      	at org.jboss.aesh.console.AeshCompletionHandler.complete(AeshCompletionHandler.java:155)
      	at org.jboss.aesh.console.AeshInputProcessor.complete(AeshInputProcessor.java:423)
      	at org.jboss.aesh.console.AeshInputProcessor.parseOperation(AeshInputProcessor.java:165)
      	at org.jboss.aesh.console.Console.processInternalOperation(Console.java:773)
      	at org.jboss.aesh.console.Console.execute(Console.java:733)
      	at org.jboss.aesh.console.Console.access$900(Console.java:73)
      	at org.jboss.aesh.console.Console$6.run(Console.java:642)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

      Happens only for certain strings, e.g.

      • :composite(steps=[{a<TAB> fails
      • :composite(steps=[a<TAB> doesn't fail (suggests "," or "]")
      • :composite(steps=[a=<TAB> fails

              jdenise@redhat.com Jean Francois Denise
              mpetrov@redhat.com Michal Petrov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: