• BMUnit against a remote JVM

    Hi,   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. ...
    Profile Photo
    last modified by ibrencic
  • Invalid stack height compiler error

    Hello 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...
    Profile Photo
    last modified by rachmato
  • Shared state across rule executions

    Hello 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 ...
    Profile Photo
    last modified by rachmato
  • Accessing classes behind field interfaces

    Hello 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  ...
    Profile Photo
    last modified by rachmato
  • problems with org.jboss.as package names in Wildfly

    Hello Byteman support   I'm writing rules which are loaded into a Wildfly 10 server at startup using the following JVM parameters:   "-Dorg.jboss.byteman.verbose -Dorg.jboss.byteman.transform.all -Dorg.jbo...
    Profile Photo
    last modified by rachmato
  • how can i make all method in a jar be traced and get its method name and execute time

    besides, how can i get the method's position in call stack? I'm not so familier in java programming,so with code or pseudo code will be much helpful. Thanks
    Profile Photo
    last modified by rjl493456442
  • Can we insert any java statement/bytecode at any position using ByteMan

    Hi,   Byteman is a awesome tool. I understand we can modify the variable values, throw exceptions etc using ByteMan. Just wanted to understand if there is a way to insert any java statement or equivalent bytecod...
    Profile Photo
    last modified by mahesh.shet
  • Can I use Byteman to add some code before every line of some method of some class? What would be the rule?

    Hello,   I am developing some project which needs to add some code in front of every line of some method of some class dynamically. Can I use Byteman? What would be the rule?   Thank you in advance, Pana...
    Profile Photo
    last modified by takis
  • not able to find issue from bmcheck script output...

    Hi,   I am trying to inject fault in a long running java application.   The rule file (test.btm) contains the following: #============================================================== # Throwing Except...
    Profile Photo
    last modified by mahesh.shet
  • Will AT THROW catch Throwable Block

    Hi,   In one of the code i see the following catch block:   } catch (SomeException e) {   ..................... } catch (Throwable ex) {   log.error("Unknown exception occured ...........", ex...
    Profile Photo
    last modified by mahesh.shet
  • How to modify instance variables with Byteman

    Here is sample java code:   public enum TestCode {    INTERNAL_SERVER_ERROR(""),    SOME_FAILURE("Unknown Error");      private final String message;    private ...
    Profile Photo
    last modified by mahesh.shet
  • Trying to read synchronized block

    Hello guys! Please, somebody help me to understand what is going on.. RULE trace modifyTest entry   CLASS br.modify.TestModify   METHOD programar   AT ENTRY IF true DO traceln("Test..")   E...
    Profile Photo
    last modified by alexmarinho
  • Trying to read local variables (Urgent Problem)

    Hello guys,     I have byteman 3.0 trying to read local variables on my project (STRUTS, JAVA 6)  running on JBOSS EAP 6.3.   I did these steps:     Standalone.sh JAVA_OPTS="${JAVA_OP...
    Profile Photo
    last modified by alexmarinho
  • VerifyError

    Hello, I am getting VerifyError after running bmsubmit.   Byteman 3.0.2-SNAPSHOT wildfly-8.2.0.Final source code: https://github.com/wildfly/wildfly/blob/8.x/ejb3/src/main/java/org/jboss/as/ejb3/component/statef...
    Profile Photo
    last modified by radek.koubsky
  • Rule of child class triggered for a method implemented in a parent class

    Hi,   I'm struggling with the topic and I would like ask for help as I'm not able to find the right way.   I would like have this kind of rule RULE commit_faultinjection CLASS org.jboss.jca.core.tx.jboss...
    Profile Photo
    last modified by ochaloup
  • Rule throws java.lang.ClassCastException

    Hi, one of my rules throws java.lang.ClassCastException when it is triggered.   Byteman 3.0.2-SNAPSHOT wildfly-8.2.0.Final source code: https://github.com/wildfly/wildfly/blob/8.x/ejb3/src/main/java/org/jboss/as...
    Profile Photo
    last modified by radek.koubsky
  • Loading external helper

    Hi, i'm trying to use own helper class with latest EAP started with arquillian. but when rule is triggered, I always get org.jboss.byteman.rule.exception.TypeException: Rule.typecheck : unknown helper class org.jboss...
    Profile Photo
    last modified by okalman
  • No matching injection point for method ...

    Hi, I am continuing in discussion about problems in try - catch - finally block, see Unexpected behavior in TRY-CATCH-FINALLY   I have another problem with "no matching injection point for method" in rules whic...
    Profile Photo
    last modified by radek.koubsky
  • AFTER WRITE - NullPointerException

    Hello, I reported one issue (the first one in Unexpected behavior in TRY-CATCH-FINALLY) with AFTER WRITE location specifier which throws NullPointerException after compilation. I have same problem, but I am not sure...
    Profile Photo
    last modified by radek.koubsky
  • Unexpected behavior in TRY-CATCH-FINALLY

    Hi, I am using Byteman in try-catch-finally block and something does not work as I would expect. Byteman 3.0.1 wildfly-8.2.0.Final, resteasy version 3.0.10.Final: source code: https://github.com/RadekKoubsky/bytema...
    Profile Photo
    last modified by radek.koubsky