Log in to follow, share, and participate in this community.
Thread problem using AFTER WRITE on local variable
problem using AFTER WRITE on local variableI'm having trouble using AFTER WRITE on a local variable. Here's a snippet of my class (see attached). public class Foo { ... public voi...
Rule condition causes VerifyErrorHi, I am having a problem defining a bm script that has the following condition IF -1 != $e.getMessage().indexOf("timed") This is the error message $ bin/bmsubmit.sh ~/java/jboss/byteman/byte...
Unknown local variable WARNING.Hi, When using bmcheck on a Byteman script I am seeing two warnings. The script attempts to use a scoped reference to an exception in an expression. Looking at the documentation I don't see exceptions listed in th...
Thread Unexpected exception transforming using bmcheck
Unexpected exception transforming using bmcheckHi, I am using Byteman to expose counters for particular events in the system my team is using. I have found the execution of the JMXHelper to work successfully to expose the counter on transformed bytecode...
Using Byteman to micro-benmark my appHello, I am using Byteman to measure some methods in my project. I needed the Instrumentation object to calculate objects size, but could not find it out from inside Helper class. Looking at HelperManager in...
Thread Cannot use Byteman's keywords for Java class and property name
Cannot use Byteman's keywords for Java class and property nameHi, Byteman has some reserved words and you cannot use them for a Java class and property name if you want to set a trigger point on the class or use the property in your rule. This is fine, but the reserved w...
BMRule and multiple bindsHi, I am using some BMRules : @BMRules(rules = { @BMRule(name = "create countDown for SomeOtherObject", targetClass = "SomeOtherObject", ...
RICHFACE TREE NODEI wnat to highlight the tree node in tree view. I ma usin Richface4.0.0. My tree is working fine and I am using <rich:tree> and <rich:treenode>.
Use of generics in helper class methodsHi, I am new to using Byteman and have come across an issue that I can't seem to resolve and can't find any information on. I've cut out any extra code and just put in the code i'm having difficulty wi...
Function returning arrayHi everybody, I am trying to use $! to trace the length of the array that my function is returning. However, I am not able to do it. - Is it supported (using 1.0.4) RULE Monitor MO requests CL...
Can a Byteman helper throw an Exception?Hello, I'd like to make a rule with byteman 1.6.0 that intercepts all calls to a certain method. It would then do something like: //doSomething
try {
originalObject.doOriginalCall()
} catc...
Thread Injecting code into JVM classes using Byteman 1.0.3 and Java 5 JVM
Injecting code into JVM classes using Byteman 1.0.3 and Java 5 JVMHello, I try to inject code into JVM classes and unfortuantly I need to do this on a system running Java 5 JVM, so I'm stuck using byteman 1.0.3. However using byteman 1.0.3 I fail to get the result I expect....
Caught ReturnException: Why?Hi, i am trying Byteman to manipultate a method logic RULE RuleManipulateSomeCustomersInService CLASS CustomerServiceImpl METHOD _getCustomersByName(String) AT ENTRY BIND service = $0, cu...
Many byteman run in the same deviceHi, I going to explain what I did and what is my usecase with byteman. Actually I'm using byteman to count how many SQL queries are executed during an unit test. Since my test suite is executed by jenkins, I ...
Broken links in Documentation pageHi, is it just me or the link in the documentation page are not working? I'm talking about the links to Programmer's guide Thanks, Davide
Problem using callerEquals in rule.Hi, I have a rule to check the call stack. When it equals a caller in the stack byteman will print a debug message. I am finding the boolean condition callerEquals is not true as expected. This is my rule ...
Simple field write doesn't work ?I have a simple class: {code} @Test(groups=Global.BYTEMAN,sequential=true) public class BytemanTest extends BMNGRunner { protected volatile boolean resending; &...
Use Byteman to debug an RCP applicationI'm trying to use Byteman to debug an RCP application, but I can't make it work. I tried adding the arguments to the command line and to an .ini file, with no success. Has anyone ever tried it before?