【问题标题】:javax.jms.InvalidDestinationException: MQJMS2008: failed to open MQ queue ---- MQJE001: Completion Code 2, Reason 2085javax.jms.InvalidDestinationException: MQJMS2008: 未能打开 MQ 队列 ---- MQJE001: 完成代码 2,原因 2085
【发布时间】:2017-08-24 06:26:27
【问题描述】:

我正在将一个应用程序从 Websphere 迁移到 JBoss EAP 6.4。

Jboss 已配置为通过资源适配器与 MQ 队列通信。 这是Jboss的配置:

<resource-adapters>
<resource-adapter id="wmq.jmsra.rar">
    <archive>
        wmq.jmsra.rar
    </archive>
    <transaction-support>NoTransaction</transaction-support>
    <config-property name="logWriterEnabled">
        true
    </config-property>
    <config-property name="maxConnections">
        100
    </config-property>
    <config-property name="reconnectionRetryCount">
        1000
    </config-property>
    <config-property name="traceLevel">
        6
    </config-property>
    <config-property name="traceEnabled">
        true
    </config-property>
    <config-property name="reconnectionRetryInterval">
        30000
    </config-property>
    <config-property name="connectionConcurrency">
        1
    </config-property>
    <connection-definitions>
        <connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl" jndi-name="java:/puc.ejb.factory" enabled="true" use-java-context="false" pool-name="puc.ejb.factory">
            <config-property name="port">
                ${wmq.port:1414}
            </config-property>
            <config-property name="hostName">
                ${wmq.host:xxx.xxx.xxx.xxx}
            </config-property>
            <config-property name="channel">
                ${wmq.queue.channel:CLT2SRV}
            </config-property>
            <config-property name="transportType">
                CLIENT
            </config-property>
            <config-property name="queueManager">
                ${wmq.queue.manager:MQEDFIDP}
            </config-property>
            <timeout>
                <allocation-retry>3</allocation-retry>
                <allocation-retry-wait-millis>5000</allocation-retry-wait-millis>
            </timeout>
        </connection-definition>
    </connection-definitions>
    <admin-objects>
        <admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:/puc.ejb.queue" enabled="true" use-java-context="false" pool-name="puc.ejb.queue">
            <config-property name="baseQueueName">
                DATAGRAM.GG9.INVIOSMS
            </config-property>
            <config-property name="baseQueueManagerName">
                MQEDFIDP
            </config-property>
        </admin-object>
    </admin-objects>
</resource-adapter>

在队列上发布消息时出现此异常:

2017 年 3 月 30 日 - 10:50:50,177 错误 [stderr](EJB 默认 - 1)错误! javax.jms.InvalidDestinationException:MQJMS2008:不可能 la coda MQ 'DATAGRAM.GG9.INVIOSMS'。

2017 年 3 月 30 日 - 10:50:50,180 错误 [stderr](EJB 默认 - 1) javax.jms.InvalidDestinationException:MQJMS2008:不可能 la coda MQ 'DATAGRAM.GG9.INVIOSMS'。

2017 年 3 月 30 日 - 10:50:50,181 错误 [stderr](EJB 默认 - 1)在 com.ibm.msg.client.wmq.v6.jms.internal.MQQueueServices.getQueueOpenException(MQQueueServices.java:860)

2017 年 3 月 30 日 - 10:50:50,182 错误 [stderr](EJB 默认 - 1)在 com.ibm.msg.client.wmq.v6.jms.internal.MQQueueServices.getOutputQueue(MQQueueServices.java:689)

2017 年 3 月 30 日 - 10:50:50,183 错误 [stderr](EJB 默认值 - 1)在 com.ibm.msg.client.wmq.v6.jms.internal.JMSServicesMgr.getOutputQueue(JMSServicesMgr.java:215)

2017 年 3 月 30 日 - 10:50:50,185 错误 [stderr](EJB 默认 - 1)在 com.ibm.msg.client.wmq.v6.jms.internal.MQSession.createQProducer(MQSession.java:3082)

2017 年 3 月 30 日 - 10:50:50,186 错误 [stderr](EJB 默认值 - 1)在 com.ibm.msg.client.wmq.v6.jms.internal.MQSession.createProducer(MQSession.java:2820)

2017 年 3 月 30 日 - 10:50:50,187 错误 [stderr](EJB 默认 - 1)在 com.ibm.msg.client.wmq.v6.jms.internal.MQSession.createProducer(MQSession.java:2876)

2017 年 3 月 30 日 - 10:50:50,188 错误 [stderr](EJB 默认值 - 1)在 com.ibm.msg.client.jms.internal.JmsSessionImpl.createProducer(JmsSessionImpl.java:1232)

2017 年 3 月 30 日 - 10:50:50,189 错误 [stderr](EJB 默认 - 1)在 com.ibm.mq.jms.MQSession.createProducer(MQSession.java:687)

2017 年 3 月 30 日 - 10:50:50,191 错误 [stderr](EJB 默认 - 1)在 com.ibm.mq.connector.outbound.MessageProducerWrapper.(MessageProducerWrapper.java:104)

2017 年 3 月 30 日 - 10:50:50,192 错误 [stderr](EJB 默认值 - 1)在 com.ibm.mq.connector.outbound.SessionWrapper.createProducer(SessionWrapper.java:375)

2017 年 3 月 30 日 - 10:50:50,193 错误 [stderr](EJB 默认值 - 1)在 com.fideuram.puc.ejb.AccodaSMS.inviaSMS(AccodaSMS.java:81)

2017 年 3 月 30 日 - 10:50:50,194 错误 [stderr](EJB 默认 - 1)在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2017 年 3 月 30 日 - 10:50:50,195 错误 [stderr](EJB 默认值 - 1)在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

2017 年 3 月 30 日 - 10:50:50,197 错误 [stderr](EJB 默认 - 1)在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

2017 年 3 月 30 日 - 10:50:50,198 错误 [stderr](EJB 默认值 - 1)在 java.lang.reflect.Method.invoke(Method.java:597)

2017 年 3 月 30 日 - 10:50:50,199 错误 [stderr](EJB 默认值 - 1)在 org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

2017 年 3 月 30 日 - 10:50:50,200 错误 [stderr](EJB 默认值 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,201 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

2017 年 3 月 30 日 - 10:50:50,203 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

2017 年 3 月 30 日 - 10:50:50,204 错误 [stderr](EJB 默认值 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,205 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

2017 年 3 月 30 日 - 10:50:50,207 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

2017 年 3 月 30 日 - 10:50:50,208 错误 [stderr](EJB 默认值 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,209 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

2017 年 3 月 30 日 - 10:50:50,210 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,212 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

2017 年 3 月 30 日 - 10:50:50,213 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,214 错误 [stderr](EJB 默认值 - 1)在 org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

2017 年 3 月 30 日 - 10:50:50,215 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,216 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

2017 年 3 月 30 日 - 10:50:50,218 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

2017 年 3 月 30 日 - 10:50:50,219 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,220 错误 [stderr](EJB 默认值 - 1)在 org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

2017 年 3 月 30 日 - 10:50:50,221 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,223 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:279)

2017 年 3 月 30 日 - 10:50:50,224 错误 [stderr](EJB 默认值 - 1)在 org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:331)

2017 年 3 月 30 日 - 10:50:50,225 错误 [stderr](EJB 默认值 - 1)在 org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:243)

2017 年 3 月 30 日 - 10:50:50,226 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,227 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:80)

2017 年 3 月 30 日 - 10:50:50,229 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,230 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

2017 年 3 月 30 日 - 10:50:50,231 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,232 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)

2017 年 3 月 30 日 - 10:50:50,234 错误 [stderr](EJB 默认值 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,235 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:89)

2017 年 3 月 30 日 - 10:50:50,236 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,237 错误 [stderr](EJB 默认值 - 1)在 org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)

2017 年 3 月 30 日 - 10:50:50,239 错误 [stderr](EJB 默认值 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,240 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

2017 年 3 月 30 日 - 10:50:50,241 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,242 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)

2017 年 3 月 30 日 - 10:50:50,243 错误 [stderr](EJB 默认值 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,245 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

2017 年 3 月 30 日 - 10:50:50,246 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,247 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55)

2017 年 3 月 30 日 - 10:50:50,248 错误 [stderr](EJB 默认值 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,250 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)

2017 年 3 月 30 日 - 10:50:50,251 错误 [stderr](EJB 默认 - 1)在 org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

2017 年 3 月 30 日 - 10:50:50,252 错误 [stderr](EJB 默认值 - 1)在 org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

2017 年 3 月 30 日 - 10:50:50,253 错误 [stderr](EJB 默认值 - 1)在 org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:189)

2017 年 3 月 30 日 - 10:50:50,254 错误 [stderr](EJB 默认值 - 1)在 org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.invokeMethod(MethodInvocationMessageHandler.java:319)

2017 年 3 月 30 日 - 10:50:50,256 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.access$100(MethodInvocationMessageHandler.java:68)

2017 年 3 月 30 日 - 10:50:50,257 错误 [stderr](EJB 默认 - 1)在 org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler$1.run(MethodInvocationMessageHandler.java:201)

2017 年 3 月 30 日 - 10:50:50,258 错误 [stderr](EJB 默认值 - 1)在 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)

2017 年 3 月 30 日 - 10:50:50,260 错误 [stderr](EJB 默认值 - 1)在 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

2017 年 3 月 30 日 - 10:50:50,261 错误 [stderr](EJB 默认 - 1)在 java.util.concurrent.FutureTask.run(FutureTask.java:138)

2017 年 3 月 30 日 - 10:50:50,262 错误 [stderr](EJB 默认 - 1)在 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

2017 年 3 月 30 日 - 10:50:50,263 错误 [stderr](EJB 默认值 - 1)在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

2017 年 3 月 30 日 - 10:50:50,264 错误 [stderr](EJB 默认 - 1)在 java.lang.Thread.run(Thread.java:662)

2017 年 3 月 30 日 - 10:50:50,266 错误 [stderr](EJB 默认 - 1)在 org.jboss.threads.JBossThread.run(JBossThread.java:122)

2017 年 3 月 30 日 - 10:50:50,267 错误 [stderr](EJB 默认 - 1) 作者:com.ibm.mq.MQException:MQJE001:Codice di completamento '2', ragione '2085'。

2017 年 3 月 30 日 - 10:50:50,268 错误 [stderr](EJB 默认值 - 1)在 com.ibm.msg.client.wmq.v6.base.internal.MQQueueManager.accessQueue(MQQueueManager.java:751)

2017 年 3 月 30 日 - 10:50:50,269 错误 [stderr](EJB 默认 - 1)在 com.ibm.msg.client.wmq.v6.jms.internal.MQQueueServices.getOutputQueue(MQQueueServices.java:682)

2017 年 3 月 30 日 - 10:50:50,271 错误 [stderr](EJB 默认值 - 1)... 68 更多

在另一个讨论中,在错误的队列配置中检测到错误,但没有指定错误是什么(啊!)。

这是discussion

【问题讨论】:

  • 请您从日志中删除那个不相关的 BS 吗?

标签: jboss websphere ibm-mq


【解决方案1】:

com.ibm.mq.MQException: MQJE001: Codice di completamento '2', ragione '2085'。

为什么不直接在 IBM MQ 知识中心查找原因代码。如果您进行了简单的搜索(即 Google),this page 将位于顶部

【讨论】:

  • 谢谢罗杰。显然我已经研究过这个错误,但在我的情况下,与你不同的是,没有提供你建议的这个页面。这个页面帮助了我。我通过省略字段 ObjectQmgrName 来解决。再次感谢您。
【解决方案2】:

错误说明找不到目标名称DATAGRAM.GG9.INVIOSMS。确保DATAGRAM.GG9.INVIOSMS 存在于MQEDFIDP 队列管理器上。您可能还需要检查CLT2SRV 通道对于队列管理器是否正确。

【讨论】:

    猜你喜欢
    • 2011-08-05
    • 2014-03-07
    • 1970-01-01
    • 1970-01-01
    • 2011-06-27
    • 1970-01-01
    • 1970-01-01
    • 2012-06-29
    相关资源
    最近更新 更多