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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.0.0
    • Component/s: Mission Control Core
    • Labels:
      None
    • Subcomponent:
    • Sprint:
      JMC 8.0 Sprint 7 - Last Enh

      Description

      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

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: