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)