我用MQ v7庫(No JMS)編寫了一個簡單的Java客戶機。我嘗試使用下面的模式放在一個隊列中的消息:長時間空閒後放置消息不起作用
Put a message
Wait for x minutes
Put a message again
它的工作原理,但如果空閒時間過長(5-7分鐘),我收到以下錯誤:
MQJE001: An MQException occurred: Completion Code 2, Reason 2195
MQJE007: IO error reading message data
Error occured during API call - reason code0
MQJE001: Completion Code 2, Reason 2009
MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE003: IO error transmitting message buffer
MQJE001: Completion Code 2, Reason 2009
MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE003: IO error transmitting message buffer
MQJE001: Completion Code 2, Reason 2009
MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE003: IO error transmitting message buffer
MQJE001: Completion Code 2, Reason 2009
MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE003: IO error transmitting message buffer
MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE003: IO error transmitting message buffer
MQJE001: Completion Code 2, Reason 2009
An MQSeries error occurred : Completion code 2 Reason code 2009
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2009
at com.ibm.mq.MQQueue.put(MQQueue.java:1511)
在讀取主題上的多個線程後,此錯誤通常會創建FDC轉儲,但我在系統和隊列管理器日誌中沒有任何內容。該頻道是一個SVRCONN頻道。
罐子被嵌入在Java客戶端,它是v5.3 jars o_O。使用v7 jar解決了這個問題。 Thx爲答案。 – Sydney
D'oh!這發生了很多。在某些情況下,我們看到用戶報告已安裝WMQ客戶端的PMR,但當我們查看FDC文件時,它會報告不同的版本。挖掘一下,通常情況下,應用程序捆綁了客戶端jar,並且沒有對已安裝的客戶端應用維護或修復的影響。新版本的WMQ服務器報告正在連接的WMQ客戶端的版本以幫助解決此問題。 –