You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "clebert suconic (JIRA)" <ji...@apache.org> on 2015/06/17 04:54:00 UTC

[jira] [Closed] (ARTEMIS-116) Nicer CLI validation when using bin/activemq command to create a broker etc

     [ https://issues.apache.org/jira/browse/ARTEMIS-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

clebert suconic closed ARTEMIS-116.
-----------------------------------
    Resolution: Fixed

done by John Ament

> Nicer CLI validation when using bin/activemq command to create a broker etc
> ---------------------------------------------------------------------------
>
>                 Key: ARTEMIS-116
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-116
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>    Affects Versions: 1.0.0
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 1.0.1
>
>
> Following the user guide to create a broker, I did not specify a directory name and I got this stacktrace error message
> {code}
> 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)
> {code}
> I think we should make this nicer so there is no stacktraces returned for invalid or missing user input.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)