Error "Could not initialize class com.ibm.mq.headers.internal.HeaderType"  when using the JMS Connector with WebSphere MQ

Document created by sheng_liao462475 Employee on Feb 24, 2017Last modified by mike_aronson on Feb 28, 2017
Version 2Show Document
  • View in full screen mode

Error

Could not initialize class com.ibm.mq.headers.internal.HeaderType

 

Error stack trace

java.lang.NoClassDefFoundError: Could not initialize class com.ibm.mq.headers.internal.HeaderType
at com.ibm.mq.headers.pcf.PCFMessage.<init>(PCFMessage.java:77)
at com.ibm.mq.headers.pcf.PCFMessage.<init>(PCFMessage.java:132)
at com.ibm.mq.ese.service.PolicyServiceImpl.policyFromPcf(PolicyServiceImpl.java:555)
at com.ibm.mq.ese.intercept.JmqiOpenInterceptorImpl.storeSecurityInfoInSmqiObject(JmqiOpenInterceptorImpl.java:357)
at com.ibm.mq.ese.intercept.JmqiOpenInterceptorImpl.afterSpiOpen(JmqiOpenInterceptorImpl.java:209)
at com.ibm.mq.ese.jmqi.InterceptedJmqiImpl.spiOpen(InterceptedJmqiImpl.java:411)
at com.ibm.mq.ese.jmqi.ESEJMQI.spiOpen(ESEJMQI.java:513)
at com.ibm.msg.client.wmq.internal.WMQConsumerShadow.initialize(WMQConsumerShadow.java:961)
at com.ibm.msg.client.wmq.internal.WMQSyncConsumerShadow.initialize(WMQSyncConsumerShadow.java:139)
at com.ibm.msg.client.wmq.internal.WMQMessageConsumer.<init>(WMQMessageConsumer.java:257)
at com.ibm.msg.client.wmq.internal.WMQSession.createConsumer(WMQSession.java:788)
at com.ibm.msg.client.jms.internal.JmsSessionImpl.createConsumer(JmsSessionImpl.java:818)
at com.ibm.msg.client.jms.internal.JmsSessionImpl.createConsumer(JmsSessionImpl.java:868)
at com.ibm.mq.jms.MQSession.createConsumer(MQSession.java:464)
at com.boomi.connector.jms.adapter.JMSAdapter.createConsumer(JMSAdapter.java:412)
at com.boomi.connector.jms.JMSUtil.createConsumer(JMSUtil.java:325)
at com.boomi.connector.jms.JMSUtil.createConsumer(JMSUtil.java:304)
at com.boomi.connector.jms.JMSGet.getMessages(JMSGet.java:98)
at com.boomi.connector.jms.JMSGet.get(JMSGet.java:50)
at com.boomi.connector.jms.JMSGet.get(JMSGet.java:83)
at com.boomi.connector.custom.CustomGetConnectorAction.invoke(CustomGetConnectorAction.java:47)
at com.boomi.connector.base.BaseConnectorAction.invokeBase(BaseConnectorAction.java:346)
at com.boomi.connector.base.BaseConnectorAction.invokeWithReadStore(BaseConnectorAction.java:285)
at com.boomi.connector.base.BaseConnectorAction.invoke(BaseConnectorAction.java:257)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)

 

Solution

Add the following JAR files to the ../<atom_installation_directory>/userlib/jms directory and restart the atom afterwards.

 

com.ibm.mq.headers.jar
com.ibm.mq.jmqi.jar
com.ibm.mqjms.jar
com.ibm.mq.jar
com.ibm.mq.pcf.jar
jms.jar
connector.jar
dhbcore.jar
fscontext.jar
jndi.jar
providerutil.jar

 

All of these files can be found in <websphere-install-dir>/java/lib.

Attachments

    Outcomes