Petals ESB CLI

NullPointerException when trying to complete the command 'monitoring'

Details

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

    Using the key 'TAB' to complete the following command 'monitoring -o':

    petals-cli>monitoring -o ERROR: An unexpected error occurred. Use the -d option for more information.
    
    java.lang.NullPointerException
    	at org.ow2.petals.cli.shell.CommandCompleter.completeOptionValue(CommandCompleter.java:113)
    	at org.ow2.petals.cli.shell.CommandCompleter.completeOptionOrArgument(CommandCompleter.java:99)
    	at org.ow2.petals.cli.shell.CommandCompleter.complete(CommandCompleter.java:58)
    	at jline.console.ConsoleReader.complete(ConsoleReader.java:1581)
    	at jline.console.ConsoleReader.readLine(ConsoleReader.java:1290)
    	at jline.console.ConsoleReader.readLine(ConsoleReader.java:1117)
    	at jline.console.ConsoleReader.readLine(ConsoleReader.java:1105)
    	at org.ow2.petals.cli.shell.PetalsInteractiveCli.run(PetalsInteractiveCli.java:80)
    	at org.ow2.petals.cli.Main.run(Main.java:228)
    	at org.ow2.petals.cli.Main.main(Main.java:157)
    Show
    Using the key 'TAB' to complete the following command 'monitoring -o':
    petals-cli>monitoring -o ERROR: An unexpected error occurred. Use the -d option for more information.
    
    java.lang.NullPointerException
    	at org.ow2.petals.cli.shell.CommandCompleter.completeOptionValue(CommandCompleter.java:113)
    	at org.ow2.petals.cli.shell.CommandCompleter.completeOptionOrArgument(CommandCompleter.java:99)
    	at org.ow2.petals.cli.shell.CommandCompleter.complete(CommandCompleter.java:58)
    	at jline.console.ConsoleReader.complete(ConsoleReader.java:1581)
    	at jline.console.ConsoleReader.readLine(ConsoleReader.java:1290)
    	at jline.console.ConsoleReader.readLine(ConsoleReader.java:1117)
    	at jline.console.ConsoleReader.readLine(ConsoleReader.java:1105)
    	at org.ow2.petals.cli.shell.PetalsInteractiveCli.run(PetalsInteractiveCli.java:80)
    	at org.ow2.petals.cli.Main.run(Main.java:228)
    	at org.ow2.petals.cli.Main.main(Main.java:157)
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Tue, 1 Jul 2014 - 08:21:11 +0200 - edited

Not only the completion should not fail, but available monitoring objects should be displayed for '-o'

Show
Christophe DENEUX added a comment - Tue, 1 Jul 2014 - 08:21:11 +0200 - edited Not only the completion should not fail, but available monitoring objects should be displayed for '-o'
Hide
Christophe DENEUX added a comment - Tue, 1 Jul 2014 - 09:13:25 +0200

Fixed in branch petals-esb-enterprise-edition-4.2.x

Show
Christophe DENEUX added a comment - Tue, 1 Jul 2014 - 09:13:25 +0200 Fixed in branch petals-esb-enterprise-edition-4.2.x
Hide
Christophe DENEUX added a comment - Tue, 1 Jul 2014 - 09:13:35 +0200

To merge in trunk

Show
Christophe DENEUX added a comment - Tue, 1 Jul 2014 - 09:13:35 +0200 To merge in trunk
Hide
Christophe DENEUX added a comment - Tue, 1 Jul 2014 - 12:58:32 +0200

Merged in trunk

Show
Christophe DENEUX added a comment - Tue, 1 Jul 2014 - 12:58:32 +0200 Merged in trunk

People

Dates

  • Created:
    Tue, 1 Jul 2014 - 08:19:59 +0200
    Updated:
    Tue, 1 Jul 2014 - 12:58:32 +0200
    Resolved:
    Tue, 1 Jul 2014 - 12:58:32 +0200