IBM Support

IT28062: While getting an empty message, XMS .Net applications reports CWSMQ0282E and crash.

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

  • Consuming an empty message in asynchronous mode using an
    unmanaged .NET XMS application encounters an XMSException such
    as below in the application log.
    
    IBM.XMS.XMSException: CWSMQ0282E: A null value has been used for
    argument BUFFER = <> NULL within method
    ImportMQMDMesageBuffer(WmqSession, WmqDestination,
    MQMD,byte[],int,int).
    The preceding method detected an invalid null argument.
    If necessary, recode the application to avoid the error
    condition.
    at
    IBM.XMS.Client.WMQ.WmqReceiveMarshal.ImportMQMDMesageBuffer(MQMe
    ssageDescriptor mqmd, Byte[]
    buffer, Int32 dataStart, Int32 dataEnd)
    at IBM.XMS.Client.WMQ.WmqAsyncConsumerShadow.Consumer(Phconn
    hconn, MQMessageDescriptor mqmd,
    MQGetMessageOptions mqgmo, Byte[] pBuffer, MQCBC mqcbc)
    at IBM.WMQ.Nmqi.UnmanagedNmqiMQ.NmqiConsumerMethodUM(Int32
    hconn, IntPtr structMqmd, IntPtr
    structMqgmo, IntPtr buffer, IntPtr structMqcbc)
    
    After this XMSException the Windows Service, which runs the
    IBM Client application, crashes.
    

Local fix

  • NA
    

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    All users using an IBM MQ XMS .Net application in unmanaged mode
    to get the message asynchronously.
    
    
    Platforms affected:
    Windows
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    When an empty message is put by any application and got
    asynchronously by an XMS application in unmanaged mode, a
    certain buffer was not initialized properly before using,
    causing the XMS application to throw the exception.
    

Problem conclusion

  • The code has been modified to initialize the buffer when empty
    string is being get by the XMS application.
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
    Version    Maintenance Level
    v8.0       8.0.0.12
    v9.0 LTS   9.0.0.7
    v9.1 CD    9.1.3
    v9.1 LTS   9.1.0.3
    
    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

    IT28062

  • 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-02-11

  • Closed date

    2019-03-28

  • Last modified date

    2019-03-28

  • 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":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
28 March 2019