IBM Support

IT14816: .NET client fails with '2195' MQRC_UNEXPECTED_ERROR during MQGETcall

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • MQ Managed .NET client fails with '2195' MQRC_UNEXPECTED_ERROR
    during  a MQGET call.
    
    System.ArgumentException: Offset and length were out of bounds
    for the array or count is greater than the number of elements
    from index to the end of the source collection.
       at System.Buffer.BlockCopy(Array src, Int32 srcOffset, Array
    dst,Int32 dstOffset, Int32 count)    at
    IBM.WMQ.MQFAP.zstMQGET(ManagedHconn remoteHconn, Hobj hObj,
    MQMessageDescriptor& mqmd, MQGetMessageOptions& mqgmo, Int32
    bufferLength, Byte[] buffer, Int32& dataLength, MQLPIGetOpts
    lpiGetOpts, Int32& compCode, Int32& reason) in
    C:\Users\IBM_ADMIN\pc\winnt\managed\MQA.cs:line
    6962
    000010EF 14:19:36.437585   1944.9      IBM.WMQ.MQQueue#019IBME9
    throwing MQException: cc=2 rc=2195
    000010F0 14:19:36.437585   1944.9      New MQException
    CompCode: 2 Reason: 2195
    000010F1 14:19:40.945993   1944.9     (03)----}!
    MQDestination.Get(MQMessage,MQGetMessageOptions,int)
    rc=(Unknown(2195))
    000010F2 14:19:42.271995   1944.9     (02)---}!
    MQDestination.Get(MQMessage,MQGetMessageOptions)
    rc=(Unknown(2195))
    000010F3 14:19:43.395197   1944.9     (01)--}!
    MQDestination.Get(MQMessage) rc=(Unknown(2195))
    

Local fix

  • Modify the putting application to ensure that message lengths
    are 4 byte aligned
    

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    Those using MQ .NET client application in managed mode.
    
    
    Platforms affected:
    Windows
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    A coding error in the buffer allocation logic of MQGET call in
    the MQ managed .NET client caused System.ArgumentException to be
    thrown while getting the last segment of the message from the
    server, if the message size was not 4-byte aligned.
    

Problem conclusion

  • MQ .Net Managed client logic has been updated to correct the
    buffer allocation during MQGET call.
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
    Version    Maintenance Level
    v8.0       8.0.0.6
    v9.0 CD    9.0.1
    v9.0 LTS   9.0.0.1
    
    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

    IT14816

  • Reported component name

    WMQ BASE MULTIP

  • Reported component ID

    5724H7251

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-04-15

  • Closed date

    2016-07-28

  • Last modified date

    2017-06-01

  • 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

    WMQ BASE MULTIP

  • Fixed component ID

    5724H7251

Applicable component levels

  • R800 PSY

       UP

[{"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:
01 June 2017