555 questions
7
votes
1
answer
264
views
Spring cannot find @PathVariable name for @RequestMapping despite '-parameters' compiler option
I have been observing a weird issue in my application. Recently we started observing a lot of exceptions of this type in our logs:
IllegalArgumentException: Name for argument of type [java.lang.Long] ...
0
votes
0
answers
27
views
intellij-idea: Possible to reconnect to a .run.xml javaagent after intellij had been restarted
I have a java program started from a .run.xml intellij config, intellij died but process kept running and working fine. Is it possible for me to reconnect/attach to it so I can see the stderr and ...
0
votes
0
answers
33
views
How to execute the "mvn exec:java" command and indicating a javaagent?
For a Java application with Maven the following command works
mvn exec:java \
-Dexec.mainClass="com.manuel.jordan.main.Main" \
-Dexec.cleanupDaemonThreads=false
Observation: in the ...
1
vote
1
answer
234
views
Otel Extension with External Libraries
What am I doing ?
trying to create a Otel Extension and everything is working fine until the moment I use external libraries.
Relevant context information:
I am using Maven instead of Gradle.
I don'...
0
votes
2
answers
80
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
1
answer
63
views
TCP socket communication between parent and child process blocks after a few seconds (a few hundred bytes)
For test automation, my program starts the installer (= child process):
Runtime.getRuntime().exec(new String[] { "installer.exe", "-J-javaagent:myagent.jar" });
The installer ...
0
votes
1
answer
259
views
java agent throws UnsupportedClassVersionError when Instrumentation#retransformClasses is called
I'm trying to make a java agent to dump the caller of a method. I am using objectweb's ASM to transform the target method to invoke a function which dumps the caller and the internal state of the ...
1
vote
0
answers
128
views
Add caller information with Opentelemetry java agent instrumentation
I have test java app with java agent opentelemetry instrumentation: -javaagent:/usr/src/app/opentelemetry-javaagent.jar -Dotel.instrumentation.log4j-context-data.enabled=true -Dotel.instrumentation....
0
votes
1
answer
64
views
how to record java execute path? [duplicate]
I want to know my customer how to use my application. for example, i have a spring-web applicaiton. customer call the service 100 times.
i want to analyst every time service's execute path.
eg.
1 time ...
1
vote
1
answer
70
views
How to use matchers for the argument of canThrow() with ByteBuddy?
I'm writing some code where I would like to instrument every method in a class that throws a specific exception, so I would like to have something like this:
builder.method(ElementMatchers.canThrow(...
-1
votes
1
answer
79
views
OpenTelemetry Java Agent extension not loaded
I have created a simple, dummy OpenTelemetry Java Agent extension. It contains only one class and it looks like this:
import com.google.auto.service.AutoService;
import io.opentelemetry.sdk....
0
votes
1
answer
502
views
JVM cannot find Agent_OnLoad in agent lib
I am coding a Java Agent library. However, the JVM cannot find Agent_OnLoad function even if I have explicitly exported it in my C++ code.
JNIEXPORT jint JNICALL
Agent_OnLoad(JavaVM* vm, char* ...
1
vote
1
answer
125
views
How to use Java agent intercept to instrument java.net.Socket with javaassist
I am working on a project where I need to write some header to the socket output stream right after the socket is connected.
I want to intercept at low level such as java.net.Socket and its connect ...
2
votes
1
answer
286
views
Can apm-agent-java plugin be placed inside the application JAR file?
Motivation
Elastic APM Java agent does not support R2DBC. They provide a plugin API, which
lets you add custom instrumentation to the agent, which the agent will automatically apply the same way as ...
1
vote
1
answer
631
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....