Mq Error Codes 2033
Contents |
AVAILABLE Technote(トラブルシューティング) 問題(概要) WebSphere MQ (WMQ)アプリケーションでキューからメッセージをゲットするときに、下記のリターンコードで失敗することがあります。 症状 2033 0x000007f1 MQRC_NO_MSG_AVAILABLE 原因 以下は、MQ理由コード 2033 の最も考えられる原因です。 -キューにメッセージがない http://www.ibm.com/support/docview.wss?uid=swg21640862 -MQPUTの作業単位(Unit of Work(UOW))がコミットされなかった -メッセージの有効期限が切れた 診断 ・この理由コードを通常の状態と考え、アプリケーションでこの状況をハンドルするようにしてください。 MQGET MQGMO_WAIT オプションを利用して、MQGET を使用することで対応できます。 (amqsget のサンプルプログラムでMQGET MQGMO_WAIT オプションを使用していますので、参照ください。) ・メッセージをPUTしているアプリケーションが、作業単位(UOW)ごとにコミットをしているかどうか確認してください。CurrentDepthはMQPUTが発行されるごとに増えていきますが、それらのメッセージがコミットされるまで、MQGETを発行するアプリケーションはそれらのメッセージをGETすることができません。 ・有効期限が切れたメッセージも、CurrentDepthにカウントされます。それら有効期限切れのメッセージはMQGETのタイミングで破棄されます。期限切れのメッセージは、アプリケーションでGETできません。メッセージの有効期限を増やすか、無期限にすることを検討ください。 *MQRC 2033は、多くの理由があります。この文書は、最も一般的な原因を記述しています。 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 ※ 最新の情報は英文をご参照いただくことをお勧めいたします。 【お問合せ先】 技術的な内容に関して、サービス契約
Certification Databases Caching Books Engineering Languages Frameworks Products This https://coderanch.com/t/77941/Websphere/MQ-MQException-Completion-Code-Reason Site Careers Other all forums Forum: WebSphere MQ: MQException: Completion Code 2, Reason 2033 Vadim Prudnikov Greenhorn Posts: 2 posted 10 http://www.mqseries.net/phpBB2/viewtopic.php?t=55002&sid=f77a63ec33da555d9d4f703d40eaa35e years ago Hi. Can you help me with the problem? I create MQQueueManager, send message and try to receive. Exception occurs on code 2 a 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 mq completion code msgText) throws 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, gm
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support
MQSeries.net Forum IndexWebSphere DataPowerMQSeries Backend +Reason Code 2033 Goto page 1, 2Next MQSeries Backend +Reason Code 2033 View previous topic :: View next topic Author Message srk31 Posted: Wed Sep 01, 2010 3:38 pm Post subject: MQSeries Backend +Reason Code 2033 ApprenticeJoined: 01 Sep 2010Posts: 39 Hi All, I am having MQSeries as backend and mq as front side handler. I am getting following error The get call timed out before receiving any messages (Reason Code 2033), MQ Reason Code = 2033, MQ URL = dpmq://LocalQM/?RequestQueue=TEST.REQ;ReplyQueue=TEST.RSP;Transactional=true The get call timed out before receiving any messages (Reason Code 2033) The same queues are working fine for different mpg where i am get the response with fraction of milliseconds. I have same backend and mqmanager configurations for this new mpg flow I have set up 120 sec for timeout. I am not able to figure out what could be the problem. No clue in the datapower logs. Can any one suggest what could be the problem Thanks, SRK Back to top mqjeff Posted: Wed Sep 01, 2010 6:11 pm Post subject: Grand MasterJoined: 25 Jun 2008Posts: 16560 mqrc 2033 Back to top srk31 Posted: Wed Sep 01, 2010 6:36 pm Post subject: ApprenticeJoined: 01 Sep 2010Posts: 39 when i look into dp error code its showing connection time out for this . The same Qmanger and front side handler configurations are working for other mpg. i was wondering whats wrong here Back to top Vitor Posted: Thu Sep 02, 2010 2:37 am Post subject: Grand High PoobahJoined: 11 Nov 2005Posts: 23698Location: Ohio, USA srk31 wrote: i was wondering whats wrong here Same thing as for any 2033: - Code problem meaning a badly identified reply (sender or receiver) - Code problem indicating no reply at all - Configuration problem misrouting reply A simple search of this forum or the documentation would have told you this_________________Honesty is the best policy. Insanity is the best defence. Back to top shashivarungupta Posted: Thu Sep 02, 2010 4:37 am Post subject: Re: MQSeries Backend +R