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

NPE thrown in jboss-cli while defining already defined StringListType attribute

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR12
    • 7.1.0.DR10
    • CLI, User Experience
    • None
    • Hide
      1. Add Elytron extension /extension=org.wildfly.extension.elytron:add
      2. Add Elytron subsystem /subsystem=elytron:add
      3. Reload server :reload
      4. Try to define already defined parameter with StringListType (i.e. paste following command into jboss-cli)
        /subsystem=elytron/provider-loader=providerLoader:add(providers=[{class-names=[com.example.Class]},class-names=[{com.example.AnotherClass}
      5. Press Tab
      Show
      Add Elytron extension /extension=org.wildfly.extension.elytron:add Add Elytron subsystem /subsystem=elytron:add Reload server :reload Try to define already defined parameter with StringListType (i.e. paste following command into jboss-cli) /subsystem=elytron/provider-loader=providerLoader:add(providers=[{class-names=[com.example.Class]},class-names=[{com.example.AnotherClass} Press Tab

      NullPointerException is thrown when user tries to define already (i.e. previously in current command) defined StringListType attribute. This attempt results in following stack trace and termination of jboss-cli.

      /subsystem=elytron/provider-loader=providerLoader:add(providers=[{class-names=[com.example.Class]},class-names=[{com.example.AnotherClass}Exception in thread "Aesh Process Loop 749282235" java.lang.NullPointerException
      	at org.jboss.as.cli.impl.DeploymentItemCompleter.getCandidates(DeploymentItemCompleter.java:80)
      	at org.jboss.as.cli.impl.DeploymentItemCompleter.complete(DeploymentItemCompleter.java:53)
      	at org.jboss.as.cli.impl.ValueTypeCompleter$ValueTypeCallbackHandler.getCandidatesFromMetadata(ValueTypeCompleter.java:433)
      	at org.jboss.as.cli.impl.ValueTypeCompleter$ValueTypeCallbackHandler.getSimpleValues(ValueTypeCompleter.java:690)
      	at org.jboss.as.cli.impl.ValueTypeCompleter$ValueTypeCallbackHandler.getCandidates(ValueTypeCompleter.java:573)
      	at org.jboss.as.cli.impl.ValueTypeCompleter.complete(ValueTypeCompleter.java:346)
      	at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:276)
      	at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:89)
      	at org.jboss.as.cli.CommandCompleter.doComplete(CommandCompleter.java:137)
      	at org.jboss.as.cli.CommandCompleter.complete(CommandCompleter.java:64)
      	at org.jboss.as.cli.impl.Console$Factory$1$1.complete(Console.java:143)
      	at org.jboss.aesh.console.AeshCompletionHandler.complete(AeshCompletionHandler.java:155)
      	at org.jboss.aesh.console.AeshInputProcessor.complete(AeshInputProcessor.java:429)
      	at org.jboss.aesh.console.AeshInputProcessor.parseOperation(AeshInputProcessor.java:166)
      	at org.jboss.aesh.console.Console.processInternalOperation(Console.java:775)
      	at org.jboss.aesh.console.Console.execute(Console.java:735)
      	at org.jboss.aesh.console.Console.access$900(Console.java:73)
      	at org.jboss.aesh.console.Console$6.run(Console.java:644)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

      Expected result:
      No NPE thrown, jboss-cli is not terminated.

              jdenise@redhat.com Jean Francois Denise
              jtymel Jan Tymel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: