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

CLI operations produce java.lang.IllegalArgumentException upon inputting wrong parameters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR9
    • 7.1.0.DR7
    • CLI, User Experience
    • None

      CLI operations produce java.lang.IllegalArgumentException upon calling operations with wrong parameter amount or names. This happens with all the CLI operations.
      Examples:

      [standalone@localhost:9990 /] :read-children-names(aaaaa             
      Failed to handle ':read-children-names(aaaaa': java.lang.IllegalArgumentException
      
      [standalone@localhost:9990 /] /deployment=jboss-kitchensink-ear.ear:add-content(content=[{uri=abc, target-path=test.txt}])
      Failed to handle '/deployment=jboss-kitchensink-ear.ear:add-content(content=[{uri=abc, target-path=test.txt}])': java.lang.IllegalArgumentException
      
      [standalone@localhost:9990 /] /subsystem=logging/log-file=server.log:read-log-file(xxx
      Failed to handle '/subsystem=logging/log-file=server.log:read-log-file(xxx': java.lang.IllegalArgumentException
      

      The message is not informative. It is not particularly obvious that the operation failed due to wrong number of parameters or parameter names at first glance.

              jdenise@redhat.com Jean Francois Denise
              mjurc@redhat.com Michal Jurc
              Michal Jurc Michal Jurc
              Michal Jurc Michal Jurc
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: