IBM Support

IZ89093: XMS .NET application throws an exception while closing a session in the Asynchronous Message Listener Callback.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as documentation error.

Error description

  • XMS .NET application connected to an WMQ server in Unmanaged
    mode and receiving messages asynchronously throws an exception
    while closing the session. The session close is issued in the
    message listener method and the following exception is thrown :
    Exception caught in OnNewMessageCallback:
    IBM.XMS.IllegalStateException: The method MQBACK failed. A
    WebSphere MQ call failed. Linked Exception : CompCode: 2,
    Reason:2018
    

Local fix

  • The work around for customer is to create the Session outside
    the MessageListner method which need to be used for sending
    reply message.
    

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    Customers using XMS .NET client applications connecting to
    WebSphere MQ in Unmanaged mode and receiving messages
    asynchronously.
    
    Platforms affected:
    Windows
    
    ****************************************************************
    PROBLEM SUMMARY:
    WMQ .NET client when connecting to WebSphere MQ server in
    Unmanaged mode does not support the MQDISC call from within a
    call back function. As XMS .NET is built on WMQ .NET client, an
    XMS application cannot Create / Close sessions within the
    Asynchronous Message Listener Callback function. XMS
    documentation needs to be updated to address this.
    

Problem conclusion

  • XMS documentation is updated with following words,
    In Unmanaged mode, the MQDISC call within a call back function
    is not supported by WMQ.NET client. Hence, the client
    application cannot Create / Close sessions within the
    MessageListener callback in Asynchronous receive.It is
    recommended to create and dispose the session outside the
    MessageListener method.
    ---------------------------------------------------------------
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ89093

  • Reported component name

    MSG SRVCS CL .N

  • Reported component ID

    5724M2100

  • Reported release

    200

  • Status

    CLOSED DOC

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-11-12

  • Closed date

    2010-12-24

  • Last modified date

    2010-12-24

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

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

Fix information

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCRTPP","label":"SupportPac"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"2.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
24 December 2010