IBM Support

IT16606: Using.NET sample simplexaput fails intermittently with MQRC_UNEXPECTED_ERROR during queue manager disconnect

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When using the IBM MQ .NET sample application, SimpleXAPut, it
    fails intermittently with an MQException 2195
    MQRC_UNEXPECTED_ERROR during queue manager disconnect.
    .
    An error similar to the one below is generated:
    .
     Transaction start..
     Connecting to queue manager.. done
     Accessing queue XYZ.TEST.. done
     Message 1 <TestMessage>.. put
     Transaction ending.. rolled back
     Closing queue XYZ.TEST.. done
     Disconnecting queue manager..
     MQException caught: 2195 - MQRC_UNEXPECTED_ERROR
        at IBM.WMQ.MQQueueManager.Disconnect()
        at SimpleXASample.SimpleXAPut.PutMessagesWithinTransaction()
        at ...
     End of SimpleXAPut Application
    .
    

Local fix

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    Users using MQ .NET XA applications in managed mode.
    
    
    Platforms affected:
    Windows
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    A logic error within the MQ .NET client code caused the MQDISC
    call to incorrectly report MQRC_UNEXPECTED_ERROR if there was an
    ongoing commit or rollback operation on that connection. It is
    expected that the MQDISC call will wait while the operation
    completes.
    

Problem conclusion

  • The MQ .NET code is modified to wait for the completion of  the
    commit or rollback operation that is in progress before the
    connection to the queue manager is disconnected.
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
    Version    Maintenance Level
    v7.5       7.5.0.8
    v8.0       8.0.0.6
    v9.0 CD    9.0.1
    v9.0 LTS   9.0.0.1
    
    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

    IT16606

  • Reported component name

    WMQ BASE MULTIP

  • Reported component ID

    5724H7251

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-08-24

  • Closed date

    2016-09-30

  • Last modified date

    2017-06-01

  • 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 BASE MULTIP

  • Fixed component ID

    5724H7251

Applicable component levels

  • R800 PSY

       UP

[{"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:
01 June 2017