[
http://jira.jboss.com/jira/browse/JBAS-3454?page=comments#action_12341017 ]
Sakthi Samabsivam commented on JBAS-3454:
-----------------------------------------
When we try to set MBean attribute using SetCommand class, the arguments are filtered by
the Getopt utility class used in the SetCommand class. But, the validity
of the arguments should (can) be checked by the corresponding MBeans instead of the GetOpt
class.I modified the set command class based on this idea.
Unable to set negative values for MBean attributes using Twiddle
command
--------------------------------------------------------------------------
Key: JBAS-3454
URL:
http://jira.jboss.com/jira/browse/JBAS-3454
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Other
Affects Versions: JBossAS-4.0.3 SP1
Reporter: Sakthi Samabsivam
Priority: Minor
When a customer tries to execute twiddle to set a negative value for one of the
attributes, it throws the exception.
For example when I try to set a Scheduler MBean InitialRepitions value to -1, it fails.
Command: twiddle set "jboss:service=Scheduler" "InitialRepetitions"
"-1".
Possible problem might be, GetOpt class used in the org.jboss.console.twiddle.SetCommand
Class is not accepting the -ve values.It consider the -ve numbers as
an invalid option.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira