CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
英特尔®游戏设计大赛100美元现金周周送 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  WebSphere >  开发工具/WSAD

这个异常怎么处理:JMS Applications with WebSphere Studio V5 -- Part 1: Developing a JMS Point-to-Point Application

楼主alsor(不认识自己)2003-09-01 16:58:59 在 WebSphere / 开发工具/WSAD 提问

请教高手!启动客户端应用程序时碰到如下异常,怎么处理???  
  原文见: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有什么用吗?

关键词

  • ibm
  • websphere
  • ws
  • embedded
  • mq
  • e621
  • v5
  • launchclient
  • mqconnection
  • mqqueueconnection

得分解答快速导航

  • 帖主:alsor

相关链接

  • CSDN Blog
  • 技术文档
  • 代码下载
  • 第二书店
  • 读书频道

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo