Open caramcc opened 2 months ago
I am also facing the same issue in one of my Weblogic application and have set variables using JAVA_OPTIONS. It was working 3 weeks ago suddenly stopped working now and I see below error
[OkHttp http://localhost:8126/...] WARN com.datadog.profiling.uploader.ProfileUploader - Failed to upload profile to http://localhost:8126/profiling/v1/input java.io.IOException: canceled due to java.lang.UnsatisfiedLinkError: could not load FFI provider jnr.ffi.provider.jffi.Provider (Will not log warnings for 5 minutes) [dd.trace 2024-10-11 20:06:09:869 +0000] [dd-profiler-http-dispatcher] ERROR java.util.concurrent.ThreadPoolExecutor$Worker - Uncaught exception java.lang.UnsatisfiedLinkError: could not load FFI provider jnr.ffi.provider.jffi.Provider in dd-profiler-http-dispatcher java.lang.UnsatisfiedLinkError: could not load FFI provider jnr.ffi.provider.jffi.Provider
Hi @caramcc / @abhi92102 - the v1.42.0 release has a couple of fixes for JFFI, could you try it out and let us know if it helps?
@mcculls v1.42.0 seems to be starting up and working for me, thanks!
I'm trying to get
dd-trace-java
set up for my JVM applications and ran into this error with FFI, hoping someone can help point me in the right direction:Context:
JAVA_OPTS
env variable that includes-javaagent:/usr/share/java/dd-java-agent.jar -Ddd.profiling.enabled=true -XX:FlightRecorderOptions=stackdepth=256 -Ddd.logs.injection=true
(i.e. not using thesbt-datadog
project I saw mentioned in a similar resolved issue, https://github.com/DataDog/dd-trace-java/issues/4083)arm64
architecture (I noticed this mentioned in a similar issue, https://github.com/DataDog/dd-trace-java/issues/6635, but that issue has been resolved.openjdk:18-slim-bullseye
Docker image)dd-java-agent
version 1.39.0libffi
so I'm unsure what my Docker container is using (if there's an underlyinglibffi
version requirement not mentioned in the docs)Any advice about getting this working or how I can troubleshoot further is greatly appreciated!