cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Java agent issue:--> java.lang.NoSuchMethodException: java.lang.Throwable.getStackTraceElement(int) caught trying to reflect Throwable methods

Amit.Bisht
Builder

Hello Team,

We are getting below error, while deploying the java agent. For few min it's coming-up and after sometime the agent is crashing along with the application. It seems some issue while instrumentation the class. Below are the logs for you refence.


[main] 17 May 2024 11:25:46,397 WARN LightweightThrowable - java.lang.NoSuchMethodException: java.lang.Throwable.getStackTraceElement(int) caught trying to reflect Throwable methods
[AD Thread Pool-Global0] 17 May 2024 11:25:48,998 INFO ErrorProcessor - Sending ADDs to register [ApplicationDiagnosticData{key='java.sql.SQLSyntaxErrorException:oracle.jdbc.OracleDatabaseException:', name=SQLSyntaxErrorException : OracleDatabaseException, diagnosticType=ERROR, configEntities=null, summary='java.sql.SQLSyntaxErrorException caused by oracle.jdbc.OracleDatabaseException'}]
[AD Thread Pool-Global0] 17 May 2024 11:25:48,998 INFO ErrorProcessor - To enable reverse proxy, use the node property or set env/system variables
[AD Thread Pool-Global0] 17 May 2024 11:25:49,094 INFO ErrorProcessor - Setting AgentClassLoader as Context ClassLoader
[AD Thread Pool-Global0] 17 May 2024 11:25:49,194 INFO ErrorProcessor - Restoring Context ClassLoader to com.singularity.ee.agent.appagent.kernel.classloader.Post19AgentClassLoader@14bf9759
[AD Thread Pool-Global0] 17 May 2024 11:25:49,194 INFO ErrorProcessor - Error Objects registered with controller :{java.sql.SQLSyntaxErrorException:oracle.jdbc.OracleDatabaseException:=1873198}
[AD Thread Pool-Global0] 17 May 2024 11:25:49,194 INFO ErrorProcessor - Adding entry to errorKeyToUniqueKeyMap [1873198], ErrorKey[cause=[java.sql.SQLSyntaxErrorException, oracle.jdbc.OracleDatabaseException]], java.sql.SQLSyntaxErrorException:oracle.jdbc.OracleDatabaseException:
[AD Thread Pool-Global0] 17 May 2024 11:25:49,294 INFO ErrorProcessor - Sending ADDs to register [ApplicationDiagnosticData{key='java.sql.SQLSyntaxErrorException:oracle.jdbc.OracleDatabaseException:-1465592621', name=java.sql.SQLSyntaxErrorException:oracle.jdbc.OracleDatabaseException:, diagnosticType=STACK_TRACE, configEntities=[Type:ERROR, id:1873198], summary='java.sql.SQLSyntaxErrorException:oracle.jdbc.OracleDatabaseException:'}]
[AD Thread Pool-Global0] 17 May 2024 11:25:49,294 INFO ErrorProcessor - To enable reverse proxy, use the node property or set env/system variables
[AD Thread Pool-Global0] 17 May 2024 11:25:49,336 INFO ErrorProcessor - Setting AgentClassLoader as Context ClassLoader
[AD Thread Pool-Global0] 17 May 2024 11:25:49,396 INFO ErrorProcessor - Restoring Context ClassLoader to com.singularity.ee.agent.appagent.kernel.classloader.Post19AgentClassLoader@14bf9759
[AD Thread Pool-Global0] 17 May 2024 11:25:49,396 INFO ErrorProcessor - Error Objects registered with controller :{java.sql.SQLSyntaxErrorException:oracle.jdbc.OracleDatabaseException:-1465592621=2272870}
[AD Thread Pool-Global0] 17 May 2024 11:25:49,396 INFO ErrorProcessor - Adding entry to errorKeyToUniqueKeyMap [2272870], StackTraceErrorKey{hashCode=-1465592621}, java.sql.SQLSyntaxErrorException:oracle.jdbc.OracleDatabaseException:-1465592621
[AD Thread Pool-Global0] 17 May 2024 11:25:56,893 INFO DynamicRulesManager - The config directory /opt/appdyn/javaagent/23.12.0.35361/ver23.12.0.35361/conf/namicggtd52d-onboarding-25-ll7bx--1 is not initialized, not writing /opt/appdyn/javaagent/23.12.0.35361/ver23.12.0.35361/conf/namicggtd52d-onboarding-25-ll7bx--1/bcirules.xml
[AD Thread-Metric Reporter0] 17 May 2024 11:26:07,293 INFO MetricSender - To enable reverse proxy, use the node property or set env/system variables
[AD Thread Pool-Global1] 17 May 2024 11:26:38,997 INFO ErrorProcessor - Sending ADDs to register [ApplicationDiagnosticData{key='java.sql.SQLSyntaxErrorException:oracle.jdbc.OracleDatabaseException:-1702013436', name=java.sql.SQLSyntaxErrorException:oracle.jdbc.OracleDatabaseException:, diagnosticType=STACK_TRACE, configEntities=[Type:ERROR, id:1873198], summary='java.sql.SQLSyntaxErrorException:oracle.jdbc.OracleDatabaseException:'}]
[AD Thread Pool-Global1] 17 May 2024 11:26:38,997 INFO ErrorProcessor - To enable reverse proxy, use the node property or set env/system variables
[AD Thread Pool-Global1] 17 May 2024 11:26:39,093 INFO ErrorProcessor - Setting AgentClassLoader as Context ClassLoader
[AD Thread Pool-Global1] 17 May 2024 11:26:39,094 INFO ErrorProcessor - Restoring Context ClassLoader to com.singularity.ee.agent.appagent.kernel.classloader.Post19AgentClassLoader@14bf9759
[AD Thread Pool-Global1] 17 May 2024 11:26:39,094 INFO ErrorProcessor - Error Objects registered with controller :{java.sql.SQLSyntaxErrorException:oracle.jdbc.OracleDatabaseException:-1702013436=2272876}
[AD Thread Pool-Global1] 17 May 2024 11:26:39,094 INFO ErrorProcessor - Adding entry to errorKeyToUniqueKeyMap [2272876], StackTraceErrorKey{hashCode=-1702013436}, java.sql.SQLSyntaxErrorException:oracle.jdbc.OracleDatabaseException:-1702013436

Kindly assist.

Regards,

Amit Singh Bisht

1 REPLY 1

Ryan.Paredez
Community Manager

Hi @Amit.Bisht,

Thanks for asking your question on the community. Since the community did not jump in and help, you can contact AppDynamics Support.  


Thanks,

Ryan, Cisco AppDynamics Community Manager




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

Liked something? Click the Thumbs Up button.



Check out Observabiity in Action

new deep dive videos weekly in the Knowledge Base.

On-Demand Webinar
Discover new Splunk integrations and AI innovations for Cisco AppDynamics.


Register Now!

Observe and Explore
Dive into our Community Blog for the Latest Insights and Updates!


Read the blog here