GabrielNicolasAvellaneda / jmxquery

Automatically exported from code.google.com/p/jmxquery
1 stars 0 forks source link

After patch for wildcard option jmquery doesn't work for the other option #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I've tried to patch original jmxquery to enable -N option
After patch, when I try to run other option it doesn't work

What is the expected output? What do you see instead?
Expected output is : 
check_jmx -vvv -U service:jmx:rmi:///jndi/rmi://10.230.3.68:2099/jmxrmi -O 
java.lang:type=ClassLoading -A LoadedClassCount
JMX OK - LoadedClassCount is 19105

Received error output :

 check_jmx -vvv -U service:jmx:rmi:///jndi/rmi://10.230.3.68:2099/jmxrmi -O java.lang:type=ClassLoading -A LoadedClassCount
JMX CRITICAL - NullPointerException: null connecting to 
java.lang:type=ClassLoading by URL 
service:jmx:rmi:///jndi/rmi://10.230.3.68:2099/jmxrmijava.lang.NullPointerExcept
ion
        at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:991)
        at java.lang.Double.parseDouble(Double.java:510)
        at jmxquery.JMXQuery.compare(JMXQuery.java:199)
        at jmxquery.JMXQuery.report(JMXQuery.java:147)
        at jmxquery.JMXQuery.main(JMXQuery.java:93)

What version of the product are you using? On what operating system?
1.0

Please provide any additional information below.

Original issue reported on code.google.com by raffaec...@gmail.com on 1 Aug 2011 at 2:35