IBM Support

IC76368: During MQDestination.Put, WebSphere MQ .NET application fails with exception System.IndexOutOfRangeException

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The following exception is thrown while inside WebSphere MQ
    code:
    
    Exception: System.IndexOutOfRangeException: Index was outside
    the bounds of the array.
    at IBM.WMQ.RFH2.InsertIntIntoByteArray(Int32 i, Byte[]
    array, Int32 off, Int32 encoding)
    at IBM.WMQ.MQMarshalMessageForPut.WriteRFH2Properties()
    at IBM.WMQ.MQMarshalMessageForPut.ConstructMessageForSend()
    at
    IBM.WMQ.MQDestination.PerformMsgProcessgingBeforePut(MQMessage&
    mqMsg)
    at IBM.WMQ.MQDestination.Put(MQMessage message,
    MQPutMessageOptions pmo)
    at IBM.WMQ.MQDestination.Put(MQMessage message)
    at userprogram.userprogram.Main(String[] args) in ...
    

Local fix

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    Users with .NET applications that put messages containing MQRFH2
    data blocks, and in which the MQMessage.Encoding is a big-endian
    integer encoding.
    
    Platforms affected:
    Windows
    
    ****************************************************************
    PROBLEM SUMMARY:
    Within the WebSphere MQ .NET classes, a message buffer was being
    populated with an MQRFH2 data block.
    
    Where integer data was being packed into the RFH2 data block,
    the data was being copied to an incorrect location, and with an
    incorrect length. This led to an attempt to write beyond the end
    of the buffer, and the system threw an exception.
    

Problem conclusion

  • The WebSphere MQ product code has been corrected to ensure the
    correct number of bytes is written to the buffer.
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
                       v7.0
    Platform           Fix Pack 7.0.1.7
    --------           --------------------
    Windows            U200333
    
    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

    IC76368

  • Reported component name

    WMQ WINDOWS V7

  • Reported component ID

    5724H7220

  • Reported release

    701

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-05-12

  • Closed date

    2011-07-04

  • Last modified date

    2011-07-04

  • 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 WINDOWS V7

  • Fixed component ID

    5724H7220

Applicable component levels

  • R701 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCPQ63","label":"APAR \/ Maintenance"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
04 July 2011