Thread BMunit - Loading many rules for all the test
BMunit - Loading many rules for all the testI am trying to come up with a way to load many rules for all the tests. So far, the only way I saw to do this is to manually add the @BMScripts with a list of scripts for each test class. I can also envision h...
Thread Incorrect line numbers reported in traceStack of a byteman rule?
Incorrect line numbers reported in traceStack of a byteman rule?I am using Byteman in investigating some resource leaks within a project. Am currently using the latest released 3.0.10 version of Byteman. The class I'm interested in looks like this: public abstract class A extends ...
Throwing an exception in a try/catch blockI think I hit a limitation and I am trying to investigate if there is a way to work around it. Let's take an example: Example.java ... try { PrintWriter writer = new PrintWr...
How to intercept a stateless session beanHi there, I'm stuck in trying to intercept a stateless session bean... If I set the bean class name and method into the rule, Byteman rule is never called. If I set the local interface name and method...
Thread Need to call external SOAP WebService from Switchyard
Need to call external SOAP WebService from SwitchyardHi, Currently i have installed Red Hat JBoss Developer Studio Version: 10.2.0.GA on my machine. I am familiar only with Hello World Program in Switchyard but i am in need of to invoke an external SOAP ...
Thread Rule for changing message of System.out.println
Rule for changing message of System.out.printlnHi, I wanted to create a simple rule which changes message which is printed by System.out.println. I found having trouble to put it together. I took maven archetype program to get package org.jb...
How to use literal 'long' primitive valueHello. Is it possible to use literal 'long' primitives values in byteman rules, or even float values for that matter? I'm trying to assign a variable with the BIND keyword. If I add 'L' to the numeric literal,...
Thread Trying to instrument the Command Line with Byteman
Trying to instrument the Command Line with BytemanHi all, I'm trying to add some trace functionalities to the application server's CLI with Byteman (3.0.3). I'm having some troubles in getting my rules executed on the entry point (which is org.jboss.as.cli.CommandLi...
Dynamic Byteman Rule InjectionHi, I am using JDK 6. Tried both Byteman versions 2.1.2 and 3.0.6. Both Java program and agent / rule installation and submission of rule is happening on my local Windows machine...
Loading Byteman Rules dynamicallyHi, One of my Java process (A) is running on box A . Another process (B) is running from box B. Process A executes multiple steps one by one , including loading byteman agent dynamically to Process B....
Can Byteman be integrated with Cucumber?Hi, I have seen that Bytemap is compatible with Junit and TestNG. What about Cucumber ? Any plans ? or any version being developed ?
Thread Can we call / write java method from Bytemap .btm file ?
Can we call / write java method from Bytemap .btm file ?Hi, As Byteman modifies the bytecode and it's actions as part od DO can be triggered at runtime, can we have full java code written inside as part of DO in .btm file ? Say, if requirement is - (...
Javagent Bytemap .btm file not workingHi, I am using IntelliJ and have written one simple class with blank main method. I have written one .btm file having below contents:- RULE trace main entry CLASS ThreadInteraction METHOD main AT ENTRY IF...
Thread Rule with Private method not getting invoked
Rule with Private method not getting invokedHi, I am using JDK 8 and 3.0.6 bytemap.jar. I was able to run dsl which prints system.outs at start and end of the method. Not I want to put rule inside some statement of a private static method. How can I d...
Using Byteman from APIHello, I would like to use Byteman within my own application to connect the agent to the same JVM running. So far I am copying the behaviour of loadAgent() in https://github.com/bytemanproject/byteman/blob/mas...