Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B5165105D8 for ; Mon, 8 Dec 2014 06:40:13 +0000 (UTC) Received: (qmail 59705 invoked by uid 500); 8 Dec 2014 06:40:13 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 59675 invoked by uid 500); 8 Dec 2014 06:40:13 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 59352 invoked by uid 99); 8 Dec 2014 06:40:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2014 06:40:13 +0000 Date: Mon, 8 Dec 2014 06:40:13 +0000 (UTC) From: "Freeman Fang (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (KARAF-3403) bin/client Utility Throws ArrayIndexOutOfBoundsException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-3403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Freeman Fang reassigned KARAF-3403: ----------------------------------- Assignee: Freeman Fang > 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 > > 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)