错误2033

官方的解释是

 

MQRC_NO_MSG_AVAILABLE ( 2033 )  

Explanation: An  MQGET  call was issued, but there is no message on the queue satisfying the selection criteria specified 
in  MQMD (the MsgId and CorrelId fields), and  in  MQGMO (the Options and MatchOptions fields). Either the MQGMO_WAIT option was not specified, or the time interval specified by the WaitInterval field  in  MQGMO has expired. This reason is also returned  for  an  MQGET  call  for  browse, when the end of the queue has been reached. 

This reason code can also be returned by the mqGetBag and mqExecute calls. mqGetBag is similar to MQGET. For the mqExecute call, the completion code can be either MQCC_WARNING or MQCC_FAILED: 

If the completion code is MQCC_WARNING, some response messages were received during the specified wait interval, but not all. The response bag contains system
- generated nested bags  for  the messages that were received. 
If the completion code is MQCC_FAILED, no response messages were received during the specified wait interval. 
Completion Code: MQCC_WARNING or MQCC_FAILED 

Programmer Response: If 
this  is an expected condition, no corrective action is required. 

If 
this  is an unexpected condition, check that: 

The message was put on the queue successfully. 
The unit of work (
if  any) used  for  the  MQPUT  or  MQPUT1  call was committed successfully. 
The options controlling the selection criteria are specified correctly. All of the following can affect the eligibility of a message 
for   return  on the  MQGET  call: 
MQGMO_LOGICAL_ORDER 
MQGMO_ALL_MSGS_AVAILABLE 
MQGMO_ALL_SEGMENTS_AVAILABLE 
MQGMO_COMPLETE_MSG 
MQMO_MATCH_MSG_ID 
MQMO_MATCH_CORREL_ID 
MQMO_MATCH_GROUP_ID 
MQMO_MATCH_MSG_SEQ_NUMBER 
MQMO_MATCH_OFFSET 
Value of MsgId field 
in  MQMD 
Value of CorrelId field 
in  MQMD 
Consider waiting longer 
for  the message. 

 也就是说这个错误的引发是因为MQ内没有消息,而我却执行了获取消息的操作,相当于告诉你MQ里面是空的

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值