Skip to content
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

Add support for JDK 24 #8586

Open
bdeneuter opened this issue Mar 19, 2025 · 1 comment
Open

Add support for JDK 24 #8586

bdeneuter opened this issue Mar 19, 2025 · 1 comment

Comments

@bdeneuter
Copy link

bdeneuter commented Mar 19, 2025

Library Name

No response

Library Version(s)

No response

Describe the feature you'd like

JDK 24 has been released but the latest DataDog Java agent doesn't support JDK 24 yet.

Is your feature request related to a problem?

No response

Describe alternatives you've considered

No response

Additional context

When our service starts, we get this error:

[dd.trace 2025-03-19 11:32:32:423 +0000] [main] ERROR datadog.trace.bootstrap.Agent - Throwable thrown while installing the Datadog Agent
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at datadog.trace.bootstrap.Agent.startDatadogAgent(Agent.java:654)
at datadog.trace.bootstrap.Agent.start(Agent.java:300)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at datadog.trace.bootstrap.AgentBootstrap.agentmainImpl(AgentBootstrap.java:155)
at datadog.trace.bootstrap.AgentBootstrap.agentmain(AgentBootstrap.java:72)
at datadog.trace.bootstrap.AgentBootstrap.premain(AgentBootstrap.java:60)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:544)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:556)
Caused by: java.lang.ExceptionInInitializerError
at datadog.trace.agent.tooling.bytebuddy.outline.TypePoolFacade.registerAsSupplier(TypePoolFacade.java:19)
at datadog.trace.agent.tooling.AgentInstaller.installBytebuddyAgent(AgentInstaller.java:108)
at datadog.trace.agent.tooling.AgentInstaller.installBytebuddyAgent(AgentInstaller.java:79)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
... 12 more
Caused by: java.lang.IllegalStateException: Failed to resolve the class file version of the current VM: This JVM's version string does not seem to be valid: 24
at net.bytebuddy.ClassFileVersion$VersionLocator$Unresolved.resolve(ClassFileVersion.java:676)
at net.bytebuddy.ClassFileVersion.ofThisVm(ClassFileVersion.java:358)
at datadog.trace.agent.tooling.bytebuddy.outline.OutlineTypeParser.parse(OutlineTypeParser.java:37)
at datadog.trace.agent.tooling.bytebuddy.outline.TypeFactory.(TypeFactory.java:81)
... 16 more

@skye-pp
Copy link

skye-pp commented Mar 27, 2025

Looks like bytebuddy 1.15.4 and above would support 24, according to their README: https://github.com/raphw/byte-buddy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants