Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-232

Some commands throws NPE on tab completion once disconnected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.DR8
    • 7.0.0.DR2
    • CLI
    • None
    • Hide

      Use 'ls <tab>'

      [pkremens@dhcp-10-40-4-189 bin] ./jboss-cli.sh 
      You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
      [disconnected /] ls java.lang.NullPointerException
      	at org.jboss.as.cli.handlers.LsHandler$1.canAppearNext(LsHandler.java:77)
      	at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:161)
      	at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:73)
      	at org.jboss.as.cli.CommandCompleter.doComplete(CommandCompleter.java:126)
      	at org.jboss.as.cli.CommandCompleter.complete(CommandCompleter.java:63)
      	at org.jboss.as.cli.impl.Console$Factory$1$1.complete(Console.java:122)
      	at org.jboss.aesh.console.Console.complete(Console.java:1227)
      	at org.jboss.aesh.console.Console.parseOperation(Console.java:551)
      	at org.jboss.aesh.console.Console.read(Console.java:453)
      	at org.jboss.aesh.console.Console.read(Console.java:347)
      	at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:198)
      	at org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1327)
      	at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:272)
      	at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:45)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.jboss.modules.Module.run(Module.java:308)
      	at org.jboss.modules.Main.main(Main.java:487)
      
      Show
      Use 'ls <tab>' [pkremens@dhcp-10-40-4-189 bin] ./jboss-cli.sh You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands. [disconnected /] ls java.lang.NullPointerException at org.jboss.as.cli.handlers.LsHandler$1.canAppearNext(LsHandler.java:77) at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:161) at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:73) at org.jboss.as.cli.CommandCompleter.doComplete(CommandCompleter.java:126) at org.jboss.as.cli.CommandCompleter.complete(CommandCompleter.java:63) at org.jboss.as.cli.impl.Console$Factory$1$1.complete(Console.java:122) at org.jboss.aesh.console.Console.complete(Console.java:1227) at org.jboss.aesh.console.Console.parseOperation(Console.java:551) at org.jboss.aesh.console.Console.read(Console.java:453) at org.jboss.aesh.console.Console.read(Console.java:347) at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:198) at org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1327) at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:272) at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:45) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.jboss.modules.Module.run(Module.java:308) at org.jboss.modules.Main.main(Main.java:487)

      Some commands throws NullPointerException when CLI is disconnected from controller and user tries to use tab completion (so far I found these: ls, read-attribute, read-operation).

      No exception is thrown with 6.4.0.GA

              olubyans@redhat.com Alexey Loubyansky
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: