ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Novikov (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (IGNITE-2304) Improve exceptions handling for ignite-web-agent
Date Mon, 28 Dec 2015 10:28:49 GMT

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

Andrey Novikov resolved IGNITE-2304.
------------------------------------
    Resolution: Fixed
      Assignee: Pavel Konstantinov  (was: Andrey Novikov)

Improved output. Pavel, please check.

> Improve exceptions handling for ignite-web-agent
> ------------------------------------------------
>
>                 Key: IGNITE-2304
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2304
>             Project: Ignite
>          Issue Type: Sub-task
>          Components: wizards
>            Reporter: Pavel Konstantinov
>            Assignee: Pavel Konstantinov
>            Priority: Minor
>             Fix For: 1.6
>
>
> Currently if I start ignite-web-agent with incorrect options it crashes with exception:
> {code}
> ./ignite-web-agent.sh dfsd
> [15:48:36,554][INFO ][main][AgentLauncher] Starting Apache Ignite Web Console Agent...
> Exception in thread "main" com.beust.jcommander.ParameterException: Was passed main parameter
'dfsd' but no main parameter was defined
> 	at com.beust.jcommander.JCommander.getMainParameter(JCommander.java:914)
> 	at com.beust.jcommander.JCommander.parseValues(JCommander.java:759)
> 	at com.beust.jcommander.JCommander.parse(JCommander.java:282)
> 	at com.beust.jcommander.JCommander.parse(JCommander.java:265)
> 	at com.beust.jcommander.JCommander.<init>(JCommander.java:210)
> 	at org.apache.ignite.agent.AgentLauncher.main(AgentLauncher.java:53)
> {code}
> Will be much better if we will be handle such case and show some user-friendly info,
for example the same as with --help option.



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

Mime
View raw message