IBM Support

IT30096: MQ .NET returns 2059 error instead of returning 2537 and 2538

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When using security exits :
    1. If MQXCC_SUPPRESS_FUNCTION is returned during the MQXR_INIT
    stage of the server side security exit managed .NET returns
    2059 instead of 2537 (MQRC_CHANNEL_NOT_AVAILABLE) that a C
    client does.
    2. For every other stage of the security exit if
    MQXCC_SUPPRESS_FUNCTION is returned a C client would return a
    2538 (MQRC_HOST_NOT_AVAILABLE) where the managed .NET returned
    a 2009 in most cases, but I did note that if I returned
    MQXCC_SUPPRESS_FUNCTION during the MQXR_SEC_PARMS call when a
    MQCSP had not been sent by the Managed .NET client the Managed
    .NET client returned a 2195.
    
    Also when the .NET managed application uses a channel name which
    does not exist to connect to queue manager, .NET returns 2059
    instead
    of 2540(MQRC_UNKNOWN_CHANNEL_NAME) that a C client does.
    

Local fix

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    Users using MQ managed .NET application
    
    
    Platforms affected:
    Windows
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    Exception thrown in .NET layer was not handled correctly causing
    incorrect return code to be reported.
    

Problem conclusion

  • The MQ .NET code has been corrected to report the correct return
    code to the application.
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
    Version    Maintenance Level
    v8.0       8.0.0.15
    v9.0 LTS   9.0.0.9
    v9.1 CD    9.1.5
    v9.1 LTS   9.1.0.5
    
    The latest available maintenance can be obtained from
    'WebSphere MQ Recommended Fixes'
    http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27006037
    
    If the maintenance level is not yet available information on
    its planned availability can be found in 'WebSphere MQ
    Planned Maintenance Release Dates'
    http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27006309
    ---------------------------------------------------------------
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT30096

  • Reported component name

    IBM MQ BASE MP

  • Reported component ID

    5724H7251

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-08-27

  • Closed date

    2020-02-10

  • Last modified date

    2020-02-10

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    IBM MQ BASE MP

  • Fixed component ID

    5724H7251

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.0.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
10 February 2020