Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-139

Fix UnknownFormatConversionException in JMXHelper.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 1.5.0
    • 1.4.1
    • Samples
    • Hide

      Try using the JMXHelper to expose the stats bean. An exception will be thrown when initialise is called.

      Show
      Try using the JMXHelper to expose the stats bean. An exception will be thrown when initialise is called.
    • Hide

      This rule change the format string would work however the JMX_URL field is static. It may not be possible to trigger a rule for these.

      RULE fix-url
      CLASS JMXHelper
      METHOD initialise
      AFTER READ JMX_URL
      DO RETURN "service:jmx:rmi:///jndi/rmi://%1$s:%2$d/jmxrmi"
      ENDRULE

      Show
      This rule change the format string would work however the JMX_URL field is static. It may not be possible to trigger a rule for these. RULE fix-url CLASS JMXHelper METHOD initialise AFTER READ JMX_URL DO RETURN "service:jmx:rmi:///jndi/rmi://%1$s:%2$d/jmxrmi" ENDRULE

      The jmx url uses an unrecognised format symbol "i". It should be "d".

      The included patch changes the sybmol used.

              rhn-engineering-adinn Andrew Dinn
              jwhiting@redhat.com Jeremy Whiting
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: