[
https://issues.apache.org/jira/browse/KARAF-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Freeman Fang resolved KARAF-3403.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.4.1
3.0.3
4.0.0
commit fix
http://git-wip-us.apache.org/repos/asf/karaf/commit/86aff6b1 for karaf-3.0.x
branch
http://git-wip-us.apache.org/repos/asf/karaf/commit/3648bc22 for karaf-2.x
branch
http://git-wip-us.apache.org/repos/asf/karaf/commit/82af9304 for master
> bin/client Utility Throws ArrayIndexOutOfBoundsException
> ---------------------------------------------------------
>
> Key: KARAF-3403
> URL: https://issues.apache.org/jira/browse/KARAF-3403
> Project: Karaf
> Issue Type: Improvement
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Fix For: 4.0.0, 3.0.3, 2.4.1
>
>
> If you invoke the client with the -r option, but forget to specify a value,
> the ArrayIndexOutOfBoundsException is thrown. For example:
> {code}
> ./client -a 8101 -r
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
> at org.apache.karaf.client.Main.main(Main.java:88)
> {code}
> 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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)