• CompileException invalid stack height 2 expecting 1

    Hi, I am getting this exception when a Byteman Rule is being initially loaded on my server.   19:58:18,028 INFO  [stdout] (ServerService Thread Pool -- 60) Rule.ensureTypeCheckedCompiled : error compiling...
    Profile Photo
    last modified by whitingjr
  • [annouce] BytemanPkg 1.2.1 available on GitHub site

    As announced few weeks ago, i began a project BytemanPkg A new version 1.2.1 of BytemanPkg is available. https://github.com/PASTJL/bytemanPkg/ This version correct bugs on Helpers ( MultiThreading) and brings imp...
    Profile Photo
    created by pasturel
  • A small question from a starter

    Hi All,      I am confused how to get a local variable within the target method scope. for example: public class LocalVar {     public static void main(String[] args){   ...
    Profile Photo
    last modified by flyaway_921
  • Maven + Surefire + Byteman + java.io.tmpdir = Tests failures

    Hi all,     We are using in our project Byteman with our Junit Tests Managed by Maven and its surefire plugin to add some additionnal controls (number of jdbc queries used for ex).   Cleaning up our b...
    Profile Photo
    last modified by aheritier
  • Skipping code with Byteman?

    I want to post to the forum a conversation I had with Andrew, in the hope it might be useful to someone.   --------------------------------------------------------------------------------------------------------...
    Profile Photo
    last modified by ron_sigal
  • [announce] a byteman rule packager

    Hello, i have just finished a byteman rules packager. A library of about fifteen template rules and helpers. You can download it at GitHub repo => https://github.com/PASTJL/bytemanPkg here is the readme for more ...
    Profile Photo
    last modified by pasturel
  • java.lang.VerifyError when using byteman in JBOSS AS7

    Hi folks,   i am trying to use byteman in JBOSS AS7, but i always get the "java.lang.VerifyError" when i using "bmsubmit.sh" to submit a script. Below is the full error message: bmsubmit.sh -l aaa.btm inst...
    Profile Photo
    last modified by aceyin
  • Injecting fault in java.net.Socket

    Hello,   I'm trying to use byteman as part of an integration test [1], to make sure a client configured to use an HTTP proxy for a REST API is indeed going through the HTTP proxy instead of making straight netwo...
    Profile Photo
    last modified by gberche
  • Apply rule to specific J2EE application

    Hi,   I'm using Byteman for fault injection. My tests run on application server with Byteman installed. The test loads rules, make some calls, checks results and uploads rules. Application server has several cop...
    Profile Photo
    created by dmiandre
  • Rule injected into sun.reflect.MethodAccessorGenerator.generateMethod fires recursively with setTriggering(false);

    When a rule is injected into sun.reflect.MethodAccessorGenerator.generateMethod() it is fired recursively, even when setTriggering(false) is called in the rule.   e.g. RULE recursive rule CLASS sun.reflect.Me...
    Profile Photo
    created by johara
  • Custom Helper Methods - VarArgs Not Supported ?

    Based on some testing with 2.1.3, it seems that VarArg methods in the declared helper cannot be matched and are not supported.     I tried working around this with some vaguely "array" looking syntax in my ...
    Profile Photo
    last modified by nwhitehead
  • How to use Byteman with Glassfish v2 in production environment?

    Hi,   I'd like to use Byteman in a Glassfish v2 application server, in production environment. Are there any guides/tutorials about it?   Thank you.
    Profile Photo
    last modified by crom
  • Byteman Exception while running Hibernate-ORM Tests

    While running the hibernate-orm test cases for 4.2.2.Final, the following exception occured:   java.net.ConnectException: Connection refused: connect   at java.net.DualStackPlainSocketImpl.connect0(Native Me...
    Profile Photo
    last modified by crancran
  • Running Eclipse with byteman javaagent needs immense amount of memory

    Hi!   I wanted to analyse an eclipse plugins behavior with byteman. but when i open an editor i see lots of   Svens-MacBook-Pro:Applications lange$ java -jar eclipse/plugins/org.eclipse.equinox.launcher_1....
    Profile Photo
    last modified by svenlange
  • Support for multiple class loaders

    Hi,   I'm using Byteman on an application built with multiple class loaders: everything works fine, except custom helpers: this is because they are loaded using the target class loader, a custom one in my case, ...
    Profile Photo
    last modified by sergiob
  • Unknown helper class executing rule in EAP

    I am trying to instrument a class in a postgres jdbc driver deployed into EAP as a module, using a custom Helper class. Whenever the rule is executed, org.jboss.byteman.rule.Rule.typeCheck can not resolve the custom H...
    Profile Photo
    last modified by johara
  • Parse error

    Hi,   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...
    Profile Photo
    last modified by sergiob
  • Compiling anonymous type

    Hi,   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...
    Profile Photo
    last modified by rvansa
  • Full acccess to an object with byteman

    Is 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...
    Profile Photo
    last modified by ziuziu
  • 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...
    Profile Photo
    last modified by johara