IBM Support

IT00390: A WMQ 7.1 JMS APPLICATION FAILS WITH J2CA0046E ERROR WHEN TRYINGTO CREATE A CONNECTION TO A QUEUE MANAGER.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A WebSphere MQ 7.1 classes for JMS application, using the Apache
    Axis2 client and running within WebSphere Application Server,
    fails with the following exception:
    
    J2CA0046E: Method createManagedConnectionWithMCWrapper caught an
    exception during
    creation of the ManagedConnection for resource jms/qcf1,
    throwing ResourceAllocationException.
    
    Original exception: java.lang.ClassNotFoundException:
    Class Not found: com.ibm.mq.ese.jmqi.ESEJMQI
    java.lang.RuntimeException:
    java.lang.ClassNotFoundException:
    Class Not found : com.ibm.mq.ese.jmqi.ESEJMQI
    at
    org.apache.axis2.deployment.DeploymentClassLoader.findClass(Depl
    oymentClassLoader.java:88)
    at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:665)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:644)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:627)
    at
    org.apache.axis2.classloader.MultiParentClassLoader.loadClass(Mu
    ltiParen tClassLoader.java:210)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:627)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:170)
    at com.ibm.mq.jmqi.internal.JmqiTools$1.run(JmqiTools.java:862)
    at com.ibm.mq.jmqi.internal.JmqiTools$1.run(JmqiTools.java:844)
    at
    java.security.AccessController.doPrivileged(AccessController.jav
    a:229)
    at
    com.ibm.mq.jmqi.internal.JmqiTools.dynamicLoadClass(JmqiTools.ja
    va:842)
    at
    com.ibm.mq.jmqi.JmqiEnvironment.processESESecurity(JmqiEnvironme
    nt.java: 877)
    at
    com.ibm.mq.jmqi.JmqiEnvironment.getInstance(JmqiEnvironment.java
    :812)
    at
    com.ibm.mq.jmqi.JmqiEnvironment.getMQI(JmqiEnvironment.java:638)
    at
    com.ibm.msg.client.wmq.factories.WMQXAConnectionFactory.createV7
    ProviderConnection(WMQXAConnectionFactory.java:167)
    ......
    Caused by: java.lang.ClassNotFoundException: Class Not found :
    com.ibm.mq.ese.jmqi.ESEJMQI
    at
    org.apache.axis2.deployment.DeploymentClassLoader.findClass(Depl
    oymentClassLoader.java:84)
    
    
    This exception can be observed in the WebSphere Application
    Server SystemOut.log file and a WebSphere MQ classes for JMS
    trace.
    

Local fix

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    This issue affects users of:
    
    - The WebSphere MQ V7.1 classes for Java.
    - The WebSphere MQ V7.1 classes for JMS.
    - The WebSphere MQ V7.1 Resource Adapter.
    - The WebSphere Application Server V7.1 WebSphere MQ messaging
      provider.
    - The WebSphere Application Server V6.1 WebSphere MQ messaging
      provider who have configured the WebSphere variable
      MQ_INSTALL_ROOT to point to a WebSphere MQ V7 installation.
    
    with an application that utilises the Apache Axis2 client.
    
    
    Platforms affected:
    MultiPlatform
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    A WebSphere MQ classes for JMS or classes for Java application
    that embedded the Apache Axis2 client attempted to load the
    com.ibm.mq.ese.jmqi.ESEJMQI class for WebSphere MQ Advanced
    Message Security in the following process:
    
    org.apache.axis2.deployment.DeploymentClassLoader.findClass()
    
    If this class could not be found then the Apache Axis2
    classloader threw a java.lang.RuntimeException with a nested
    java.lang.ClassNotFoundException.
    
    The WebSphere MQ classes for JMS and classes for Java expected a
    java.lang.ClassNotFoundException to be thrown if the class could
    not be found, but did not handle the case where this exception
    was instead a linked exception within a
    java.lang.RuntimeException wrapper. As a result, a connection to
    a WebSphere MQ queue manager was not established and the
    exception thrown back to the application or JEE container.
    

Problem conclusion

  • The WebSphere MQ classes for JMS and classes for Java have been
    updated to catch a java.lang.RuntimeException where the cause is
    a nested java.lang.ClassNotFoundException exception resulting
    from a failure to load the class com.ibm.mq.ese.jmqi.ESEJMQI
    class. java.lang.RuntimeException exceptions that do not have a
    java.lang.ClassNotFoundException exception as the cause are not
    caught and continue to be thrown to the application or
    container.
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
    Version    Maintenance Level
    v7.1       7.1.0.6
    v7.5       7.5.0.5
    
    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

    IT00390

  • Reported component name

    WMQ WINDOWS V7

  • Reported component ID

    5724H7220

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-03-18

  • Closed date

    2014-05-13

  • Last modified date

    2014-05-13

  • 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 WINDOWS V7

  • Fixed component ID

    5724H7220

Applicable component levels

  • R710 PSY

       UP

[{"Line of Business":{"code":"LOB36","label":"IBM Automation"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSFKSJ","label":"WebSphere MQ"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.1"}]

Document Information

Modified date:
25 September 2021