Upgrading to DEVTEST 10.8.4, MQ Steps are failing with UnsupportedOperationException ERROR
search cancel

Upgrading to DEVTEST 10.8.4, MQ Steps are failing with UnsupportedOperationException ERROR

book

Article ID: 409514

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

We have observed that IBM MQ Steps are failing after Upgrade to DEVTEST 10.8.4.  

 ERROR System.err                     - Exception in thread "HandshakeCompletedNotify-Thread" java.lang.UnsupportedOperationException: This method is deprecated and marked for removal. Use the getPeerCertificates() method instead.

RROR - Exception in thread "HandshakeCompletedNotify-Thread" java.lang.UnsupportedOperationException: This method is deprecated and marked for removal. Use the getPeerCertificates() method instead.
ERROR -     at java.base/javax.net.ssl.SSLSession.getPeerCertificateChain(SSLSession.java:295)
ERROR -     at java.base/javax.net.ssl.HandshakeCompletedEvent.getPeerCertificateChain(HandshakeCompletedEvent.java:173)
ERROR -     at com.ibm.mq.jmqi.remote.impl.RemoteTCPConnection.handshakeCompleted(RemoteTCPConnection.java:2112)
ERROR -     at java.base/sun.security.ssl.TransportContext$NotifyHandshake$1.run(TransportContext.java:701)
ERROR -     at java.base/sun.security.ssl.TransportContext$NotifyHandshake$1.run(TransportContext.java:698)
ERROR -     at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
ERROR -     at java.base/sun.security.ssl.TransportContext$NotifyHandshake.run(TransportContext.java:698)
ERROR -     at java.base/java.lang.Thread.run(Thread.java:833)
INFO  - QuickSearch$QuickSearchPainter.hideSearch

Environment

DevTest 10.8.4 and up

Cause

MQ all client jar  is incompatible with JDK 17

Resolution

Replace the existing com.ibm.allclient jar   with a compatible version like  com.ibm.mq.allclient-9.4.2.0.jar

IBM MQ 9.2.4 adds Java 17 support for IBM MQ classes for Java