Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
11-13-2017 01:57 PM
When starting the java agent under tomcat 9 using version 4.4.0.4 I get the following exception. The agent is configured in setenv as set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:"C:\appdynam\Agents\ver4.4.0.4\javaagent.jar".
Any ideas how to fix this?
Full Agent Registration Info Resolver using selfService [true]
Full Agent Registration Info Resolver using selfService [true]
Full Agent Registration Info Resolver using application name [Trellis]
Full Agent Registration Info Resolver using tier name [ABC]
Full Agent Registration Info Resolver using node name [XYZ]
Install Directory resolved to[C:\appdynam\Agents\ver4.4.0.4]
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 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.singularity.ee.agent.appagent.AgentEntryPoint$1.run(AgentEntryPoint.java:647)
Caused by: java.lang.ExceptionInInitializerError
at com.singularity.ee.agent.appagent.kernel.JavaAgent.initialize(JavaAgent.java:308)
... 7 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 25
at com.singularity.ee.controller.api.constants.AgentType.<clinit>(AgentType.java:55)
... 8 more
11-14-2017 02:23 AM
What JDK version are you using to run tomcat?
Can you provide your agent logs (they will be in C:\appdynam\Agents\ver4.4.0.4\logs\XYZ)
Warm regards,
Peter
11-14-2017 08:02 AM
The logs directory is empty. I am using jdk1.8.0_144
11-14-2017 08:59 AM
That is very odd. I think this is best investigated interactively via a support ticket; could you open one?
11-14-2017 09:21 AM
yes I will.
11-14-2017 09:45 AM
i do not have access to cretate tickets.
11-15-2017 05:30 AM
Hi Alan,
that happened to me before (with previous agent versions) and my problem was this (referring to the doc):
The user under which the JVM runs must have write privileges to the conf and logs directories in the Java Agent home. To achieve this, you can install the agent as the same user that owns the JVM or as an administrator on the host machine. You can restrict the remaining contents of the agent directory to read only access.
Did you check if the user has permission to the conf and logs directories? (that could be the reason the log directory is empty)
Best!
Julia
11-15-2017 09:53 AM
Thanks Julia. I checked the permissions and everything looks good.
Did you get this exception is the past? java.lang.ArrayIndexOutOfBoundsException: 25
I have a ffeling that the error occurs before it writes to any logs.
11-15-2017 02:37 PM
Hi Alan,
not so far :(
I hope you can solve this!
Best,
Julia
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form