Java (Java Agent, Installation, JVM, and Controller Installation)

cancel
Showing results for 
Search instead for 
Did you mean: 

NPE While Bootstrapping Java Agent 4.5.1

New Poster

NPE While Bootstrapping Java Agent 4.5.1

I've downloaded latest agent 4.5.1 for Java (tried both JDK providers)

The target (instrumental) application is JHispter (popular framework) application running on Java 8
There is an NPE during bootstrapping: 

NPE really? 

 Install Directory resolved to[/appdynamics/agent]
      | 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.createClassLoader(AgentEntryPoint.java:1329)
      |      at com.singularity.ee.agent.appagent.AgentEntryPoint.premain(AgentEntryPoint.java:636)
      |      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 sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
      |      at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
  | Caused by: java.lang.NoSuchMethodError: com.singularity.ee.agent.util.ak.<init>(Ljava/lang/ClassLoader;Ljava/lang/reflect/Method;)V
      |      at com.singularity.ee.agent.util.cc.c(cc.java:151)
      |      at com.singularity.ee.agent.util.cc.<init>(cc.java:66)
      |      at com.singularity.ee.agent.util.cc.a(cc.java:56)
      |      at com.singularity.ee.agent.appagent.kernel.classloader.AgentClassLoader.<init>(AgentClassLoader.java:207)
      |      at com.singularity.ee.agent.appagent.kernel.classloader.d.<init>(d.java:35)
      |      at com.singularity.ee.agent.appagent.kernel.classloader.a.a(a.java:683)
      |      at com.singularity.ee.agent.appagent.kernel.classloader.a.run(a.java:671)
      |      at java.security.AccessController.doPrivileged(Native Method)
      |      at com.singularity.ee.agent.appagent.kernel.classloader.AgentClassLoader.getAgentClassLoader(AgentClassLoader.java:671)
      |      ... 12 more
      | java.lang.NullPointerException
      |      at com.singularity.ee.agent.appagent.AgentEntryPoint.premain(AgentEntryPoint.java:644)
      |      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 sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
      |      at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
Tags (1)
NPE While Bootstrapping Java Agent 4.5.1
1 REPLY 1
Employee Alumni (Retired)

Re: Where I can submit an support issue

Hi @Viktor.Reinok

 

Sorry to see that you are experiencing an issue with Java Agent.

 

To investigate closely, we need to know your Controller version. Please share the version and any other useful info that would help with troubleshooting.


Thanks,
Radhika P




Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.