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.