IBM Support

IZ95088: SYSTEM.INVALIDOPERATIONEXCEPTION IS THROWN BY A MULTI-THREADED WMQ V7 XMS .NET APPLICATION WHEN CREATING MESSAGE PRODUCER

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A Message Service Client for .NET v2.0 connected to a WebSphere
    MQ v7 queue manager with multithreaded application when tries
    to create message producer causes Invalid Operation Exception.
    System.InvalidOperationException: Collection was modified;
    enumeration
    operation may not execute.
    at
    System.Collections.Hashtable.HashtableEnumerator.MoveNext()
    at IBM.XMS.WMQ.WmqDestination.CrossPropertyValidate()
    at
    IBM.XMS.Client.Impl.XmsPropertyContextImpl.set_BatchProperties
    (Hashtable value)
    at
    IBM.XMS.Client.Impl.XmsSessionImpl.GetXmsDestination
    (IDestination dest)
    at
    IBM.XMS.Client.Impl.XmsSessionImpl.CreateProducer(IDestination
    dest)
    at SessionTest.Worker.Run(Object stateInfo)
    

Local fix

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    Customer using XMS .NET client multithreaded applications
    connecting to WebSphere MQ.
    
    Platforms affected:
    Windows
    
    ****************************************************************
    PROBLEM SUMMARY:
    The XMS .NET internally uses the Hash table to maintain the
    properties of the object. This hash table was accessed by
    multiple threads, the hash table is modified by one of the
    thread while it is being accessed by another thread this is
    resulted in the exception of System.InvalidOperationException:
    Collection was modified.
    

Problem conclusion

  • XMS .NET client product code is modified to synchronize the
    access to the property hash table
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ95088

  • 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-14

  • Closed date

    2011-02-28

  • Last modified date

    2011-02-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

    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:
28 February 2011