Log in to follow, share, and participate in this community.
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...
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...
Fault Injection Testing With BytemanYou should already be familiar with Byteman and BMUnit . . . This is the Part Three of the Byteman tutorial series, explaining how you can use Byteman to improve the simplicity, quality and coverage of your uni...
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...