Splunk AppDynamics

Java agent fails to start with Pro trial licenes

CommunityUser
Splunk Employee
Splunk Employee

Hi Team,

I'm getting the below error for java agent with AppDynamics.(Agent JAR loaded but agent failed to initialize)

java -Xbootclasspath/a:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el6_10.x86_64/lib/tools.jar -jar /opt/appagent/javaagent.jar 2011
Attaching to VM [2011]
agent path >>>/opt/appagent/javaagent.jar
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.singularity.ee.agent.appagent.AgentEntryPoint.main(AgentEntryPoint.java:1076)
Caused by: com.sun.tools.attach.AgentInitializationException: Agent JAR loaded but agent failed to initialize
at sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:121)
... 5 more
Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.singularity.ee.agent.appagent.AgentEntryPoint.main(AgentEntryPoint.java:1080)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.singularity.ee.agent.appagent.AgentEntryPoint.main(AgentEntryPoint.java:1076)
Caused by: com.sun.tools.attach.AgentInitializationException: Agent JAR loaded but agent failed to initialize
at sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:121)

Labels (1)
0 Karma

iamryan
Community Manager
Community Manager

Hi @Nitesh.Kewat,

You are a partner and should be on a paid account, not a trial license. Can you confirm if this is true or not?

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Prashant.Mhatre

the agent will need a few configuration parameters, especially connection details, to initialize properly.

https://docs.appdynamics.com/display/PRO45/Install+the+Java+Agent#InstalltheJavaAgent-AttachingtheJa...

Are these set ?

Thanks

Philipp

0 Karma

Nitesh_Kewat
New Member

We have done the all configuration agent is up but after Dr drill activity agent is not starting facing above issue agent jar loaded but fail to intialize

0 Karma

Arjen_van_der_K
New Member

Did you by any chance found a solution to this? Thanks! 

0 Karma
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 ...