[
https://issues.jboss.org/browse/AS7-5363?page=com.atlassian.jira.plugin.s...
]
Jeff Mesnil updated AS7-5363:
-----------------------------
Description:
I encountered this issue on both master and 7.1 branches
When pressing TAB to get autocompletion on a path that has already been autocompleted, it
throws a NPE.
{noformat}
$ ./bin/jboss-cli.sh
[disconnected /] connect
[standalone@localhost:9999 /] cd /subsystem=me<TAB>
=> this works and completes the "messaging" address
[standalone@localhost:9999 /] cd /subsystem=messaging<TAB>
=> this throws an NPE
java.lang.NullPointerException
at
org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:349)
at
org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:72)
at
org.jboss.as.cli.operation.OperationRequestCompleter$1.complete(OperationRequestCompleter.java:56)
at
org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:222)
at org.jboss.as.cli.CommandCompleter.complete(CommandCompleter.java:95)
at org.jboss.as.cli.impl.Console$Factory$1$1.complete(Console.java:141)
at jline.ConsoleReader.complete(ConsoleReader.java:832)
at jline.ConsoleReader.readLine(ConsoleReader.java:518)
at jline.ConsoleReader.readLine(ConsoleReader.java:448)
at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:212)
at
org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1109)
at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:243)
at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.modules.Module.run(Module.java:270)
at org.jboss.modules.Main.main(Main.java:294)
{noformat}
iirc, the previous behaviour (that I was expecting) was to propose completion for the
resource children.
was:
I encountered this issue on 7.1 branch
When pressing TAB to get autocompletion on a path that has already been autocompleted, it
throws a NPE.
{noformat}
$ ./bin/jboss-cli.sh
[disconnected /] connect
[standalone@localhost:9999 /] cd /subsystem=me<TAB>
=> this works and completes the "messaging" address
[standalone@localhost:9999 /] cd /subsystem=messaging<TAB>
=> this throws an NPE
java.lang.NullPointerException
at
org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:349)
at
org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:72)
at
org.jboss.as.cli.operation.OperationRequestCompleter$1.complete(OperationRequestCompleter.java:56)
at
org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:222)
at org.jboss.as.cli.CommandCompleter.complete(CommandCompleter.java:95)
at org.jboss.as.cli.impl.Console$Factory$1$1.complete(Console.java:141)
at jline.ConsoleReader.complete(ConsoleReader.java:832)
at jline.ConsoleReader.readLine(ConsoleReader.java:518)
at jline.ConsoleReader.readLine(ConsoleReader.java:448)
at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:212)
at
org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1109)
at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:243)
at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.modules.Module.run(Module.java:270)
at org.jboss.modules.Main.main(Main.java:294)
{noformat}
iirc, the previous behaviour (that I was expecting) was to propose completion for the
resource children.
NPE on tab completion
---------------------
Key: AS7-5363
URL:
https://issues.jboss.org/browse/AS7-5363
Project: Application Server 7
Issue Type: Bug
Components: CLI
Reporter: Jeff Mesnil
Assignee: Alexey Loubyansky
I encountered this issue on both master and 7.1 branches
When pressing TAB to get autocompletion on a path that has already been autocompleted, it
throws a NPE.
{noformat}
$ ./bin/jboss-cli.sh
[disconnected /] connect
[standalone@localhost:9999 /] cd /subsystem=me<TAB>
=> this works and completes the "messaging" address
[standalone@localhost:9999 /] cd /subsystem=messaging<TAB>
=> this throws an NPE
java.lang.NullPointerException
at
org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:349)
at
org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:72)
at
org.jboss.as.cli.operation.OperationRequestCompleter$1.complete(OperationRequestCompleter.java:56)
at
org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:222)
at org.jboss.as.cli.CommandCompleter.complete(CommandCompleter.java:95)
at org.jboss.as.cli.impl.Console$Factory$1$1.complete(Console.java:141)
at jline.ConsoleReader.complete(ConsoleReader.java:832)
at jline.ConsoleReader.readLine(ConsoleReader.java:518)
at jline.ConsoleReader.readLine(ConsoleReader.java:448)
at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:212)
at
org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1109)
at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:243)
at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.modules.Module.run(Module.java:270)
at org.jboss.modules.Main.main(Main.java:294)
{noformat}
iirc, the previous behaviour (that I was expecting) was to propose completion for the
resource children.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira