APAR status
Closed as program error.
Error description
A managed .NET application gets error CWSMQ0006E and Exception System.ArgumentNullException when it attempts to connect to the queue manager. The following is the exception detail: MessageConsumerBackgroundService has encountered an unhandled exception. IBM.XMS.XMSException: CWSMQ0006E: An exception was received during the call to the method ConnectionFactory.CreateConnection: System.NullReferenceException: Object reference not set to an instance of an object. at IBM.WMQ.MQConnectOptions.set_ConnTag(Byte[] value) in D:\IBM\MQ\basedotnet\nmqi\MQConnectOptions.cs:line 300 at IBM.WMQ.MQFAP.NmqiConnect(String name, NmqiConnectOptions pNmqiConnectOpts, MQConnectOptions cno, Hconn remoteParentHconn, Phconn pHconn, Int32& compCode, Int32& reason, ManagedHconn rcnHconn) in D:\basedotnet\MQFAP.prep.cs:line 2095 at IBM.WMQ.MQFAP.NmqiConnect(String pQMgrName, NmqiConnectOptions pNmqiConnectOpts, MQConnectOptions pConnectOpts, Hconn parentHconn, Phconn pHconn, Int32& pCompCode, Int32& pReason) in D:\basedotnet\MQFAP.prep.cs:line 1231 at IBM.XMS.Client.WMQ.WmqConnection..ctor(NmqiEnvironment nmqiEnv, NmqiMQ nmqiMQ, XmsPropertyContext connectProps) in D:\IBM\MQ\xms\dotnetclient\src\code\ClientWMQ\WmqConnection.cs:l ine 180 at IBM.XMS.Client.WMQ.Factories.WmqConnectionFactory.CreateV7Provid erConnection(XmsPropertyContext connectionProps) in D:\IBM\MQ\xms\dotnetclient\src\code\ClientWMQ\Factories\WmqConne ctionFactory.cs:line 1405. During execution of the specified method an exception was thrown by another component. See the linked exception for more information. at IBM.XMS.Client.WMQ.Factories.WmqConnectionFactory.CreateProvider Connection(XmsPropertyContext connectionProps) in D:\IBM\MQ\xms\dotnetclient\src\code\ClientWMQ\Factories\WmqConne ctionFactory.cs:line 850 at IBM.XMS.Client.Impl.XmsConnectionFactoryImpl.CreateConnection(St ring userID, String password) in D:\IBM\MQ\xms\dotnetclient\src\code\ClientImpl\Admin\XmsConnecti onFactoryImpl.cs:line 239 at IBM.XMS.Client.Impl.XmsConnectionFactoryImpl.CreateConnection() in D:\IBM\MQ\xms\dotnetclient\src\code\ClientImpl\Admin\XmsConnecti onFactoryImpl.cs:line 194 at SimpleWMQSamples.SimpleConsumer.ReceiveMessages() in D:\IBM\MQ\xms\dotnetclient\src\samples\SampleProducer\SampleProd ucerCS.cs:line 185 at SimpleWMQSamples.SimpleConsumer.Main(String[] args) in D:\IBM\MQ\xms\dotnetclient\src\samples\SampleProducer\SampleProd ucerCS.cs:line 114
Local fix
Problem summary
**************************************************************** USERS AFFECTED: Users using MQ managed .Net client to connect to a queue manager of version 9.2 or lower. Platforms affected: Windows, Linux on x86-64 **************************************************************** PROBLEM DESCRIPTION: A coding error caused one of the arguments to an internal method call to be null while assigning the values
Problem conclusion
MQ Managed .Net code has been modified to send correct value to the argument of the method --------------------------------------------------------------- The fix is targeted for delivery in the following PTFs: Version Maintenance Level v9.3 LTS 9.3.0.20 v9.4 LTS 9.4.0.0 The latest available maintenance can be obtained from 'IBM MQ Recommended Fixes' https://www.ibm.com/support/pages/recommended-fixes-ibm-mq If the maintenance level is not yet available information on its planned availability can be found in 'IBM MQ Planned Maintenance Release Dates' https://ibm.biz/mqplannedmaintenance ---------------------------------------------------------------
Temporary fix
Comments
APAR Information
APAR number
IT41710
Reported component name
MQ BASE V9.3
Reported component ID
5724H7291
Reported release
930
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2022-08-05
Closed date
2024-02-06
Last modified date
2024-05-14
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
MQ BASE V9.3
Fixed component ID
5724H7291
Applicable component levels
[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"930","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"}}]
Document Information
Modified date:
14 May 2024