SAP Hana Jobs throw U02000155 UnsupportedOperationException use getPeerCertificates
search cancel

SAP Hana Jobs throw U02000155 UnsupportedOperationException use getPeerCertificates

book

Article ID: 431374

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

After a server maintenance (system updates) all the SAP Hana jobs launched with the Agent SQL Hana log the following error when trying to connect to the database:

U02000155 Internal error (Exception).
java.lang.UnsupportedOperationException: This method is deprecated and marked for removal. Use the getPeerCertificates() method instead.
at java.base/javax.net.ssl.SSLSession.getPeerCertificateChain(SSLSession.java:295)
at com.sap.db.jdbc.SecureSession._finishSSLInit(SecureSession.java:255)
at com.sap.db.jdbc.SecureSession.<init>(SecureSession.java:99)
at com.sap.db.jdbc.SecureSession$1.newInstance(SecureSession.java:37)
at com.sap.db.jdbc.Session.newInstance(Session.java:116)
at com.sap.db.jdbc.ConnectionSapDB._connectAnchor(ConnectionSapDB.java:2245)
at com.sap.db.jdbc.DriverSapDB._connect(DriverSapDB.java:2407)

 

Environment

Automic Agent SQL 24.x for database SAP HANA

Cause

Wrong Java version being used to start the agent (Java 11 instead of Java 17) following a System update during the weekend.

Resolution

Start the Agent SQL with the correct Java version (Java 17).