Tuesday, February 7, 2012

Classloader issues with MQ shared object files

NoClassDefFoundError: com/ibm/mq/server/MQSESSION when running WSMQ adapter in bindings mode

Symptom

GIS 4.1.1 Build Version: 1982_BR4932266_SR1370953
Customer is able to use WSMQ adapter without issue when running in client mode. When switching to bindings mode, an initializer error and no class definition found error is logged in the WebSphereMQSuite.log
Verified that the correct jars are referenced in dynamicclasspath.cfg, and that they exist at the specified locations.
Error Message [2009-05-26 10:40:19.53] ALL 000000000000 GLOBAL_SCOPE <WSMQAsyncRcv-TA.CA.INFRA.TEST_Node2-515856336> ##[DEBUG]## startupAdapter
[2009-05-26 10:40:19.54] ALL 000000000000 GLOBAL_SCOPE <WSMQAsyncRcv-TA.CA.INFRA.TEST_Node2-514938832> ### WSMQAsyncRcv thread running ###
[2009-05-26 10:40:19.54] ALL 000000000000 GLOBAL_SCOPE <WSMQAsyncRcv-TA.CA.INFRA.TEST_Node2-515856336> ##[DEBUG]## startup complete
[2009-05-26 10:40:19.547] ALL 000000000000 GLOBAL_SCOPE <WSMQAsyncRcv-TA.CA.INFRA.TEST_Node2-514938832> ##[DEBUG]## ThreadMgr maxThreads=10
[2009-05-26 10:40:19.547] ALL 000000000000 GLOBAL_SCOPE <WSMQAsyncRcv-TA.CA.INFRA.TEST_Node2-ccaita2p:16ff17dd:1217d5d1ebc:-100f-5149388 32> ##[DEBUG]## Attempting to open a connection with the following values:
MQEnvironment version_notice=MQSeries classes for Java V5.2.0
hostname=null (bindings mode)
port=1414
qManager=QM0.PR.US.CCAITA2P
channel=null (bindings mode)
[2009-05-26 10:40:19.589] ERROR 000000000000 GLOBAL_SCOPE <WSMQAsyncRcv-TA.CA.INFRA.TEST_Node2-514938832> Exception in WSMQAsyncRcv thread
java.lang.ExceptionInInitializerError
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java(Compiled Code))
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java(Compiled Code))
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java(Compiled Code))
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBind ingsManagedConnectionFactoryJ11.java:179)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindi ngsManagedConnectionFactoryJ11.java:215)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java(Compiled Code))
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManage r.java(Compiled Code))
at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory. java(Compiled Code))
at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java(Compiled Code))
at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.jav a(Compiled Code))
at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java(C ompiled Code))
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java(Compiled Code))
at com.sterlingcommerce.woodstock.services.wsmqSuite.WSMQSession.openConnection(WSM QSession.java(Inlined Compiled Code))
at com.sterlingcommerce.woodstock.services.wsmqSuite.WSMQSession.openSession(WSMQSe ssion.java(Compiled Code))
at com.sterlingcommerce.woodstock.services.wsmqSuite.WSMQAsyncRcv$1.run(WSMQAsyncRc v.java(Compiled Code))
Caused by: java.lang.NullPointerException
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2159)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1994)
at java.lang.Runtime.loadLibrary0(Runtime.java:824)
at java.lang.System.loadLibrary(System.java:908)
at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:1088)
at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:230)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:224)
... 15 more
[2009-05-26 10:40:19.686] ERROR 000000000000 GLOBAL_SCOPE <WSMQAsyncRcv-TA.CA.INFRA.TEST_Node2-514938832> Exception in WSMQAsyncRcv thread during backout
java.lang.Exception: Queue Manager is null.
at com.sterlingcommerce.woodstock.services.wsmqSuite.WSMQSession.backout(WSMQSessio n.java(Inlined Compiled Code))
at com.sterlingcommerce.woodstock.services.wsmqSuite.WSMQAsyncRcv$1.run(WSMQAsyncRc v.java(Compiled Code))
[2009-05-26 10:40:19.687] ALL 000000000000 GLOBAL_SCOPE <WSMQAsyncRcv-TA.CA.INFRA.TEST_Node2-514938832> ### Exception occurred - waiting to retry
[2009-05-26 10:45:19.688] ALL 000000000000 GLOBAL_SCOPE <WSMQAsyncRcv-TA.CA.INFRA.TEST_Node2-ccaita2p:16ff17dd:1217d61d8d8:-3273-5149388 32> ##[DEBUG]## Attempting to open a connection with the following values:
MQEnvironment version_notice=MQSeries classes for Java V5.2.0
hostname=null (bindings mode)
port=1414
qManager=QM0.PR.US.CCAITA2P
channel=null (bindings mode)
[2009-05-26 10:45:19.688] ERROR 000000000000 GLOBAL_SCOPE <WSMQAsyncRcv-TA.CA.INFRA.TEST_Node2-514938832> Exception in WSMQAsyncRcv thread
java.lang.NoClassDefFoundError: com/ibm/mq/server/MQSESSION
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java(Compiled Code))
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java(Compiled Code))
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java(Compiled Code))
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBind ingsManagedConnectionFactoryJ11.java:179)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindi ngsManagedConnectionFactoryJ11.java:215)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java(Compiled Code))
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManage r.java(Compiled Code))
at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory. java(Compiled Code))
at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java(Compiled Code))
at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.jav a(Compiled Code))
at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java(C ompiled Code))
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java(Compiled Code))
at com.sterlingcommerce.woodstock.services.wsmqSuite.WSMQSession.openConnection(WSM QSession.java(Inlined Compiled Code))
at com.sterlingcommerce.woodstock.services.wsmqSuite.WSMQSession.openSession(WSMQSe ssion.java(Compiled Code))
at com.sterlingcommerce.woodstock.services.wsmqSuite.WSMQAsyncRcv$1.run(WSMQAsyncRc v.java(Compiled Code))
[2009-05-26 10:45:19.689] ERROR 000000000000 GLOBAL_SCOPE <WSMQAsyncRcv-TA.CA.INFRA.TEST_Node2-514938832> Exception in WSMQAsyncRcv thread during backout
java.lang.Exception: Queue Manager is null.
at com.sterlingcommerce.woodstock.services.wsmqSuite.WSMQSession.backout(WSMQSessio n.java(Inlined Compiled Code))
at com.sterlingcommerce.woodstock.services.wsmqSuite.WSMQAsyncRcv$1.run(WSMQAsyncRc v.java(Compiled Code))
[2009-05-26 10:45:19.689] ALL 000000000000 GLOBAL_SCOPE <WSMQAsyncRcv-TA.CA.INFRA.TEST_Node2-514938832> ### Exception occurred - waiting to retry

Resolving the problem

Currently this issue does not have a resolution; it is being worked on by IBM Sterling Support. If you believe you are experiencing this issue and would like to be notified when a resolution is reached, please open a case through Customer Center and ask that it be associated with number 25540

No comments:

Post a Comment