Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-116

Nicer CLI validation when using bin/activemq command to create a broker etc

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • None
    • None

    Description

      Following the user guide to create a broker, I did not specify a directory name and I got this stacktrace error message

      davsclaus:/opt/apache-artemis-1.0.1-SNAPSHOT/$ ./bin/artemis create
      Exception in thread "main" io.airlift.airline.ParseArgumentsMissingException: Required parameters are missing: directory
      	at io.airlift.airline.Cli.validate(Cli.java:144)
      	at io.airlift.airline.Cli.parse(Cli.java:116)
      	at io.airlift.airline.Cli.parse(Cli.java:97)
      	at org.apache.activemq.artemis.cli.Artemis.main(Artemis.java:68)
      	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.apache.activemq.artemis.boot.Artemis.main(Artemis.java:116)
      

      I think we should make this nicer so there is no stacktraces returned for invalid or missing user input.

      Attachments

        Activity

          People

            Unassigned Unassigned
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: