Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-843 Web console development
  3. IGNITE-2304

Improve exceptions handling for ignite-web-agent

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.6
    • wizards
    • None

    Description

      Currently if I start ignite-web-agent with incorrect options it crashes with exception:

      ./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)
      
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pkonstantinov Pavel Konstantinov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: