What it means
This code is for Java and JMS programs only. Something went wrong in the Java Secure Socket Extension, typically while setting up a TLS connection. MQ wraps the real Java exception, which holds the detail you need.
Typical causes
- The truststore does not contain the CA certificate that signed the queue manager's certificate.
- The keystore or truststore path or password is wrong.
- The client and the channel do not agree on the TLS version or cipher.
- A certificate has expired or the host name does not match.
How to fix it
- Get the underlying exception with getCause() (or the linked exception in JMS) and read it.
- Check the Java keystore and truststore settings and their contents.
- Compare the client cipher suite with the channel's SSLCIPH.
- Check certificate expiry dates on both sides.
Example
Illustrative only; names and values are invented.
MQJE001: Completion Code '2', Reason '2397'.
Caused by: javax.net.ssl.SSLHandshakeException: ...