Splunk AppDynamics

Java Agent jar not getting initialized with jdk17 docker container

Alosiyus_Joseph
Engager
I'm already using appdynamics/java-agent:latest docker image to push all our application logs to the appdynamics.
Our applications are running in kubernetes clusters and all the apps are in java 1.8 version.
 
Now we are trying to migrate all our apps running in kubernetes to use java17.
So when we deploy we few errors related to appd java agent jar getting initialized and the logs are not getting pushed to appd.
 
Error logs we see..
Class with name [com.ibm.lang.management.internal.ExtendedOperatingSystemMXBeanImpl] is not available in classpath, so will ignore export access.
2023-07-05 23:49:32.685-04:00 ERROR i.o.javaagent.tooling.HelperInjector - Error preparing helpers while processing interface javax.servlet.Servlet for servlet. Failed to inject helper classes into instance com.singularity.ee.agent.appagent.kernel.classloader.Post19AgentClassLoader@10947c4e
java.lang.IllegalStateException: Error invoking (accessor)::defineClass
at net.bytebuddy.dynamic.loading.ClassInjector$UsingReflection$Dispatcher$UsingUnsafeInjection.defineClass(ClassInjector.java:1002)
at net.bytebuddy.dynamic.loading.ClassInjector$UsingReflection.injectRaw(ClassInjector.java:254)
at io.opentelemetry.javaagent.tooling.HelperInjector.injectClassLoader(HelperInjector.java:247)
 
 
 
ERROR i.o.javaagent.tooling.HelperInjector - Error preparing helpers while processing class org.apache.http.impl.client.CloseableHttpClient for apache-httpclient. Failed to inject helper classes into instance com.singularity.ee.agent.appagent.kernel.classloader.Post19AgentClassLoader@10947c4e
java.lang.IllegalStateException: Error invoking (accessor)::defineClass
 
 
ERROR i.o.javaagent.tooling.HelperInjector - Error preparing helpers while processing interface org.apache.http.client.HttpClient for apache-httpclient. Failed to inject helper classes into instance com.singularity.ee.agent.appagent.kernel.classloader.Post19AgentClassLoader@10947c4e
java.lang.IllegalStateException: Error invoking (accessor)::defineClass
 
We see these errors only with jdk17 docker container. previous are current production containers with jdk1.8 is working fine.
Please help me on this.
Thanks in advance.
 
Labels (1)
Get Updates on the Splunk Community!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...