Petals ESB CLI

java.lang.ArrayIndexOutOfBoundsException when operand flag is misplaced

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.1.2
  • Fix Version/s: 2.2.0
  • Component/s: Command-line
  • Security Level: Public
  • Description:
    Hide

    With the following Petals CLI, the following error occurs:

    > ./petals-cli.sh -c help --
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
    	at org.ow2.petals.cli.shell.ShellFactory.reworksRemainingArgs(ShellFactory.java:233)
    	at org.ow2.petals.cli.shell.ShellFactory.newShell(ShellFactory.java:141)
    	at org.ow2.petals.cli.Main.run(Main.java:211)
    	at org.ow2.petals.cli.Main.main(Main.java:157)

    The right command to use is (the operand flag is not to the right place):

    > ./petals-cli.sh -c -- help
    Show
    With the following Petals CLI, the following error occurs:
    > ./petals-cli.sh -c help --
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
    	at org.ow2.petals.cli.shell.ShellFactory.reworksRemainingArgs(ShellFactory.java:233)
    	at org.ow2.petals.cli.shell.ShellFactory.newShell(ShellFactory.java:141)
    	at org.ow2.petals.cli.Main.run(Main.java:211)
    	at org.ow2.petals.cli.Main.main(Main.java:157)
    The right command to use is (the operand flag is not to the right place):
    > ./petals-cli.sh -c -- help
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Thu, 10 Apr 2014 - 12:27:14 +0200

Fixed in trunk

Show
Christophe DENEUX added a comment - Thu, 10 Apr 2014 - 12:27:14 +0200 Fixed in trunk

People

Dates

  • Created:
    Thu, 10 Apr 2014 - 11:36:49 +0200
    Updated:
    Thu, 10 Apr 2014 - 12:27:14 +0200
    Resolved:
    Thu, 10 Apr 2014 - 12:27:14 +0200