J2CA0138E:ActivationSpec jndi/GG01(com.ibm.mq.connector.inbound.ActivationSpecImpl)的消息端点激活失败

问题描述 投票:0回答:1

jndi/GG01(com.ibm.mq.connector.inbound.ActivationSpecImpl) 和 MDB 应用程序 abc#abcd.jar#MdbListener 由于以下异常:com.ibm.mq.connector.DetailedResourceAdapterInternalException:MQJCA1011:无法分配 JMS 连接, ,错误代码:MQJCA1011 内部错误导致尝试分配连接失败链接异常为 JcaExceptionBuilder.buildException

我正在使用 ejb+maven 项目在消息驱动 bean 上开发激活规范,并且我部署在 websphere 应用程序服务器中的 websphere 服务器中,而不是在 liberty profile 服务器中。我正在使用 ejb-jar.xml 和 ibm-ejb-jar-bnd.xmi 进行绑定。

绑定时我收到此异常。任何人都可以提供与上述场景匹配的任何示例项目或上述异常的任何解决方案或实现激活规范的任何更好的方法

Websphere 版本-9.0.5

我在下面添加的异常原因。

Caused by: com.ibm.mq.connector.DetailedResourceAdapter InternalException: MQJCA1011: Failed to allocate a JMS connection., error code: MQJCA1011 An internal error cause at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:174) at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:135)
at com.ibm.mq.connector.inbound.ConnectionHandler.allocateConnection(ConnectionHandler.java:394)
at com.ibm.mq.connector.inbound.MessageEndpointDeployment.acquireConnection(MessageEndpoint Deployment.java:295) at com.ibm.mq.connector.inbound.MessageEndpointDeployment.<init>(MessageEndpoint Deployment.java:235) com.ibm.mq.connector.ResourceAdapterImpl.endpointActivation(ResourceAdapterImpl.java:558)
at at com.ibm.ejs.j2c.ActivationSpecWrapperImpl.activate Under RAClassLoaderContext(ActivationSpecWrapperImpl.java:661) at com.ibm.ejs.j2c.ActivationSpecWrapperImpl.activateEndpoint(ActivationSpecWrapperImpl.java: 374)
at com.ibm.ejs.j2c.RAWrapperImpl.activateEndpoint (RAWrapperImpl.java:1122)
at com.ibm.ejs.j2c.RALifeCycleManagerImpl.activateEndpoint
(RALifeCycleManagerImpl.java:1825)
at com.ibm.ejs.container.MessageEndpointFactoryImpl.activateEndpoint (Messag EndpointFactoryImpl.java:152) at com.ibm.ws.runtime.component.EJBContainerImpl.startMDBs(EJBContainerImpl.java:4394)
53 more
Caused by: com.ibm.msg.client.jms.DetailedJMSSecurityException: JMSWMQ2013: The security authentication was not valid that was supplied for queue manager 'MOWE with connection mode client and hostname 'xxxxxxx(1234) Please check if the supplied username and password are correct on the queue manager to which you are connecting. For further information, review the queue manager error
at com.ibm.msg.client.wmq.common.internal. Reason.reasonToException(Reason.java:531)
at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:215) at com.ibm.msg.client.wmq.internal.WMQConnection.<init>(WMQConnection.java:424)
at com.ibm.msg.client.wmq.internal.WMQXAConnection.<init>(WMQXAConnection.java:67)
at com.ibm.msg.client.wmq.factories.WMQXAConnectionFactory.createV/ProviderConnection(WMQXAConnectionFactory.java:187) at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createProviderConnection(WMQConnectionFactory.java:7810)
at com.ibm.msg.client.wmq.factories.WMQXAConnectionFactory.createProviderXAConnection(WMQXAConnectionFactory.java:98) at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createXAConnectionInternal(JmsConnectionFactoryImpl.java:390)
at com.ibm.mq.jms.MQXAConnectionFactory.createXAConnection(MQXAConnectionFactory.java:104) at com.ibm.mq.connector.inbound.ConnectionHandler.allocateConnection(ConnectionHandler.java:268)
.62 more
Caused by: com.ibm.ma.MOException: JMSCM00001: IBM MQ call failed with compcode '2' ('MQCC FAILED") reason '2035' ('MQRC NOT AUTHORIZED')
java websphere ejb ibm-mq message-driven-bean
1个回答
0
投票

实际上这个问题为我解决了,在创建激活规范时在 websphere 应用程序服务器中添加别名后

© www.soinside.com 2019 - 2024. All rights reserved.