• 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
  • Instrumenting Spark Streaming with Byteman

    Hi,   I am trying to modify spark streaming program using byteman (see the Java and Byteman rule snippets below) .   JavaPairInputDStream<String, String> messages = KafkaUtils.createDirectStream( ...
    Profile Photo
    last modified by shamte
  • Byteman rules on application classes in Wildfly not executed

    In my first experiment with Byteman 3.0.1, I used bminstall to add the agent to Wildfly 8.1.0 Final (on Windows 10), with the ...byteman.verbose property set.  Then I used bmsubmit to (apparently successfully) ad...
    Profile Photo
    last modified by jgreif
  • AT INVOKE location specifier does not match method descriptor

    Hello, I am using AT INVOKE location specifier and it does no work in following examples: Environment: Byteman 3.0.1 wildfly-8.2.0.Final, resteasy version 3.0.10.Final: source code: byteman-wildfly-log/rest.btm ...
    Profile Photo
    last modified by radek.koubsky
  • Helper class issue on server startup

    I have a byteman script which I want to run from startup in an application server. This byteman script makes use of a HelperClass. I have modified the server startup to specify the javaagent as follows: -Dorg.jbos...
    Profile Photo
    last modified by rachmato