Java Agent Using OpenJDK 11 gives Exception Error java.lang.NoClassDefFoundError: java/sql/SQLException

book

Article ID: 130737

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE

Issue/Introduction

After a JAVA upgrade from JDK 1.8 to OpenJDK 11, getting the following exception errors:

[ERROR] [IntroscopeAgent.Agent] Invalid tracer registration for plugin "SQL With Params Execute Timer" in extension "Introscope SQL Agent" loaded from "/opt/<APM_Agent _Home>/wily/core/ext/SQLAgent.jar".

 [ERROR] [IntroscopeAgent.Agent] IntervalHeartbeat.execute threw executing: Waiting for Database Dynamic
java.lang.NoClassDefFoundError: java/sql/SQLException
at com.wily.introscope.agent.db.DatabaseManager$3.ITimestampedRunnable_execute(DatabaseManager.java:122)
at com.wily.util.heartbeat.IntervalHeartbeat$BehaviorNode.execute(IntervalHeartbeat.java:972)
at com.wily.util.heartbeat.IntervalHeartbeat.executeNextBehaviorAndCalculateSleepTime(IntervalHeartbeat.java:491)
at com.wily.util.heartbeat.IntervalHeartbeat.access$2(IntervalHeartbeat.java:445)
at com.wily.util.heartbeat.IntervalHeartbeat$HeartbeatRunnable.run(IntervalHeartbeat.java:668)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.ClassNotFoundException: java.sql.SQLException
at com.wily.util.extension.JarExtension$AllPermissionsClassLoader.findClass(JarExtension.java:309)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
at com.wily.util.extension.EagerAllPermissionsClassLoader.loadClass(EagerAllPermissionsClassLoader.java:115)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 6 more

Cause

Standard On-premise APM Java Agent Does NOT Support OpenJDK 11.
 

Environment

CA APM 10.7 SP3 Agent 
Docker/Openshift/Kubernetes containers
Agent configuration is done through Dockerfile and scripts

Resolution

After few test cases, SaaS Agent works instead of on-premise Agent. 
Please open a Support case to obtain the SaaS Agent if eligible ONLY.