negative integer arguments for operations are not supported
Bug #319908 reported by
Jiaqi Guo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Jmxterm |
Fix Released
|
Medium
|
Jiaqi Guo |
Bug Description
This is a bug reported in sourceforge tracker https:/
I tried to use jmxterm to run a operation that requires using negative
numbers. The call fails with the following message.
This is using version 0.2 (uber jar)
>$ run scanLog -48 0
MalformedArgExc
[scanLog, -48, 0]
Thanks for your hard work, jmxterm is fantastic!
Changed in jmxterm: | |
importance: | Undecided → Medium |
Changed in jmxterm: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Problem exists in current version. -123 confuses command parser since it can be an option named "123". I think such expression should be quot'ed
$>set Port -12345 p.jcli. annotation. MalformedArgExc eption: Apache Jakarta commons-cli couldn't parse arguments [Port, -12345] p.jcli. jccli.JakartaCo mmonsCliParser. parse(JakartaCo mmonsCliParser. java:98) p.jmxterm. cc.CommandCente r.doExecute( CommandCenter. java:158) p.jmxterm. cc.CommandCente r.doExecute( CommandCenter. java:140) p.jmxterm. cc.CommandCente r.execute( CommandCenter. java:194) p.jmxterm. boot.CliMain. execute( CliMain. java:148) p.jmxterm. boot.CliMain. main(CliMain. java:48) NativeMethodAcc essorImpl. invoke0( Native Method) NativeMethodAcc essorImpl. invoke( NativeMethodAcc essorImpl. java:39) DelegatingMetho dAccessorImpl. invoke( DelegatingMetho dAccessorImpl. java:25) reflect. Method. invoke( Method. java:597) classworlds. Launcher. launchStandard( Launcher. java:353) classworlds. Launcher. launch( Launcher. java:264) classworlds. Launcher. mainWithExitCod e(Launcher. java:430) classworlds. Launcher. main(Launcher. java:375) NativeMethodAcc essorImpl. invoke0( Native Method) NativeMethodAcc essorImpl. invoke( NativeMethodAcc essorImpl. java:39) DelegatingMetho dAccessorImpl. invoke( DelegatingMetho dAccessorImpl. java:25) reflect. Method. invoke( Method. java:597) classworlds. uberjar. boot.Bootstrapp er.bootstrap( Bootstrapper. java:209) classworlds. uberjar. boot.Bootstrapp er.main( Bootstrapper. java:116) commons. cli.Unrecognize dOptionExceptio n: Unrecognized option: -12345 commons. cli.Parser. processOption( Parser. java:379) commons. cli.Parser. parse(Parser. java:193) commons. cli.Parser. parse(Parser. java:71) p.jcli. jccli.JakartaCo mmonsCliParser. parse(JakartaCo mmonsCliParser. java:94)
org.cyclopsgrou
at org.cyclopsgrou
at org.cyclopsgrou
at org.cyclopsgrou
at org.cyclopsgrou
at org.cyclopsgrou
at org.cyclopsgrou
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
at org.codehaus.
at org.codehaus.
at org.codehaus.
at org.codehaus.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
at org.codehaus.
at org.codehaus.
Caused by: org.apache.
at org.apache.
at org.apache.
at org.apache.
at org.cyclopsgrou
... 19 more