Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3403

bin/client Utility Throws ArrayIndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.3, 2.4.1, 4.0.0.M2, 4.0.0.M3
    • None
    • None

    Description

      If you invoke the client with the -r option, but forget to specify a value, the ArrayIndexOutOfBoundsException is thrown. For example:

      ./client -a 8101 -r
      Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
      	at org.apache.karaf.client.Main.main(Main.java:88)
      

      This actually is applicable for other option also, should check if the option value is available and if not, print a more graceful log instead of the ArrayIndexOutOfBoundsException

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: