-
Bug
-
Resolution: Done
-
Major
-
None
-
None
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.
- clones
-
JBEAP-8313 NPE thrown in jboss-cli while defining already defined StringListType attribute
- Closed
- relates to
-
WFCORE-2226 Add @Test annotation to a test in ValueTypeCompletionTestCase
- Resolved