一颗开花的树

谈笑但看风云起,龙腾尚待惊蛰春.

 

websphere jms消息错误

[07-12-13 14:59:20:938 CST] 7fae2eff FreePool      E J2CA0046E: 为资源 JMSXAConnectionFactory 创建 ManagedConnection 期间,方法 createManagedConnctionWithMCWrapper 捕捉到异常,并抛出 ResourceAllocationException。原始异常:javax.resource.spi.ResourceAdapterInternalException: createQueueConnection failed
 at com.ibm.ejs.jms.JMSCMUtils.mapToResourceException(JMSCMUtils.java:125)
 at com.ibm.ejs.jms.JMSManagedQueueConnection.createConnection(JMSManagedQueueConnection.java:119)
 at com.ibm.ejs.jms.JMSManagedConnection.<init>(JMSManagedConnection.java:160)
 at com.ibm.ejs.jms.JMSManagedQueueConnection.<init>(JMSManagedQueueConnection.java:64)
 at com.ibm.ejs.jms.WSJMSManagedQueueConnectionFactory.createManagedConnection(WSJMSManagedQueueConnectionFactory.java:84)
 at com.ibm.ejs.jms.JMSManagedConnectionFactory.createManagedConnection(JMSManagedConnectionFactory.java:477)
 at com.ibm.ejs.j2c.poolmanager.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:1280)
 at com.ibm.ejs.j2c.poolmanager.FreePool.createOrWaitForConnection(FreePool.java:1064)
 at com.ibm.ejs.j2c.poolmanager.PoolManager.reserve(PoolManager.java:1571)
 at com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:622)
 at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:424)
 at com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle.createQueueConnection(JMSQueueConnectionFactoryHandle.java:80)
 at com.ibm.ejs.jms.listener.MDBListenerImpl.createResources(MDBListenerImpl.java:304)
 at com.ibm.ejs.jms.listener.MDBListenerImpl.internalStart(MDBListenerImpl.java:553)
 at com.ibm.ejs.jms.listener.MDBListenerImpl.start(MDBListenerImpl.java:485)
 at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.start(MDBListenerManagerImpl.java:443)
 at com.ibm.ejs.jms.listener.MsgListenerPort.add(MsgListenerPort.java:152)
 at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.startApplicationMDBs(MDBListenerManagerImpl.java:666)
 at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.stateChanged(MDBListenerManagerImpl.java:637)
 at com.ibm.ws.runtime.component.MessageListenerImpl.stateChanged(MessageListenerImpl.java:139)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:388)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java:770)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:156)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:152)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:586)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:271)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:249)
 at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
 at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
 at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:125)
 at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
 at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
 at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
 at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
 at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
 at java.lang.reflect.Method.invoke(Method.java:386)
 at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
Next Linked Exception:
javax.jms.JMSException: MQJMS2005: 创建 'amerisiazy:WAS_amerisiazy_server1' 的 MQQueueManager 失败
 at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:556)
 at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1736)
 at com.ibm.mq.jms.MQConnection.createQMXA(MQConnection.java:1077)
 at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:123)
 at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:80)
 at com.ibm.mq.jms.MQXAQueueConnection.<init>(MQXAQueueConnection.java:46)
 at com.ibm.mq.jms.MQXAQueueConnectionFactory.createXAQueueConnection(MQXAQueueConnectionFactory.java:53)
 at com.ibm.ejs.jms.JMSManagedQueueConnection.createConnection(JMSManagedQueueConnection.java:98)
 at com.ibm.ejs.jms.JMSManagedConnection.<init>(JMSManagedConnection.java:160)
 at com.ibm.ejs.jms.JMSManagedQueueConnection.<init>(JMSManagedQueueConnection.java:64)
 at com.ibm.ejs.jms.WSJMSManagedQueueConnectionFactory.createManagedConnection(WSJMSManagedQueueConnectionFactory.java:84)
 at com.ibm.ejs.jms.JMSManagedConnectionFactory.createManagedConnection(JMSManagedConnectionFactory.java:477)
 at com.ibm.ejs.j2c.poolmanager.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:1280)
 at com.ibm.ejs.j2c.poolmanager.FreePool.createOrWaitForConnection(FreePool.java:1064)
 at com.ibm.ejs.j2c.poolmanager.PoolManager.reserve(PoolManager.java:1571)
 at com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:622)
 at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:424)
 at com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle.createQueueConnection(JMSQueueConnectionFactoryHandle.java:80)
 at com.ibm.ejs.jms.listener.MDBListenerImpl.createResources(MDBListenerImpl.java:304)
 at com.ibm.ejs.jms.listener.MDBListenerImpl.internalStart(MDBListenerImpl.java:553)
 at com.ibm.ejs.jms.listener.MDBListenerImpl.start(MDBListenerImpl.java:485)
 at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.start(MDBListenerManagerImpl.java:443)
 at com.ibm.ejs.jms.listener.MsgListenerPort.add(MsgListenerPort.java:152)
 at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.startApplicationMDBs(MDBListenerManagerImpl.java:666)
 at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.stateChanged(MDBListenerManagerImpl.java:637)
 at com.ibm.ws.runtime.component.MessageListenerImpl.stateChanged(MessageListenerImpl.java:139)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:388)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java:770)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:156)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:152)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:586)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:271)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:249)
 at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
 at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
 at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:125)
 at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
 at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
 at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
 at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
 at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
 at java.lang.reflect.Method.invoke(Method.java:386)
 at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
Next Linked Exception:
com.ibm.mq.MQException: MQJE001:发生 MQException:完成码 2,原因码 2009
MQJE003:发送消息缓冲区时发生输入输出错误
 at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:239)
 at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:276)
 at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:296)
 at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
 at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:171)
 at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:737)
 at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:671)
 at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:452)
 at com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:52)
 at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1659)
 at com.ibm.mq.jms.MQConnection.createQMXA(MQConnection.java:1077)
 at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:123)
 at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:80)
 at com.ibm.mq.jms.MQXAQueueConnection.<init>(MQXAQueueConnection.java:46)
 at com.ibm.mq.jms.MQXAQueueConnectionFactory.createXAQueueConnection(MQXAQueueConnectionFactory.java:53)
 at com.ibm.ejs.jms.JMSManagedQueueConnection.createConnection(JMSManagedQueueConnection.java:98)
 at com.ibm.ejs.jms.JMSManagedConnection.<init>(JMSManagedConnection.java:160)
 at com.ibm.ejs.jms.JMSManagedQueueConnection.<init>(JMSManagedQueueConnection.java:64)
 at com.ibm.ejs.jms.WSJMSManagedQueueConnectionFactory.createManagedConnection(WSJMSManagedQueueConnectionFactory.java:84)
 at com.ibm.ejs.jms.JMSManagedConnectionFactory.createManagedConnection(JMSManagedConnectionFactory.java:477)
 at com.ibm.ejs.j2c.poolmanager.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:1280)
 at com.ibm.ejs.j2c.poolmanager.FreePool.createOrWaitForConnection(FreePool.java:1064)
 at com.ibm.ejs.j2c.poolmanager.PoolManager.reserve(PoolManager.java:1571)
 at com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:622)
 at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:424)
 at com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle.createQueueConnection(JMSQueueConnectionFactoryHandle.java:80)
 at com.ibm.ejs.jms.listener.MDBListenerImpl.createResources(MDBListenerImpl.java:304)
 at com.ibm.ejs.jms.listener.MDBListenerImpl.internalStart(MDBListenerImpl.java:553)
 at com.ibm.ejs.jms.listener.MDBListenerImpl.start(MDBListenerImpl.java:485)
 at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.start(MDBListenerManagerImpl.java:443)
 at com.ibm.ejs.jms.listener.MsgListenerPort.add(MsgListenerPort.java:152)
 at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.startApplicationMDBs(MDBListenerManagerImpl.java:666)
 at com.ibm.ejs.jms.listener.MDBListenerManagerImpl.stateChanged(MDBListenerManagerImpl.java:637)
 at com.ibm.ws.runtime.component.MessageListenerImpl.stateChanged(MessageListenerImpl.java:139)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:388)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java:770)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:156)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:152)
 at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:586)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:271)
 at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:249)
 at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
 at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
 at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:125)
 at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
 at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
 at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
 at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
 at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
 at java.lang.reflect.Method.invoke(Method.java:386)
 at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
Caused by: com.ibm.mqservices.MQInternalException: MQJE001:发生 MQException:完成码 2,原因码 2009
MQJE003:发送消息缓冲区时发生输入输出错误
 at com.ibm.mq.MQInternalCommunications.receiveBytes(MQInternalCommunications.java:1020)
 at com.ibm.mq.MQInternalCommunications.receive(MQInternalCommunications.java:1058)
 at com.ibm.mq.MQInternalCommunications.establishChannel(MQInternalCommunications.java:1506)
 at com.ibm.mq.MQInternalCommunications.<init>(MQInternalCommunications.java:522)
 at com.ibm.mq.MQSESSIONClient.MQCONN(MQSESSIONClient.java:1314)
 at com.ibm.mq.MQSESSIONClient.MQCONNX(MQSESSIONClient.java:1386)
 at com.ibm.mq.MQSESSIONClient.spiConnect(MQSESSIONClient.java:4216)
 at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:212)
 ... 53 more




错误描述:通过webshpere可以访问数据库,不能使用jms发送消息. 
原因1:装了NOD32杀毒软件,在访问时被禁止.  很不错的一个杀毒软件,只可惜太过严厉,退出nod32控制面板都没用.只能删除.  
原因2:windows2003的DEP禁止了jms消息的发送.  "我的电脑" ->"属性"->"高级"->"性能"->"数据执行保护"  将选项置为:只针对windows关键服务使用DEP保护.  或者禁用DEP, 禁用方式:将系统根目录下boot.ini中的最后一行的/fastdetect /noexecute=optin改为 /fastdetect /execute

posted on 2007-12-13 20:06 泽来-王者之剑 阅读(1594) 评论(0)  编辑  收藏 所属分类: j2se


只有注册用户登录后才能发表评论。


网站导航:
 

导航

统计

常用链接

留言簿(4)

随笔分类

随笔档案

友情链接

搜索

最新评论