这个异常怎么处理:JMS Applications with WebSphere Studio V5 -- Part 1: Developing a JMS Point-to-Point Application
请教高手!启动客户端应用程序时碰到如下异常,怎么处理???
原文见:http://www7b.software.ibm.com/wsdd/library/techarticles/0307_wilkinson/wilkinson1.html
......
WSCL0014I: 正在调用应用程序客户机 class PointToPoint
com.ibm.mq.MQException: MQJE001:完成码 2,原因 2012
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:172)
at com.ibm.mq.MQJDManagedConnectionFactoryJ11._createManagedConnection(MQJDManagedConnectionFactoryJ11.java:128)
at com.ibm.mq.MQJDManagedConnectionFactoryJ11.createManagedConnection(MQJDManagedConnectionFactoryJ11.java:146)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:150)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:682)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:620)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:437)
at com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:52)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1383)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:960)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:159)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:77)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:142)
at PointToPoint.<init>(PointToPoint.java:33)
at PointToPoint.main(PointToPoint.java:98)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
javax.jms.JMSException: MQJMS2005: 未能为 'WAS_localhost_server1' 创建 MQQueueManager
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:546)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1450)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:960)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:159)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:77)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:142)
at PointToPoint.<init>(PointToPoint.java:33)
at PointToPoint.main(PointToPoint.java:98)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
问题点数:0、回复次数:3Top
1 楼klbt(快乐白兔)回复于 2003-09-27 20:29:00 得分 0
关注,帮你顶。Top
2 楼stlizhi(海水与火焰)回复于 2003-10-20 18:27:22 得分 0
我也碰到相同的问题,关注!Top
3 楼stlizhi(海水与火焰)回复于 2003-10-23 14:07:51 得分 0
解决了,按照下面的方法做。如果不行,最好重装系统,因为WSAD很难删干净。
Install Messaging included in the WAS base server using the following instructions:
Go to the messaging\server\Setup
Run wmsetup.exe /install <destination drive> <source dir> <log file> <language ID>
So assume you have put the install image on c:\ and want to install the English version on your c: drive, you will run
wmsetup.exe /install c: c:\messaging\server c:\install.log 1033
This will create a log file in c:\ during the installation.
Make sure you have the right queue manager created - open registry and check for the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\IBM\WebSphereEmbeddedMessagingPublishAndSubscribe\1\WAS_localhost_server1
If the key is not there, create connection manager using:
createmq <wshome> <cellname> <nodename> <servername> <mq dir> <broker dir>
For example:
createmq E:\wsadie.12\runtimes\base_v5 localhost localhost server1 "f:\Program Files\ibm\WebSphere MQ" "f:\Program Files\ibm\WebSphere MQ\WEMPS"
To delete queue manager (to recycle and delete queues) use:
deletemq <cellname> <nodename> <servername>
batch files are in runtimes\base_v5 \bin directory
Modify implfactory.properties file in <install dir>\runtimes\base_v5\properties directoy to point to embeded connection factory (uncomment the entry for embeded and comment our lite) e.g.
#Embedded JMS Provider
com.ibm.ws.messaging.JMSProvider=com.ibm.ws.messaging.JMSEmbeddedProviderImpl
#MQJD JMS Provider
#com.ibm.ws.messaging.JMSProvider=com.ibm.ws.messaging.JMSMQJDProviderImpl
Before starting wsappdev from command line, set the environment path to point to your WAS and MQ installations, something like:
SET PATH=E:\wsadie.12\runtimes\base_v5\bin;%PATH%
SET PATH=F:\Program Files\IBM\WebSphere MQ\bin;%PATH%
SET PATH=F:\Program Files\IBM\WebSphere MQ\java\bin;%PATH%
SET PATH=F:\Program Files\IBM\WebSphere MQ\WEMPS\bin;%PATH%
Start IDE
Create server instance
Edit variables.xml at the node level and modify mq variables to point to your mq install directory, e.g.
<entries xmi:id="VariableSubstitutionEntry_10" symbolicName="MQ_INSTALL_ROOT" value="F:\Program Files\IBM\WebSphere MQ" description="The filesystem path to the installation directory for MQSeries."/>
<entries xmi:id="VariableSubstitutionEntry_11" symbolicName="WAS_PUBSUB_ROOT" value="F:\Program Files\IBM\WebSphere MQ\WEMPS" description="The filesystem path to the installation directory for WebSphere Embedded Publish and Subscribe."/>
Start the server, you should see in the log entries like below:
[9/26/02 15:36:25:563 EDT] 5066e621 JMSEmbeddedPr A MSGS0050I: Starting the Queue Manager
[9/26/02 15:36:27:326 EDT] 5066e621 JMSEmbeddedPr A MSGS0051I: Queue Manager open for business
[9/26/02 15:36:27:346 EDT] 5066e621 JMSEmbeddedPr A MSGS0052I: Starting the Broker
[9/26/02 15:36:34:065 EDT] 5066e621 JMSEmbeddedPr A MSGS0053I: Broker open for business
then it should contain baindings you specified:
[9/26/02 15:36:36:689 EDT] 5066e621 ResourceMgrIm I WSVR0049I: Binding QueueCF as sample/bean/StockQuoteServiceQCF
[9/26/02 15:36:37:010 EDT] 5066e621 ResourceMgrIm I WSVR0049I: Binding Queue1 as sample/bean/StockQuoteServiceQueue
[9/26/02 15:36:37:080 EDT] 5066e621 ResourceMgrIm I WSVR0049I: Binding Queue2 as sample/bean/StockQuoteServiceQueue2Top
相关问题
- 觅WSAD(WebSphere Studio Appliction Developer)
- 类属 JMS 提供程序、WebSphere JMS 提供程序和WebSphere MQ JMS 提供程序有什么区别?
- webSphere
- 使用过Websphere Studio的人请进
- 怎么配置WebSphere MQ支持JMS的开发
- [新闻]IBM Websphere Studio Application Developer 5.0 GA版终于出来了!
- [新闻]IBM Websphere Studio Application Developer 5.0 GA版终于出来了!
- help...如何升级websphere studio application developer 5.10 到 5.12
- 装了 WebSphere Studio Application Developer以后,郁闷开始了。。。。。。。。。。。
- IBM培训- Websphere Studio V5.0, Associate/Solution Developer有什么用吗?



