在将消息发布到目标队列时,WSO2 EI-6.1.1与IBM MQ8集成问题

时间:2017-08-15 14:16:12

标签: wso2 ibm-mq

TID: [-1] [] [2017-08-09 12:07:00,546]  INFO {org.apache.axis2.engine.AxisEngine} -  [MessageContext: logID=4cc6574b7acd53b2510b0e78661a4db2bff0d346d5081397] null {org.apache.axis2.engine.AxisEngine}
TID: [-1] [] [2017-08-09 12:07:00,546] ERROR {org.apache.synapse.core.axis2.AsyncCallback} -   {org.apache.synapse.core.axis2.AsyncCallback}
java.lang.NullPointerException
        at org.apache.axis2.transport.jms.JMSSender.sendOverJMS(JMSSender.java:224)
        at org.apache.axis2.transport.jms.JMSSender.sendMessage(JMSSender.java:200)
        at org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
        at org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocationWorker.run(AxisEngine.java:626)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
TID: [-1] [] [2017-08-09 12:07:00,546]  WARN {org.apache.synapse.core.axis2.AsyncCallback} -  Executing fault handler due to exception encountered {org.apache.synapse.core.axis2.AsyncCallback}

点击此链接“http://nandikajayawardana.blogspot.in/2015/03/configuring-ibm-mq-with-wso2-esb.html

注意:能够从队列接收消息但无法发送到队列,从而产生空指针异常

2 个答案:

答案 0 :(得分:1)

在发送调解员之前添加了以下属性它开始了wortking

executeUpdate()

答案 1 :(得分:1)

问题在于传输标头。在端点之前添加以下属性就足够了:

<property action="remove" name="TRANSPORT_HEADERS" scope="axis2"/>