Skip Menu |

This queue is for tickets about the jmx4perl CPAN distribution.

Report information
The Basics
Id: 72747
Status: resolved
Priority: 0/
Queue: jmx4perl

People
Owner: Nobody in particular
Requestors: hschoppik [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.04



Subject: Bug: jmx4perl is returning [false] for Strings/Longs
Date: Sun, 27 Nov 2011 02:54:10 -0500
To: bug-jmx4perl [...] rt.cpan.org
From: Haim Schoppik <hschoppik [...] gmail.com>
OS: 64bit Ubuntu 10.04 LTS perl 5.10.1 jmx4perl 1.03 plman@tron:~$ jmx4perl http://10.25.34.140:8888/jolokia read java.lang:type=Runtime Uptime [false] plman@tron:~$ jmx4perl --verbose http://10.25.34.140:8888/jolokia read java.lang:type=Runtime Uptime GET http://10.25.34.140:8888/jolokia/read/java.lang%3Atype%3DRuntime/Uptime =========================================================== HTTP/1.1 200 OK Connection: close Date: Sun, 27 Nov 2011 07:49:34 GMT Server: Jetty(7.4.5.v20110725) Content-Type: text/plain;charset=UTF-8 Client-Date: Sun, 27 Nov 2011 07:49:34 GMT Client-Peer: 10.25.34.140:8888 Client-Response-Num: 1 {"timestamp":1322380174,"status":200,"request":{"mbean":"java.lang:type=Runtime","attribute":"Uptime","type":"read"},"value":2755596} =========================================================== [false] When I tried writing a quick program using JMX it seemed to work fine? plman@tron:/var/tmp/sad$ cat sad.pl #!/usr/bin/perl use Data::Dumper; use JMX::Jmx4Perl; use JMX::Jmx4Perl::Request; my $jmx = new JMX::Jmx4Perl(url => "http://10.25.34.140:8888/jolokia", product => "jetty"); my $request = new JMX::Jmx4Perl::Request({type => READ, mbean => "java.lang:type=Runtime", attribute => "Uptime"}); my $response = $jmx->request($request); print "Uptime: ",$response->value(),"\n"; plman@tron:/var/tmp/sad$ ./sad.pl Uptime: 2836702 Any thoughts? Need for information? Let me know, and thanks in advance for what I hope will be an incredibly useful tool. - H
Hi Haim,

thanks a lot, you spotted a serious bug which was introduced in the latest 1.03. I just immediately released 1.04 which should be available soon at all the CPAN mirrors. Please let me know, whether it works now for you (another option would be to downgrade to 1.01).


thanks ...
... roland

Subject: Re: [rt.cpan.org #72747] Bug: jmx4perl is returning [false] for Strings/Longs
Date: Sun, 27 Nov 2011 21:45:36 +0000
To: bug-jmx4perl [...] rt.cpan.org
From: hschoppik [...] gmail.com
The new version seems to have solved my issue. I'll keep poking around and thanks for the quick fix! - H Show quoted text
------Original Message------ From: Roland Huss via RT To: hschoppik@gmail.com ReplyTo: bug-jmx4perl@rt.cpan.org Subject: [rt.cpan.org #72747] Bug: jmx4perl is returning [false] for Strings/Longs Sent: Nov 27, 2011 3:52 AM <URL: https://rt.cpan.org/Ticket/Display.html?id=72747 > Hi Haim, thanks a lot, you spotted a serious bug which was introduced in the latest 1.03. I just immediately released 1.04 which should be available soon at all the CPAN mirrors. Please let me know, whether it works now for you (another option would be to downgrade to 1.01). thanks ... ... roland