我之前使用的是jboss 6.4,现在我要迁移到jboss 7.1和MQ 8,我们已经使用jboss-ejb3.xml来配置MDB和MQ,但是在迁移到jboss 7.1之后,我遇到以下错误,请问有人可以帮忙我来解决这个问题
2019-02-11 12:13:03,739 INFO [org.apache.activemq.artemis.ra] AMQ151004: Instantiating null "TRANS.CMUPT.REQ.MCOF" directly since UseJNDI=false.
2019-02-11 12:13:05,614 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] wmq.jmsra.rar: MQJCA4004:Message delivery to an MDB 'null' failed with exception: 'Could not initialize class com.ge.trans.mcs.msgejb.ejb.imr.mdb.InBoundMessageMDB$$$endpoint4'.
2019-02-11 12:13:05,762 INFO [org.apache.activemq.artemis.ra] AMQ151004: Instantiating null "TRANS.CMUPT.REQ.MCOF" directly since UseJNDI=false.
2019-02-11 12:13:07,785 INFO [org.apache.activemq.artemis.ra] AMQ151004: Instantiating null "TRANS.CMUPT.REQ.MCOF" directly since UseJNDI=false.
2019-02-11 12:13:09,815 INFO [org.apache.activemq.artemis.ra] AMQ151004: Instantiating null "TRANS.CMUPT.REQ.MCOF" directly since UseJNDI=false.
2019-02-11 12:13:11,836 INFO [org.apache.activemq.artemis.ra] AMQ151004: Instantiating null "TRANS.CMUPT.REQ.MCOF" directly since UseJNDI=false.
2019-02-11 12:13:13,854 INFO [org.apache.activemq.artemis.ra] AMQ151004: Instantiating null "TRANS.CMUPT.REQ.MCOF" directly since UseJNDI=false.
2019-02-11 12:13:15,605 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] wmq.jmsra.rar: MQJCA4004:Message delivery to an MDB 'null' failed with exception: 'Could n
新日志
看到不断出现的问题
2019-02-12 12:37:17,736 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] wmq.jmsra.rar: : com.ibm.msg.client.commonservices.workqueue.WorkQueueItem.run(WorkQueueItem.java:338)
2019-02-12 12:37:17,736 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] wmq.jmsra.rar: : com.ibm.msg.client.commonservices.workqueue.WorkQueueManager.runWorkQueueItem(WorkQueueManager.java:312)
2019-02-12 12:37:17,736 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] wmq.jmsra.rar: : com.ibm.msg.client.commonservices.j2se.workqueue.WorkQueueManagerImplementation$ThreadPoolWorker.run(WorkQueueManagerImplementation.java:1227)
2019-02-12 12:37:17,736 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] wmq.jmsra.rar: Caused by [1] --> Message : com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2053' ('MQRC_Q_FULL').
2019-02-12 12:37:17,736 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] wmq.jmsra.rar: Class : class com.ibm.mq.MQException
2019-02-12 12:37:17,736 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] wmq.jmsra.rar: Stack : com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:203)
2019-02-12 12:37:17,736 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] wmq.jmsra.rar: : com.ibm.msg.client.wmq.internal.WMQPoison.checkJmqiCallSuccess(WMQPoison.java:1423)
2019-02-12 12:37:17,736 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] wmq.jmsra.rar: : com.ibm.msg.client.wmq.internal.WMQPoison.put(WMQPoison.java:984)
2019-02-12 12:37:17,736 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] wmq.jmsra.rar: : com.ibm.msg.client.wmq.internal.WMQPoison.deadletter(WMQPoison.java:894)
这是我现在看到的唯一错误,请帮助我解决此问题。
01:25:55,618 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] (default-threads - 2) wmq.jmsra.rar: MQJCA4004:Message delivery to an MDB 'null' failed with exception: 'Could not initialize class com.ge.trans.mcs.msgejb.ejb.alerter.mdb.AlerterMDB$$$endpoint8'.
答案 0 :(得分:0)
reason '2053' ('MQRC_Q_FULL')
仅表示听起来像是,您要放入的目标队列已满,这意味着它已达到MAXDEPTH
条消息的数量。
Could not initialize class com.ge.trans.mcs.msgejb.ejb.alerter.mdb.AlerterMDB$$$endpoint8
在蒂姆·麦考密克(Tim McCormick)的评论中,他指出:
您的MDB看起来有点类路径错误:com.ge.trans.mcs.msgejb.ejb.imr.mdb.InBoundMessageMDB该错误表明它无法创建'endpoint4'子类。
确保endpoint4子类在您的类路径中。