MQSeries CSIException: JMSCS0002 but classpath looks ok for commonservices

社会主义新天地 提交于 2019-12-12 22:17:38

问题


In trying to connect from an MQSeries 7.5 client to a 7.5 local server I'm getting a CSIException: JMSCS0002 which when I look up the error in the IBM codes says:

JMSCS0002 The call could not be completed because CommonServices has not been initialized.

CommonServices is an internal component and needs to be initialized at startup but has failed.

Check that the installation and classpath setup is correct.

But both my compile and run classpaths include com.ibm.mq.commonservices.jar, com.ibm.msg.client.commonservices.jar, and com.ibm.msg.client.commonservices.j2se.jar

I'm was using Oracle JDK 1.6. I tried using the WS MQ java but it made no difference.

Any help appreciated. Thanks.

 Caused by: com.ibm.msg.client.commonservices.CSIException: JMSCS0002
at com.ibm.msg.client.commonservices.workqueue.PIWorkQueueManager.enqueueItem(PIWorkQueueManager.java:67)
at com.ibm.msg.client.commonservices.workqueue.WorkQueueManager.enqueue(WorkQueueManager.java:225)
at com.ibm.msg.client.commonservices.workqueue.WorkQueueManager.enqueue(WorkQueueManager.java:194)
at com.ibm.msg.client.wmq.common.internal.WMQThreadPool.enqueue(WMQThreadPool.java:91)

回答1:


I had been using jar files from an uninstalled MQSeries 7.5 Client because I wanted to make sure that the functionality I was using would work just with the jars provided by the free client license. According to IBM documentation taking uninstalled jars is problematic.

When I switched to the jars from the installed server trial then things works ok.



来源:https://stackoverflow.com/questions/18639212/mqseries-csiexception-jmscs0002-but-classpath-looks-ok-for-commonservices

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!