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

bin/client Utility Throws ArrayIndexOutOfBoundsException

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.3, 2.4.1, 4.0.0.M2, 4.0.0.M3
    • Component/s: None
    • Labels:
      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

            • Assignee:
              ffang Freeman Fang
              Reporter:
              ffang Freeman Fang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: