Bug 977407 - jboss-cli.sh throws IllegalArgumentException when using tab complete
Summary: jboss-cli.sh throws IllegalArgumentException when using tab complete
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: CLI
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER1
: EAP 6.2.0
Assignee: Alexey Loubyansky
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-24 13:30 UTC by Thomas Hauser
Modified: 2014-05-27 01:28 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-12-15 16:21:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-1574 0 Major Resolved jboss-cli.sh throws IllegalArgumentException when using tab complete 2016-02-22 16:19:16 UTC

Description Thomas Hauser 2013-06-24 13:30:57 UTC
Description of problem:
When using tab complete to try and auto-fill values or get hints as to the allowed values for certain attributes, an IllegalArgumentException is thrown.

Version-Release number of selected component (if applicable):
I believe it to be 7.2.0.Final-redhat-8. 

How reproducible:
Always.

Steps to Reproduce:
1) Start the server in standalone or domain mode. (Either --admin-only or normal).

2) Start the jboss-cli.sh session:
./jboss-cli.sh -c

3) Run the following command to create a security-domain:
Standalone:
/subsystem=security/security-domain=new:add()
Domain:
/profile=full/subsystem=security/security-domain=new:add()

4) Enter the following text: 
Standalone:
/subsystem=security/security-domain=new/jsse=classic:add(keystore={password=
Domain:
/profile=full/subsystem=security/security-domain=new/jsse=classic:add(keystore={password=

5) Press tab.
View stacktrace: http://pastebin.test.redhat.com/148578

Actual results:
Stacktrace is thrown and jboss-cli.sh crashes completely.

Expected results:
Either helper values are displayed, or nothing is displayed (depending upon the type of the attribute in question)

Additional info:
Would be nice to have this fixed for the upcoming SOA release.

Comment 1 Thomas Hauser 2013-06-24 13:56:03 UTC
See https://issues.jboss.org/browse/WFLY-1574

Comment 3 Thomas Hauser 2013-08-02 15:53:25 UTC
This issue also occurs whenever trying to use tab complete in the following situation:

1) [domain@localhost:9999 /] /subsystem=(

2) [domain@localhost:9999 /] /=(

Pressing tab in any case where a field should contain something before the ( character results in this stacktrace: 

java.lang.IllegalArgumentException: The argument value is not specified for name: 'null'
	at org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.addProperty(DefaultOperationRequestBuilder.java:113)
	at org.jboss.as.cli.operation.impl.DefaultOperationCandidatesProvider.getProperties(DefaultOperationCandidatesProvider.java:209)
	at org.jboss.as.cli.operation.impl.DefaultOperationCandidatesProvider.getProperties(DefaultOperationCandidatesProvider.java:52)
	at org.jboss.as.cli.operation.OperationRequestCompleter.complete(OperationRequestCompleter.java:142)
	at org.jboss.as.cli.CommandCompleter.complete(CommandCompleter.java:95)
	at org.jboss.as.cli.impl.Console$Factory$1$1.complete(Console.java:101)
	at org.jboss.aesh.console.Console.complete(Console.java:1087)
	at org.jboss.aesh.console.Console.parseOperation(Console.java:486)
	at org.jboss.aesh.console.Console.read(Console.java:389)
	at org.jboss.aesh.console.Console.read(Console.java:341)
	at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:177)
	at org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1182)
	at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:259)
	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:606)
	at org.jboss.modules.Module.run(Module.java:270)
	at org.jboss.modules.Main.main(Main.java:411)

Comment 5 Petr Kremensky 2013-09-18 09:49:33 UTC
Verified on EAP 6.2.0.ER2


Note You need to log in before you can comment on or make changes to this bug.