UFM and MQJE001: Completion Code ‘2’, Reason ‘2495’

Universal File Mover (UFM) can work with both 32-bit and 64-bit JVMs. If you are using client mode for connecting to your queue manager then life will be fine with either of the JVMs.

If you are on Windows, attempting to connect to the queue manager in bindings mode with a 64-bit JVM, you may get the following error:

MQException: MQJE001: Completion Code '2', Reason '2495'.
MQException: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;
AMQ8568: The native JNI library 'mqjbnd' was not found. [3=mqjb MQCC=2 : MQRC=2495

The reason for this error is that when WMQ Server was installed, the installer updated the PATH environment variable with both the 32-bit and 64-bit paths to the mqjbnd.dll. The problem is that the 32-bit path is first, hence, the failure as the user is using the 64-bit JVM.

You have 2 ways to solve this issue:

(1) Change your PATH so that the {WMQ_Install_dir}\java\lib64 is before {WMQ_Install_dir}\java\lib directory but this may affect other running MQ application that may have their own JVM that is 32-bit.

(2) Add the following line to the ufm.bat file:

set PATH=%MQ_FILE_PATH%\java\lib64;%PATH%

Personally, I think option # 2 is the simplest and easiest option to implement to fix the above error.

Regards,
Roger Lacroix
Capitalware Inc.

This entry was posted in Capitalware, IBM i (OS/400), IBM MQ, Java, Linux, macOS (Mac OS X), Open Source, Universal File Mover, Unix, Windows.

Comments are closed.