Issue Details (XML | Word | Printable)

Key: GLASSFISH-19147
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: zhouronghui
Reporter: zhouronghui
Votes: 0
Watchers: 1

If you were logged in you would be able to see more operations.

IllegalArgumentException was thrown out when excute the set sub-command

Created: 12/Oct/12 07:37 AM   Updated: 16/Oct/12 04:23 AM   Resolved: 16/Oct/12 04:23 AM
Component/s: admin
Affects Version/s: 4.0_b56_ms5
Fix Version/s: 4.0_b58

Time Tracking:
Not Specified

File Attachments: 1. Text File GLASSFISH-19147.patch (0.6 kB) 12/Oct/12 07:46 AM - zhouronghui


Windows XP, Windows 7

Tags: set sub-command
Participants: zhouronghui

 Description  « Hide

[Bug Description]
When excute the set sub-command in multi-mode, IllegalArgumentException
was thrown out and exit the multi-mode of asadmin command.

Open a command and type as ""asadmin"" to enter the multi-mode, then
execute the set command as follow:

asadmin>set --help
Exception in thread ""main"" java.lang.IllegalArgumentException: Null Argument
  at com.sun.enterprise.admin.util.TokenValue.<init>(
  at com.sun.enterprise.admin.cli.CLICommand.expandManPage(
  at com.sun.enterprise.admin.cli.CLICommand.checkHelp(
  at com.sun.enterprise.admin.cli.CLICommand.execute(
  at com.sun.enterprise.admin.cli.remote.RemoteCLICommand.execute(RemoteCL
  at com.sun.enterprise.admin.cli.MultimodeCommand.executeCommands(Multimo
  at com.sun.enterprise.admin.cli.MultimodeCommand.executeCommand(Multimod
  at com.sun.enterprise.admin.cli.CLICommand.execute(
  at com.sun.enterprise.admin.cli.AsadminMain.executeCommand(AsadminMain.j
  at com.sun.enterprise.admin.cli.AsadminMain.doMain(
  at com.sun.enterprise.admin.cli.AsadminMain.main(

PS: If type an unknown options of the set command in the multi-mode,
the usage message was include some words "null".

asadmin>set --unknown
Invalid option: --unknown
Usage: null [null-utility-options] set [-?|--help[=<help(default:false)>]]
Command set failed.

[affected versions]
1 4.0_b56_ms2
2 gf's trunk until 2012/10/11

zhouronghui added a comment - 12/Oct/12 07:51 AM

Hi Tom

I found the bug when test set sub-command in multimode.
And I think that the bug is caused by the omitting of
commandName in

I make a patch for this, and I have run QL for this patch.
Could you please check the patch?
If the patch is OK, I will commit it.

Thank you.

zhouronghui added a comment - 14/Oct/12 08:03 AM

Tom have reviewed the patch, and it have been committed.
While the nightly build was published, I will check the patch and
close this ISSUE.

zhouronghui added a comment - 16/Oct/12 04:22 AM

Fixed on the trunk in revision 56448.

zhouronghui added a comment - 16/Oct/12 04:23 AM

Fixed on the trunk in revision 55997.