Log in to follow, share, and participate in this community.
Thread CFG necessary?
CFG necessary?Hi, Now I'm browsing through byteman source code, thinking about how to implement my goals (which is a bit vague). I'm particularly interested in how byteman implemented $^ as well as $!, and what I s...
Instrumentation based on Annotation?Hi, (This is bad...) Is there a way for a rule to be triggered based on injection? (I'm expecting "No) The problem: I'm trying to instrument EJB calls. It appears (I'm a java newbie) that EJB classes ...
Accessing objects of private classHi all, I am trying to trace how servlet handles requests. My rule is: RULE servlet start in FilterChain INTERFACE javax.servlet.FilterChain METHOD void doFilter(javax.servlet.ServletRequest, javax.s...
Thread Unable to deploy multiple application in jboss EAP 6.4
Unable to deploy multiple application in jboss EAP 6.4Hi All, Currently i am facing an ugly error in JBoss EAP 6.4 that when i deploy multiple application in Jboss EAP 6.4 am getting some stupid error which i could not identify why such error is occuring. ...
Strange StackOverFlowError for Proxy classHi Andrew, (It's me again.) Not really a narrowed-down report, but I'd like to share in case anyone has any idea. Background: I'm trying to trace all jdbc prepared statements (among other things.) The...
Thread Is it possible to use Byteman on Java 1.6.0_45-b06?
Is it possible to use Byteman on Java 1.6.0_45-b06?I'm trying to run Byteman on an old project that has to use Java 6. I was under the impression that this would work, but it looks like there's a bug with how java agents work that actually prevents byteman from runnin...
Using Byteman to debug Connection refused.Hi, I am using Byteman to debug the cause of "Connection refused" errors. Byteman is the tool to unobtrusively help diagnose such problems. I wrote a script to dump some useful information. Like the URL tha...
Thread Way to define common IMPORT for JBoss modules byteman plugin
Way to define common IMPORT for JBoss modules byteman pluginHi, I search for way how to set a jboss module to be imported by default when using jboss modules plugin. I mean is there some way, e.g. by some system property, how to define a jboss module to be imported wi...
Thread Errors in simple fault injection with TestNG and maven
Errors in simple fault injection with TestNG and mavenHi All : I am trying to modify the TestNG test case in the tutorial "BMUnit : Using Byteman with JUnit or TestNG from maven and ant". But there some errors I cannot figure it out. The modified ...
Thread Invalid constructor for target class error message.
Invalid constructor for target class error message.Hi, I am getting this error org.jboss.byteman.rule.exception.TypeException: NewExpression.typeCheck : invalid constructor for target class java.io.PrintWriter file /home/whiti ngjr/agamemnon/work/redhat/jav...
Proper usage example for $@?Here's some Byteman rules that work fine: RULE trace SLServer initCoreServices at getInstance CLASS ^com.empolis.ecls.server.system.server.Server METHOD initCoreServices AT INVOKE getInstance ALL IF true...
Thread Byteman preventing Wildfly 8.1.0 from starting?
Byteman preventing Wildfly 8.1.0 from starting?When my wildfly 8.1.0 server starts up, it should create an instance of a class. I'm not sure whether that's happening or not, and I'm unable to change the source code, so I figured I would use Byteman to acco...
Thread Broken download links for earlier versions of Byteman
Broken download links for earlier versions of BytemanHello, I'm in the unfortunate situation of having to debug an issue with an OAS application server running on Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_22-b03, mixed mode). I was planning on using Byteman...
Accessing counter from BMUnitI would like to assert in my JUnit test how many times a certain method has executed. For this I create a rule that creates a counter by calling "createCounter()". How can I access the value of this counter from my JU...
BMUnit against a remote JVMHi, I would like to test an application that is already running in another JVM with BMUnit. I see that it is possible to specify a host:port in the @BMUnitConfig annotation, but I dont understand the details. ...
Invalid stack height compiler errorHello Byteman I'm using a set of rules to examine thread pool usage in Wildfly. The same ruleset compiles and executes on Wildfly when running locally, but fails to pass a type check when running on a re...
Shared state across rule executionsHello Byteman I have a set of rules which need to share state - one rule has access to some arbitrary state during its execution and another rule needs that state. For example, when creating a thread ...
Accessing classes behind field interfacesHello Andrew If class A has an instance variable b of type class B, I can access the variable b in a rule triggered by a method in A like this:
RULE test
CLASS A
METHOD <init>
AT EXIT
BIND
...