Subject: | Error with using jmx4perl and list directive |
Date: | Tue, 13 Jun 2017 10:05:24 +0000 |
To: | "bug-jmx4perl [...] rt.cpan.org" <bug-jmx4perl [...] rt.cpan.org> |
From: | Dave Ford <D.Ford [...] bath.ac.uk> |
I've recently installed Jolokia into an a Tomcat 7 service running on
Ubuntu 16.04 machine.
Everything appears to work as documented but jmx4perl, version 1.12,
fails when I attempt to run the 'list' command.
Use of uninitialized value in subroutine entry at
/usr/share/perl5/URI/Escape.pm line 184.
Can't use string ("XXXXXXXXX"...) as a HASH ref while "strict refs" in
use at /usr/local/share/perl/5.22.1/JMX/Jmx4Perl.pm line 1089.
Where the string XXXXX changes between values such as
"org.apache.tomcat.util.modeler.B", "sun.management.ManagementFactory",
"sun.management.DiagnosticCommand","org.jolokia.backend.Config"
and other values on a seemingly random basis.
J4psh does seem to work, but throws two warnings when it starts:
Use of uninitialized value in subroutine entry at
/usr/share/perl5/URI/Escape.pm line 184.
Use of uninitialized value in subroutine entry at
/usr/share/perl5/URI/Escape.pm line 184.
Which I assume is related to the same problem given the line number.
I'm afraid my knowledge of Perl is extremely limited, and am also just
getting started with JMX - so am quite happy to accept that this is an
operator error, but if it is I cannot see what I'm doing wrong.
Thanks
Dave