karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saurabh Garg <garg.saur...@gmail.com>
Subject Error when using tab completion for an Action with no arguments
Date Fri, 06 Apr 2012 19:46:43 GMT
Hello,

I am getting the following error when extending karaf.shell.console. I
have an Action class which does not have any arguments but has couple
of options.
e.g.
cleanConfig
cleanConfig -force
cleanConfig -force -verbose

When I use tab completion after typing cleanConfig, I get the following error:

java.lang.ArrayIndexOutOfBoundsException: -1
        at java.util.ArrayList.get(ArrayList.java:324)
        at org.apache.karaf.shell.console.completer.ArgumentCompleter.complete(ArgumentCompleter.java:307)
        at org.apache.karaf.shell.console.completer.AggregateCompleter$Completion.complete(AggregateCompleter.java:86)
        at org.apache.karaf.shell.console.completer.AggregateCompleter.complete(AggregateCompleter.java:51)
        at org.apache.karaf.shell.console.completer.CommandsCompleter.complete(CommandsCompleter.java:56)
        at org.apache.karaf.shell.console.jline.CompleterAsCompletor.complete(CompleterAsCompletor.java:32)
        at jline.console.ConsoleReader.complete(ConsoleReader.java:1473)
        at jline.console.ConsoleReader.readLine(ConsoleReader.java:1231)
        at jline.console.ConsoleReader.readLine(ConsoleReader.java:1089)
        at org.apache.karaf.shell.console.jline.Console.run(Console.java:194)
        at org.apache.karaf.shell.console.Main.run(Main.java:191)
        at org.apache.karaf.shell.console.Main.run(Main.java:89)

Thanks in advance for any help,

Saurabh

Mime
View raw message