IBM Support

IZ95356: XMS .NET CLIENT CREATE CONSUMER FAILS WITH UNHANDLED EXCEPTION: SYSTEM.ACCESSVIOLATIONEXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Create consumer is called twice in the same session that has
    previously registered a messageListener, the creation of the
    second consumer fails with an incorrect exception of
    "Unhandled Exception: System.AccessViolationException: Attempted
    to read or write protected memory".
    

Local fix

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:
    Incorrect exception is thrown when XMS .NET application tries
    to create consumer with the session on which asynchronous
    message delivery is already running. The exception thrown is
    Unhandled Exception: System.AccessViolationException: Attempted
    to read or write protected memory which is incorrect.
    

Problem conclusion

  • XMS .NET client code is modified to throw  a correct exception
    as,
    CWSMQ0101E: Synchronous method call not permitted when a
    session is being used asynchronously:CreateConsumer. The XMS
    specification does not permit the use of a session for
    synchronous methods when asynchronous message delivery is
    running. Create a separate session if you wish to use both
    synchronous methods and asynchronous delivery simultaneously.
    ---------------------------------------------------------------
    This APAR is shipping in XMS client version 2.0.0.5 with the
    WMQ version 7.0.1.5
    
    ----------------------------------------------------------------
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ95356

  • Reported component name

    MSG SRVCS CL .N

  • Reported component ID

    5724M2100

  • Reported release

    200

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-02-18

  • Closed date

    2011-02-28

  • Last modified date

    2011-05-02

  • 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

    MSG SRVCS CL .N

  • Fixed component ID

    5724M2100

Applicable component levels

  • R200 PSY

       UP

[{"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:
02 May 2011