Log in to follow, share, and participate in this community.
Thread Parse error
Parse errorHi, I'm getting a parse exception with the following simple rule: RULE test CLASS my.class.name METHOD method.name AT ENTRY DO NOTHING ENDRULE I enabled rule debugging and got the followin...
Compiling anonymous typeHi, I have a working set of rules which is not compiled. One of these rules hooks to method call in anonymous type - foo.bar.Foo$4. In the rule I reference a field of this class - actually it is injected final...
Full acccess to an object with bytemanIs it possible to have full access to an object using byteman so that the instance members values can be change at runtime to enforce certain behaviour. I've been playing a bit with it, has someone used byteman to mo...
Thread Is it possible to fire a rule when an object is dereferenced?
Is it possible to fire a rule when an object is dereferenced?I am trying to write a rule that will fire when an object (of a particular class) is dereferenced and becomes available for GC. The object may be set to null, or removed from a collection. I have been look...
Thread Is BYTEMAN_JAVA_OPTS and BYTEMAN_JAVA_ARGS the same thing?
Is BYTEMAN_JAVA_OPTS and BYTEMAN_JAVA_ARGS the same thing?in the bmjava.sh,there is the variable to be setted to allow for extra java opts. but in the comment, it is called BYTEMAN_JAVA_ARGS, and in the code it is BYTEMAN_JAVA_OPTS. Can anybody tell me which one is the ri...
Thread VerifyError when binding thread.getId() and compileToBytecode
VerifyError when binding thread.getId() and compileToBytecodeHI All: I noticed the byteman scripts on my server were not logging when using compileToBytecode in the benchmark environment and created a local test to troubleshoot. The local environment simply logs the thr...
Thread Rule does not fire (missing log entry) at high concurrency
Rule does not fire (missing log entry) at high concurrencyI created simple method entry exit rules to track method execution times (wall time) but some of the rules are not firing when I increase the concurrency for the benchmark. Background I started by using the b...
Question about 'object-tracking'...Hi, Is there any way (built-in expressions or proven rules) to track application-events by matching a change of some objects variables/referenced objects (recursively!) ? What I mean is for example, "l...
Thread AFTER INVOKE bar() with bar() throwing an exception
AFTER INVOKE bar() with bar() throwing an exceptionHi there (Andrew), (I searched the web but haven't found an answer to this problem)... I have a rule that needs to do something after bar() has been invoked, *regardless* of whether bar() returns norma...
Thread METHOD with interface as formal parameter doesn't work
METHOD with interface as formal parameter doesn't workHi, I have a class Person implementing Human and a rule file (see below). I want to intercept the copy constructor of Person, and added line METHOD <init>(bla$Human) to the rule file. H...
Behavior when defining invalid expressionsHi (again) :-) I frequently see byteman drop rules when there is an error in them. I'd prefer this to actually throw an exception, so that I know a given rule is not executed, rather than silently dropping the...
Thread getting java.lang.VerifyError once I set a local variable in hibernate
getting java.lang.VerifyError once I set a local variable in hibernateHi, This is my first attempt at setting a local variable in hibernate/JBoss EAP 5.1.0 code and I'm struggling with trying to figure out why I'm getting a java.lang.VerifyError. The purpose of the rule is to override ...
Problems transforming an EJBHi, I've been testing Byteman (both version 2.1.0 and 2.1.2) lately in a JEE setup on Glassfish 3.1.2 together with Arquillian 1.0.3.Final and Shrinkwrap 1.1.1-alpha. Initially I created a simple test class (...
Discovered problem in Windows batch file.Hello Discovered problem. line feed code of Windows batch file must be CRLF. but Byteman's batch file line feed code is LF only. there's a possibility of unexpected behavior. maybe line feed code is chang...
Thread org.jboss.byteman.agent.submit.Submit a script from the classpath?
org.jboss.byteman.agent.submit.Submit a script from the classpath?Hello, I'm using org.jboss.byteman.agent.submit.#addRulesFromFiles(files). Currently I have to specify a location on the file system for my Byteman script(s). I'd prefer to find these on the classpath. I under...
METHOD and genericsI need to intercept a generic method add(): public class BoundedList<T> { public boolean add(T element) {...} } The rule I use is: RULE dummy CLASS BoundedList METH...
Thread using byteman in production with listener can it be done securely?
using byteman in production with listener can it be done securely?Hi, I've been using byteman in development and it seems it would also be valuable in production on demand without restarting. Byteman's listener option is attractive. Is there a way to secure the port by a password ...
Thread Byteman hanging during BMUnit.unloadScriptFile?
Byteman hanging during BMUnit.unloadScriptFile?Hi, I am using Byteman 2.0.1 to test some crash recovery behaviour over at JBTM. We are having a strange issue where one of our tests occasionally (1 out of 10 runs?) hangs. We have done a kill -3 and ...