Uploaded image for project: 'Java Mission Control'
  1. Java Mission Control
  2. JMC-6895

Agent Instrumentation fails to emit events when the instrumented class has a different/custom ClassLoader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8.0.0
    • None
    • Mission Control Core
    • None
    • JMC 8.0 Sprint 7 - Last Enh

      When a probe is requested for a class with a different or custom ClassLoader from the one visible to the agent, the agent will inject the event class and metadata but will never emit the events. I've attached a reproducer recreating this behavior. This may be a limitation of the agent, in which case it would make sense to make a note of this on the wiki or in the readme.

      Main.java Main.java probe.xml

        1. Main.java
          4 kB
        2. probe.xml
          1 kB
        3. Reproducer.java
          0.4 kB

            jmatsuoka Joshua Matsuoka
            jmatsuoka Joshua Matsuoka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: