-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native Image Build Fails after upgrading dd-trace-java from 1.40.0 to 1.41.0 #8011
Comments
Hi @abdelmoez-guetat this is a known bug which will be fixed in the next release Until then you can add the following options as a workaround:
|
it doesn't work for me and I have to use '--initialize-at-run-time=datadog.trace.agent.core.scopemanager.ContinuableScopeManager,datadog.trace.bootstrap.instrumentation.java.concurrent.QueueTimerHelper$RateLimiterHolder'. |
@mimiyanwk the The issue reported in the original description is about a known bug relating to Can you provide an example that recreates the particular error you are seeing and attach it to a new issue for tracking purposes? |
The native-image caused by |
Which error do you mean? As you mentioned, if the ContinuableScopeManager and QueueTimerHelper classes were initialized at run time, then there is no error. |
Hi @mimiyanwk, basically you shouldn't need to add any This issue will be closed when v1.44.0 is released because the errors listed in the original description are fixed by #8012 You appear to be encountering a different issue because you mentioned above that the workaround for this particular issue "doesn't work for me". Can you open a new issue and attach an example project that recreates the issues you see - thanks in advance |
ok, I am going to open a new issue. |
🤖 This issue has been addressed in the latest release. Check full details in the Release Notes. |
Description
I am attempting to build a native image for my Spring Boot application using GraalVM, but I am encountering initialization issues related to classes during the build time. These issues have arisen after upgrading Datadog's Java APM agent from version 1.40.0 to 1.41.0.
When building the native image, I receive the following error messages:
The setup details are as follows:
Java Version: 17
Spring Boot Version: 3.3.5
GraalVM Version: 17.0.11
Maven Plugin Configuration:
I am using Maven to build the project, and the following is my plugin configuration in the
pom.xml
file:Additional Errors:
The text was updated successfully, but these errors were encountered: