[jboss-jira] [JBoss JIRA] (AS7-5363) NPE on tab completion

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Tue Aug 14 10:35:16 EDT 2012


     [ https://issues.jboss.org/browse/AS7-5363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated AS7-5363:
----------------------------------

    Fix Version/s: 7.1.3.Final (EAP)
                   7.2.0.Alpha1

    
> 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
>             Fix For: 7.1.3.Final (EAP), 7.2.0.Alpha1
>
>
> 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 at localhost:9999 /] cd /subsystem=me<TAB>
> => this works and completes the "messaging" address
> [standalone at 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

        


More information about the jboss-jira mailing list