• Discussions moving to StackOverflow

    Please note that this forum will soon be made be read-only. Please start new discussions on StackOverflow.
    Profile Photo
    created by adinn
  • Is "instanceof" supported in conditions?

    Consider this trivial Java code:   public class Foo {     public static void main(final String[] args) throws Exception {         printMessage("Hello");  ...
    Profile Photo
    last modified by jaikiran
  • Method calls on .class literal trigger invalid rule error

    Consider this simple class:   public class Foo {     public static void main(final String[] args) throws Exception {         System.out.println("Hello world"); &#...
    Profile Photo
    last modified by jaikiran
  • Cannot seem to trigger a rule against java.lang.ClassLoader#initLibraryPaths() method

    Recently I was using Byteman to test one of the classloading issues. A couple of byteman rules (among many other) were:     RULE Classloader init library start CLASS java.lang.ClassLoader METHOD initLibraryP...
    Profile Photo
    last modified by jaikiran
  • Starter Spring Boot App with Byteman integration and swagger support

    Hi,       I have been working with byteman for sometime. Its a very powerful tool and immensely helpful for fault testing as well as run-time troubleshooting. I also use Spring framework as part of my ...
    Profile Photo
    last modified by rajaranjan
  • Does Byteman work with Android?

    Hi all,   I would like to know if I can use Byteman on Android. I did try to look through the forum, but there is no search facility and so I may have missed relevant posts. The only relevant post I could find i...
    Profile Photo
    last modified by rich2020
  • bmcheck returns NullPointerException to a file with two rules

    I am using byteman to trace call stack in JGit on Windows 10.   First I wrote a byteman rule to trace start of a method. bmckeck reported no error with this script. RULE CheckoutCommand Start CLASS org.eclipse.j...
    Profile Photo
    last modified by yusuke.sato.zz
  • Byteman stops working when there are more than 3 JSF applications deployed to JBoss

    Hi,   My byteman script works when there is one application with JSF 1.2 deployed to JBoss, I can see the logging. However, customer told me that the scripts work up to 3 different JSF applications were deployed...
    Profile Photo
    last modified by leiyu
  • traceOpen() created a file, but trace() and traceln() couldn't write message into the file

    I am using byteman to trace call stack in JGit on Windows 10. I wrote a byteman rule to trace start of a method like this: RULE CheckoutCommand Start CLASS org.eclipse.jgit.api.CheckoutCommand METHOD call AT ENTRY IF...
    Profile Photo
    last modified by yusuke.sato.zz
  • Byteman and static code injection. How to inject to class file?

    Hello. I have read a lot about dynamic code injection using Byteman. But is it possible to inject code to class files permanently? I would like to inject some code to Java compiled class file and save changed file it...
    Profile Photo
    last modified by byteman_ask
  • Byteman and KEmulator?

    Hello. I was just wondering if it is possible to inject code to games executed by KEmulator or any other Java emulator available for PC. Did anyone tried that? How could I achieve that? Kind regards, byteman user.
    Profile Photo
    last modified by byteman_ask
  • Intercept java.lang.Class#getAnnotation

    Hi all,   I'm trying to use Byteman to check whether annotations are read. This is my rule:   RULE check annotation is not read at runtime CLASS java.lang.Class METHOD getAnnotation IF true DO THROW new or...
    Profile Photo
    last modified by fercoli
  • Byteman on JDK14

    Hi there,   I see Byteman has already been upgraded to ASM 7.2.Beta2 to handle JDK14. Will there be a release of Byteman in the near future? Note that ASM 7.2 (final) was released about a week ago: ASM - Versio...
    Profile Photo
    last modified by y.rodiere
  • How to print out exception in a method?

    I am trying to write a byteman rule to capture the exception in my test class, the class is written to throw IndexOutOfBoundsException     public void myMethod(PrintWriter out) {   ConcurrentMap<St...
    Profile Photo
    last modified by leiyu
  • Testing Byteman on OpenJDK version 9-ea+170

    Hello all,   by reading the jigsaw-dev mailing list I'm aware that several things have been changing around agents, but I didn't see a conclusion.   Testing now the Hibernate Search build on latest OpenJDK...
    Profile Photo
    last modified by sannegrinovero
  • Byteman rule to intercept a call to equals and make it compare the principals in KeycloakUndertowAccount ?

    Hi Byteman Experts,   I'm working on test case for isolating an issue in KEYCLOAK-10329 bug [1]. We would need to implement a byteman rule to intercept a call to equals() and make it compare the principals in Ke...
    Profile Photo
    last modified by rhn-support-igueye
  • Using BYTEMAN in JUnit test with Arquillian

    Hi All, I am trying to use BYTEMAN on the client side in a test run with Arquillian:   @RunWith(Arquillian.class)  So I cannot add:   @RunWith(BMUnitRunner.class)  What I am trying to do is to m...
    Profile Photo
    last modified by tommaso-borgato
  • Byteman rules seem to be silently ignored on jdk11

    Hi all,   I'm running into an issue where Byteman scripts work as expected on jdk8, but seem like they're just not getting installed on jdk11. I'm not seeing any exceptions or anything, the rules are just being ...
    Profile Photo
    last modified by bdeggleston
  • Replacing types in a package x.y with analogs in package a.b?

    Say I have an application compiled against types in a package x.y that is no longer available. Suppose that all of these types have been moved to a package a.b. Can I use byteman to transform the application to run in...
    Profile Photo
    last modified by starksm64
  • BMUnit : Using Byteman with JUnit or TestNG from maven and ant

    Let's assume you know what Byteman is . . .  This is the Part Two (of three) in the Byteman tutorial series, explaining how you can use Byteman to improve the simplicity, quality and coverage of your unit, integ...
    Profile Photo
    last modified by adinn