WA Agent for Database with MS SQL database connection error Unsupported major.minor version 52.0
search cancel

WA Agent for Database with MS SQL database connection error Unsupported major.minor version 52.0

book

Article ID: 190670

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - System Agent (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) Workload Automation Agent Autosys Workload Automation

Issue/Introduction

The WA Agent for Database is unable to connect to MS SQL server.
Logs show these errors.

XX/XX/2019 00:00:XX.XXX UTC 1 DatabasePlugin.database Internal Thread.CybRMIExternalPluginBaseManager.processWob[:609] - java.lang.UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Unknown Source)
......


Environment

Release : 11.3.5

Component : CA Workload Automation System Agent

OS: Windows

Database: MS SQL

Cause

The "Unsupported major.minor version 52.0" error means that JDBC driver will only work with JRE 8. If the WA Agent is very old pre 11.3 SP5 or uses JRE 1.7 then latest SQL JDBC driver will not work.

Resolution

Upgrade the agent to 11.4 or 11.5 using JRE 8.  

Note: When installing the JDBC driver to agent directory, make sure to install JRE 8 specific JAR.  The JDBC package will come with JARS for different JRE versions.
E.g.

mssql-jdbc-8.2.0.jre11.jar
mssql-jdbc-8.2.0.jre13.jar
mssql-jdbc-8.2.0.jre8.jar


Use the "mssql-jdbc-X.y.z.jre8.jar" jar with the WA Agent.  The jar should be placed in <agent_install>/jars/ext directory.  Remove or delete any other JDBC jar(s), do not rename them.  Restart of agent is required for agent to load the drivers.