Mq Series Error Code 2033
Contents |
AVAILABLE Technote(トラブルシューティング) 問題(概要) WebSphere MQ (WMQ)アプリケーションでキューからメッセージをゲットするときに、下記のリターンコードで失敗することがあります。 症状 2033 0x000007f1 mqrc codes MQRC_NO_MSG_AVAILABLE 原因 以下は、MQ理由コード 2033 の最も考えられる原因です。 -キューにメッセージがない -MQPUTの作業単位(Unit of Work(UOW))がコミットされなかった -メッセージの有効期限が切れた 診断 ・この理由コードを通常の状態と考え、アプリケーションでこの状況をハンドルするようにしてください。 MQGET MQGMO_WAIT オプションを利用して、MQGET を使用することで対応できます。 (amqsget のサンプルプログラムでMQGET MQGMO_WAIT オプションを使用していますので、参照ください。) ・メッセージをPUTしているアプリケーションが、作業単位(UOW)ごとにコミットをしているかどうか確認してください。CurrentDepthはMQPUTが発行されるごとに増えていきますが、それらのメッセージがコミットされるまで、MQGETを発行するアプリケーションはそれらのメッセージをGETすることができません。 ・有効期限が切れたメッセージも、CurrentDepthにカウントされます。それら有効期限切れのメッセージはMQGETのタイミングで破棄されます。期限切れのメッセージは、アプリケーションでGETできません。メッセージの有効期限を増やすか、無期限にすることを検討ください。 *MQRC 2033は、多くの理由があります。この文書は、最も一般的な原因を記述しています。
Mqrc_no_msg_available C#
WebSphere MQ Application Programming Referenceは、MQ機能呼び出しとReturnコードのリストに関して情報を提供しています。 【関連文書】 WebSphere MQ : The Get sample programs 2033 (07F1) (RC2033): MQRC_NO_MSG_AVAILABLE 英文:Technote (FAQ) : 1232330 2033 MQRC NO MSG AVAILABLE ※ 最新の情報は英文をご参照いただくことをお勧めいたします。 【お問合せ先】 技術的な内容に関して、サービス契約のあるお客様はIBMサービス・ラインにお問い合わせください。 IBM サービス・ライン Document information More support for: WebSphere MQ Application / API Software version: 7.0, 7.1, 7.5 Operating system(s): AIX, HP-UX, Linux, OS/390, OS/400, OpenVMS, Solaris, TRU64 UNIX, Tandem NSK, VSE, Windows, z/OS Reference #: 16
Certification Databases Caching Books Engineering Languages Frameworks Products This
Mq Timeout Error 2033
Site Careers Other all forums Forum: WebSphere MQ: MQException: mq error codes Completion Code 2, Reason 2033 Vadim Prudnikov Greenhorn Posts: 2 posted 10 years mq error 2085 ago Hi. Can you help me with the problem? I create MQQueueManager, send message and try to receive. Exception occurs on a http://www.ibm.com/support/docview.wss?uid=swg21640862 message receiving (MQQueue.get). This is a code parts (i don't show exception catching): //manager creation MQEnvironment.hostname = host; MQEnvironment.port = port; MQEnvironment.channel = channel; MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES); //TCP/IP or server connnection. manager = new MQQueueManager(managerName); //method for a message sending public void sendMessage(String queueName, String msgText) throws https://coderanch.com/t/77941/Websphere/MQ-MQException-Completion-Code-Reason MQException, IOException { int openOptions = MQC.MQOO_OUTPUT | MQC.MQOO_FAIL_IF_QUIESCING; MQQueue queue = manager.accessQueue(queueName, openOptions); MQMessage message = new MQMessage(); message.messageType = MQC.MQMT_DATAGRAM; message.format=MQC.MQFMT_STRING; message.persistence = MQC.MQPER_PERSISTENCE_AS_Q_DEF; message.write(msgText.getBytes()); MQPutMessageOptions pmo = new MQPutMessageOptions(); //i don't know if the following line is needed. //pmo.options = MQC.MQPMO_NEW_CORREL_ID | MQC.MQPMO_NEW_MSG_ID | MQC.MQPMO_FAIL_IF_QUIESCING; queue.put(message, pmo); queue.close(); } //method for a message receiving public String retrieveMessage(String queueName) throws Exception { int openOptions = MQC.MQOO_INPUT_SHARED | MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_INQUIRE; MQQueue queue = manager.accessQueue(queueName, openOptions); MQMessage message = new MQMessage(); message.messageId = MQC.MQMI_NONE; message.correlationId = MQC.MQCI_NONE; MQGetMessageOptions gmo = new MQGetMessageOptions(); //i don't know if the following 3 lines are needed. //gmo.options = MQC.MQGMO_WAIT | MQC.MQGMO_CONVERT | MQC.MQGMO_FAIL_IF_QUIESCING; //gmo.matchOptions = MQC.MQMO_MATCH_MSG_ID | MQC.MQMO_MATCH_CORREL_ID; //gmo.waitInterval = 60000; queue.get(message, gmo); String msgText = message.readString(message.getMessageLength()); queue.close(); return msgText; } queue.get(message, gmo); throws an exception. Hel
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support
MQSeries.net Forum IndexIBM MQ API SupportERROR 2033, MQRC_NO_MSG_AVAILABLE, But messages in queue Goto page 1, 2Next ERROR 2033, MQRC_NO_MSG_AVAILABLE, But messages in queue View previous topic :: View next topic Author Message Nroblex Posted: Wed Apr 16, 2008 3:53 am Post code 2 subject: ERROR 2033, MQRC_NO_MSG_AVAILABLE, But messages in queue NoviceJoined: 15 Apr 2008Posts: 11 Hello I am new to MQ and I really need some help from you profs. So thanks in advance! Here is my question: I Have installed MQ server on a ordernary windows XP machine and created a queuemanager named "PMC" I have created two queues under this manager, named mq series error PMCQueue and PMCIncomming. It is no problems to put messages to PMCqueue and I can browse them with the MQ Explorer. But when I use the get- method of MQQueue (the response queue) I always get 2033 MQRC_NO_MSG_AVAILABLE. When I put a message of request type do I always get an answer then ?? The code is as follows: try { mqManager = new MQQueueManager ("PMC"); } catch (MQException e) { string mText = mqText.getMQRCText(e.Reason); MessageBox.Show("Felmeddelande : " + e.Message + " " + mText); return; } //Frska ppna sndkn... try { sendQueue = mqManager.AccessQueue("PMCQueue", MQC.MQOO_OUTPUT + MQC.MQOO_FAIL_IF_QUIESCING); } catch (MQException e) { string mText = mqText.getMQRCText(e.Reason); MessageBox.Show("Felmeddelande : " + e.Message + " " + mText); return; } //Frska ppna mottagarkn. try { int openOptions = MQC.MQOO_OUTPUT | MQC.MQOO_INQUIRE | MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_FAIL_IF_QUIESCING; responseQueue = mqManager.AccessQueue("PMCIncomming", openOptions); } catch (MQException e) { string mText = mqText.getMQRCText(e.Reason); MessageBox.Show("Felmeddelande : " + e.Message + " " + mText); return; } try { MQMessage sendMessage = new MQMessage(); MQPutMessageOptions pmo = new MQPutMessageOptions(); sendMessage.WriteString(Message); sendMessage.Format = MQC.MQFMT_STRING; sendMessage.Persistence = 1; sendMessage.MessageType = MQC.MQMT_REQUEST; //sendMessage.Report = MQC.MQRO_COPY_MSG_ID_TO_CORREL_I