810 questions
1 vote
1 answer
99 views
How to use visitLocalVariable in ASM correctly?
So I am trying to add information about locals I use. The current way I am trying to achieve it - is: methodVisitor = classWriter.visitMethod(ACC_PUBLIC | ACC_STATIC, "something", "()V&...
0 votes
2 answers
69 views
How properly ThreadLocal Context in the ByteBuddy Instrumentation Advice
Hi I'm trying to build a trace agent where app agent propagates the origin application name across the multiple network calls using the HTTPUrlConnection. So far, I was able to invoke the Advice ...
0 votes
0 answers
98 views
Unable to Transform with Android Gradle Plugin
I’m Trying to Intercept Some Methods Using the Byte-Buddy Android Gradle Plugin I want to intercept some methods using the Byte-Buddy Android Gradle plugin. Here are the versions I am using: • Java ...
1 vote
1 answer
565 views
Starting a Spring boot project with a custom Java agent jar gives errors
As shown in the following figure, a custom Java agent package is added to the JVM options -javaagent:/usr/local/maven/apache-maven-3.6.3/repository/com/graviton/Probe-Agent/1.0-SNAPSHOT/Probe-Agent-1....
0 votes
1 answer
122 views
Why does java agent get stuck and not perform any actions?
I am writing a term paper for the university. The task is to write two programs, one of which collects some information, signs it with a digital key, and saves the encrypted data and the key to ...
-1 votes
1 answer
97 views
ASM does not preserve order in the constant pool table
It seems that ASM ClassWriter does not preserve the order of entries in the constant pool. For example, consider the following code snippet: @Test void hashShouldBeSame() throws IOException, ...
0 votes
2 answers
176 views
How can I modify the core api in java ?
for example:I want to change LocalDateTime.now() return result in non-production enviroment, I am trying to invoke the following code,but error occors: @Test public void test3() { ...
1 vote
1 answer
192 views
How can I make org.objectweb.asm.util.CheckClassAdapter throw an exception instead of printing errors to stderr?
I am currently utilizing org.objectweb.asm.util.CheckClassAdapter for bytecode verification in my Java project. However, I've observed that this class prints errors to stderr instead of throwing ...