Details
-
Feature Request
-
Resolution: Done
-
Optional
-
None
-
None
-
None
-
None
Description
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(); ENDRULE
Is this an OSGi related limit? Am I doing something wrong?