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

Support for Apache Karaf / JBoss Fuse



    • Feature Request
    • Status: Closed (View Workflow)
    • Optional
    • Resolution: Done
    • None
    • None
    • None
    • None


      Hi, I was experimenting with Byteman and Fabric8/JBoss Fuse.

      I couldn't have a totally working solution, despite I think I wasn't fare from it:

      I have injected the agent, either as a boot time system property or at runtime.
      According to debug messages it's been deployed correctly.
      Then I have deployed Byteman jar as a wrapped OSGi bundle, so that a proper class loader for that .jar was created and made available to all the other bundles.
      As a last thing I have installed a set of simple rules that were probing all the supported methods to print some debug information, but I couldn't read anything.

      Shell showed that my rule was triggered:

      Rule.execute called for test byteman osgi_6
      Rule.execute for decommissioned key test byteman osgi_6

      but no output at all.

      This is my rule, modified to raise an explicit exception, hoping to find any other effect other than printing a message, but not even the exception was raised:

      RULE test byteman osgi
      CLASS org.apache.karaf.shell.scr.action.ListAction
      METHOD printComponent
      AT ENTRY
      IF TRUE
      DO System.out.println("=============== this is sysout");
      	System.err.println("=============== this is syserr");
      	debug("============= this uses debug");
      	info("============= this uses info");
      	traceln("==================== paolo waz here:");
      	throw new RuntimeException();

      Is this an OSGi related limit? Am I doing something wrong?




            rhn-engineering-adinn Andrew Dinn
            pantinor@redhat.com Paolo Antinori
            0 Vote for this issue
            2 Start watching this issue