2009-05-06 65 views
4

調用所有的MQ大師,MQJE018:協議錯誤 - 意外段類型的接收

我有我的辦公桌下一個盒子,我們使用複製我們的生產環境是:

的WebSphere 6.1 Fedora Linux系統 MQ 6.0

每當我們的應用程序的一個嘗試發送消息到MQ隊列,我們​​得到以下錯誤:MQJE018:協議錯誤 - 意外段類型的接收

關於這可能意味着什麼的建議將不勝感激,堆棧跟蹤如下。

Dump of callerThis = 
Object type = com.ibm.ejs.jms.listener.MDBListenerImpl 
[email protected] 

==> Performing default dump from com.ibm.ejs.jms.JMSDiagnosticModule = Wed May 06 13:09:58 BST 2009 
Dump of callerThis = 
Object type = com.ibm.ejs.jms.listener.MDBListenerImpl 
[email protected] 

Linked exception = com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2195 
MQJE018: Protocol error - unexpected segment type received 
     at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:238) 
     at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:318) 
     at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:338) 
     at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:84) 
     at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:168) 
     at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:774) 
     at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:690) 
     at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:646) 
     at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:153) 
     at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:544) 
     at com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:69) 
     at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2401) 
     at com.ibm.mq.jms.MQConnection.createQMXA(MQConnection.java:1783) 
     at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:110) 
     at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:67) 
     at com.ibm.mq.jms.MQXAQueueConnection.<init>(MQXAQueueConnection.java:57) 
     at com.ibm.mq.jms.MQXAQueueConnectionFactory.createXAQueueConnection(MQXAQueueConnectionFactory.java:80) 

編輯:我已經看過了IBM文檔這給一點幫助

2195 (X'0893') 
MQRC_UNEXPECTED_ERROR 
Explanation: 

The call was rejected because an unexpected error occurred. 
Completion Code: 

MQCC_FAILED 
Programmer Response: 

Check the application's parameter list to ensure, for example, that the correct number of parameters was passed, and that data pointers and storage keys are valid. If the problem cannot be resolved, contact your system programmer. 

    * On z/OS, check whether any information has been displayed on the console. If this error occurs on an MQCONN or MQCONNX call, check that the subsystem named is an active MQ subsystem. In particular, check that it is not a DB2(TM) subsystem. If the problem cannot be resolved, rerun the application with a CSQSNAP DD card (if you have not already got a dump) and send the resulting dump to IBM. 
    * On OS/2 and i5/OS, consult the FFST record to obtain more detail about the problem. 
    * On HP OpenVMS, Compaq NonStop Kernel, and UNIX systems, consult the FDC file to obtain more detail about the problem. 
+0

問題是否解決? – trunkc 2009-05-15 10:17:41

回答

2

OK的原因代碼,終於設法解決這個錯誤。這與MQ安裝它本身無關。我知道這是某種網絡問題,所以我將websphere中的主機名設置從主機名更改爲IP的IP,並且一切正常。

請注意,我在隊列和隊列連接工廠上更改了主機名。

希望能幫助別人。

卡爾