Skip to content

Interpretation of IBM MQ error codes in error messages #110

@alexander-milovidov

Description

@alexander-milovidov

Specifications

  • JMSToolBox version: 5.10.0
  • OS: Microsoft Windows [Version 10.0.17763.1817] 64-bit
  • Q provider (kind, version) : IBM MQ 9.1

Expected Behavior

Error messages like MQRC nnnn (reason codes) can be interpreted - for example, MQRC 2035 = MQRC_NOT_AUTHORIZED, MQRC 2058 = MQRC_Q_MGR_NAME_ERROR. It makes error messages more readable (even without a readable detailed description, which is also could be useful).

Actual Behavior

Error messages contain only MQ return code (reason) and difficult to understand for people who are not experienced in IBM MQ.
image

Steps to Reproduce the Problem

  1. Connect to IBM MQ manager with incorrect QM name specified in connection properties. Error message is: com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2058'.
    MQJE001: Completion Code '2', Reason '2058'.

  2. Connect to IBM MQ with incorrect username/password or user with no rights. Error message is: com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2035'.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions