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

listing scripts that were started with multiple script: arguments is broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.1
    • 1.2.0.1
    • None
    • None

      I am starting a JVM with the byteman agent - specifically, I am installing more than one rule script from the command line. For example, notice the two script: arguments:

      -javaagent:/lib/byteman.jar=listener:true,script:/byteman/One.txt,script:/byteman/Two.txt"

      Each rule file has 2 rule definitions.

      When I use the submit client command line utility to list all rules, the output tells me all 4 rules are from One.txt (the first script: argument). For some reason, when the rules were installed, the two rules from Two.txt got associated with One.txt.

      I did a quick peek with a debugger and org.jboss.byteman.agent.Retransformer.listScripts(PrintWriter) is iterating the rules but is still outputting the wrong script name. I don't know where the bug is originating, but its not in the client (Submit) code.

              rhn-engineering-adinn Andrew Dinn
              jmazzitelli John Mazzitelli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: