• Byteman and jdwp

    I am wondering if I can have both byteman and jdwp enabled at the same time for remote usage so that I can remotly tracing and debugging at the same time?
    Profile Photo
    last modified by torius1
  • Rule.typecheck : unknown helper class

    I'm trying to inspect a code which is within an existing jar. I have created a custom helper to trace the content for a parameter. Although the app is throwing an exception when reaching that point   org.jboss.by...
    Profile Photo
    last modified by pacman77
  • Instrumenting classes from both boot and non-boot in Tomcat

    Hi,  I'm having a problem configuring the -javaagent flag in the JAVA_OPTS to Tomcat for loading BYTEMAN agent so that it can see rules for classes loaded at both boot and non-boot.   Here are a couple rule...
    Profile Photo
    last modified by mthurmaier
  • java.lang.NoClassDefFoundError: org/jboss/byteman/rule/exception/EarlyReturnException

    I want to trace File object initialization event of java.io.File package using byteman so if my java program contains code as   File f=new File("abc.txt");   And Rule for above code snippet is written as ...
    Profile Photo
    last modified by vinod.patil
  • BMunit - Loading many rules for all the test

    I am trying to come up with a way to load many rules for all the tests.   So far, the only way I saw to do this is to manually add the @BMScripts with a list of scripts for each test class. I can also envision h...
    Profile Photo
    last modified by rmichoud
  • Incorrect line numbers reported in traceStack of a byteman rule?

    I am using Byteman in investigating some resource leaks within a project. Am currently using the latest released 3.0.10 version of Byteman. The class I'm interested in looks like this: public abstract class A extends ...
    Profile Photo
    last modified by jaikiran
  • Throwing an exception in a try/catch block

    I think I hit a limitation and I am trying to investigate if there is a way to work around it.   Let's take an example:   Example.java ... try {      PrintWriter writer = new PrintWr...
    Profile Photo
    last modified by rmichoud
  • How to intercept a stateless session bean

    Hi there,   I'm stuck in trying to intercept a stateless session bean... If I set the bean class name and method into the rule, Byteman rule is never called.   If I set the local interface name and method...
    Profile Photo
    last modified by neoludo
  • Is it possible to use Byteman to force a test wait for a method be executed Nth times in a background thread that I don't have control over?

    Hi, I have a background thread that starts other threads, and I don't have control over it. At some point, one of those threads will execute a particular method of a certain type that I need to check if it was execu...
    Profile Photo
    last modified by porcelli
  • Need to call external SOAP WebService from Switchyard

    Hi,   Currently i have installed Red Hat JBoss Developer Studio Version: 10.2.0.GA on my machine.   I am familiar only with Hello World Program in Switchyard but i am in need of to invoke an external SOAP ...
    Profile Photo
    last modified by bharatpinjani
  • Rule for changing message of System.out.println

    Hi,   I wanted to create a simple rule which changes message which is printed by System.out.println. I found having trouble to put it together.   I took maven archetype program to get   package org.jb...
    Profile Photo
    last modified by ochaloup
  • How to use literal 'long' primitive value

    Hello.   Is it possible to use literal 'long' primitives values in byteman rules, or even float values for that matter? I'm trying to assign a variable with the BIND keyword. If I add 'L' to the numeric literal,...
    Profile Photo
    last modified by alan.lost
  • Differences in behavior for boolean / Boolean in method local variable assigning

    Hi! I have question about differences in "Byteman" behavior for boolean / Boolean local method variable assigning. A little example:   public class IffedLogic {   public static enum Branch {   &#...
    Profile Photo
    last modified by abof
  • Trying to instrument the Command Line with Byteman

    Hi all, I'm trying to add some trace functionalities to the application server's CLI with Byteman (3.0.3). I'm having some troubles in getting my rules executed on the entry point (which is org.jboss.as.cli.CommandLi...
    Profile Photo
    last modified by f_marchioni
  • Dynamic Byteman Rule Injection

    Hi,   I am using JDK 6.  Tried both Byteman versions 2.1.2  and 3.0.6.    Both Java program and agent / rule installation and submission of rule is happening on my local Windows machine...
    Profile Photo
    last modified by gaurav6281
  • Installing Agent inside another running JVM throwing Agent failed to Initialize error

    Hi ,   There is one JVM process running on Machine A having IP address (say) :- 111.111.111.11.    Both byteman jars and the other JVM process are on same host. I..e no Intra Machines interaction...
    Profile Photo
    last modified by gaurav6281
  • Loading Byteman Rules dynamically

    Hi,   One of my Java process (A) is running on box A . Another process (B) is running from box B.   Process A executes multiple steps one by one , including loading byteman agent dynamically to Process B....
    Profile Photo
    last modified by gaurav6281
  • Can Byteman be integrated with Cucumber?

    Hi,   I have seen that Bytemap is compatible with Junit and TestNG. What about Cucumber ? Any plans ? or any version being developed ?
    Profile Photo
    last modified by gaurav6281
  • Can we call / write java method from Bytemap .btm file ?

    Hi,   As Byteman modifies the bytecode and it's actions as part od DO can be triggered at runtime, can we have full java code written inside as part of DO in .btm file ?  Say, if requirement is -   (...
    Profile Photo
    last modified by gaurav6281
  • Javagent Bytemap .btm file not working

    Hi, I am using IntelliJ and have written one simple class with blank main method. I have written one .btm file having below contents:-   RULE trace main entry CLASS ThreadInteraction METHOD main AT ENTRY IF...
    Profile Photo
    last modified by gaurav6281