IBM Support

IT14222: MQ V8.0.0.4 REDISTRIBUTABLE CLIENT: UNMANAGED .NET APPLICATION THROWS TYPE INITIALIZER ERROR.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An unmanaged .NET application using the Redistributable Client
    feature introduced in MQ v8.0.0.4 fails with a "type
    initializer" exception.
    
    MQ trace of the failure shows the following:
    System.TypeInitializationException: The type initializer for
    'IBM.WMQ.Nmqi.UnmanagedNmqiMQ' threw an exception. --->
    System.NullReferenceException: Object reference not set to an
    instance of an object.
       at IBM.WMQ.Nmqi.NativeManager.InitializeNativeApis(String
    mode)
       at IBM.WMQ.Nmqi.UnmanagedNmqiMQ..cctor()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target,
    Object arguments, Signature sig, Boolean constructor)
       at
    System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags
    invokeAttr, Binder binder, Objectݨ parameters, CultureInfo
    culture)
       at System.RuntimeType.CreateInstanceImpl(BindingFlags
    bindingAttr, Binder binder, Object args, CultureInfo culture,
    Object activationAttributes, StackCrawlMark& stackMark)
       at System.Activator.CreateInstance(Type type, BindingFlags
    bindingAttr, Binder binder, Objectݨ args, CultureInfo culture,
    Object  activationAttributes)
       at System.Reflection.Assembly.CreateInstance(String
    typeName,Boolean ignoreCase, BindingFlags bindingAttr, Binder
    binder, Object args,
    
    CultureInfo culture, Object activationAttributes)
       at IBM.WMQ.Nmqi.NmqiEnvironment.GetInstance(String name)
    

Local fix

  • Install higher version of MQ client along with Redistributable
    client.
    

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    Users of the IBM MQ .NET v8 Redistributable client
    
    
    Platforms affected:
    Windows
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    The logic to locate the MQ .NET runtime library (amqmdnet.dll)
    when running a .NET application has changed with
    resdistributable clients. A coding error within this change
    meant that the MQ .NET client was unable to locate runtime
    library when the environment was not associated with a full MQ
    installation.
    

Problem conclusion

  • The MQ .NET redistributable client has been updated to correctly
    locate the runtime library from the client directory if a full
    MQ installation is not present.
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
    Version    Maintenance Level
    v8.0       8.0.0.6
    
    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

    IT14222

  • 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-03-09

  • Closed date

    2016-04-29

  • Last modified date

    2016-11-25

  • 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":"LOB45","label":"Automation"}}]

Document Information

Modified date:
25 November 2016