Splunk AppDynamics

ClassNotFoundException: com.appdynamics.apm.appagent.api.NoOpInvocationHandler

Priyaranjan_Beh
New Member

I need to post some custom metrics to AppDynamics for analytics purpose. So I am trying to create new Transaction from application source code using below code.

Transaction transaction = AppdynamicsAgent.getTransaction(getProcessorName().name(), null, EntryTypes.POJO, false)

However getting below while loading AppdynamicsAgenet class

Caused by: java.lang.ClassNotFoundException: com.appdynamics.apm.appagent.api.NoOpInvocationHandler
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 92 common frames omitted​

Anyone know how to fix this?

Labels (1)
0 Karma

iamryan
Community Manager
Community Manager

Hi @Priyaranjan.Behera,

I did some searching and I found this info, but I don't think it's related to your issue, but wanted to share just in case.

javaagent should be instrumented to the local Java application along with the java agent API. Since you didn't instrument the java process with the Java agent, you are getting that exception.
So, can you please try to instrument the java process with the javaagent along with the javaagent API and see how it goes?

0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...