|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Error 2033 when trying to get a message |
« View previous topic :: View next topic » |
Author |
Message
|
Sofiane |
Posted: Sat May 29, 2010 9:27 am Post subject: Error 2033 when trying to get a message |
|
|
Newbie
Joined: 29 May 2010 Posts: 4
|
Hi there,
I got a 2033 error code when trying to get a specific message using the CorrelId. When I didn't specify the CorrelId it works but I don't get the right message that I need.
Can you please take a look on this log, it shows the 2033 error code that is driving me crazy .
Thanks in advance for yout help.
Sofiane
Entered hoaxini_INItialize.
PG4MQ: TRACE_LEVEL = 7
PG4MQ: TRANSACTION_MODEL = SINGLE_SITE
PG4MQ: AUTHORIZATION_MODEL = RELAXED
PG4MQ: QUEUE_MANAGER = GMUNT8
Entered hoaxln_Log_oN.
MQI: calling MQCONNX().
MQI: QM Name = GMUNT8
MQI: returned from MQCONNX().
MQI: handle=2, completion code=0, reason code=0
Entered hoaxuc_Upload_Capabilities.
Entered hoaxud_Upload_Ddtranslations.
Entered hoaxbg_BeGin_trans.
Entered hoaxcti_Cache_Trans_Id.
PG4MQ: Entered mqopen
MQI: calling MQOPEN().
MQI: hcon=2, hobj=0, od=ffffd078, options=8208
MQI: =================================
MQI: ======[ Object Descriptor ]======
MQI: =================================
MQI: StrucId : 'OD '
MQI: Version : 1
MQI: ObjectType : 1
MQI: ObjectName : 'QR.PRH_CENTRAL.INPUT1 '
MQI: ObjectQMgrName : ' '
MQI: DynamicQName : ' '
MQI: AlternateUserId : ' '
MQI: RecsPresent : 0
MQI: KnownDestCount : 0
MQI: UnknownDestCount : 0
MQI: InvalidDestCount : 0
MQI: ObjectRecOffset : 0
MQI: ResponseRecOffset : 0
MQI: ObjectRecPtr : 0
MQI: ResponseRecPtr : 0
MQI: AlternateSecurityId : ''
MQI: ResolvedQName : ''
MQI: ResolvedQMgrName : ''
MQI: returned from MQOPEN().
MQI: obj=2, completion code=0, reason code=0
MQI: =================================
MQI: ======[ Object Descriptor ]======
MQI: =================================
MQI: StrucId : 'OD '
MQI: Version : 1
MQI: ObjectType : 1
MQI: ObjectName : 'QR.PRH_CENTRAL.INPUT1 '
MQI: ObjectQMgrName : ' '
MQI: DynamicQName : ' '
MQI: AlternateUserId : ' '
MQI: RecsPresent : 0
MQI: KnownDestCount : 0
MQI: UnknownDestCount : 0
MQI: InvalidDestCount : 0
MQI: ObjectRecOffset : 0
MQI: ResponseRecOffset : 0
MQI: ObjectRecPtr : 0
MQI: ResponseRecPtr : 0
MQI: AlternateSecurityId : ''
MQI: ResolvedQName : ''
MQI: ResolvedQMgrName : ''
PG4MQ: Entered mqput
MQI: calling MQPUT().
MQI: hcon=2, hobj=2, md=ffffd038
MQI: buffer=1081ff08, buflen=1509
MQI: ==================================
MQI: ======[ Message Descriptor ]======
MQI: ==================================
MQI: StrucId : 'MD '
MQI: Version : 1
MQI: Report : 0
MQI: MsgType : 1
MQI: Expiry : 300000
MQI: Feedback : 0
MQI: Encoding : 273
MQI: CodedCharSetId : 0
MQI: Format : 'MQSTR '
MQI: Priority : -1
MQI: Persistence : 2
MQI: MsgId : X'534831303134393030303030303030303932373835313033'
MQI: CorrelId : X'534831303134393030303030303030303932373835313033'
MQI: BackoutCount : 0
MQI: ReplyToQ : 'QA.PRH.REPLY1 '
MQI: ReplyToQMgr : 'QR.GMUNT8 '
MQI: ===[ Identity Context ]===
MQI: UserIdentifier : ' '
MQI: AccountingToken : X'0000000000000000000000000000000000000000000000000000000000000000'
MQI: ApplIdentityData : ' '
MQI: ===[ Origin Context ]===
MQI: PutApplType : '0'
MQI: PutApplName : ' '
MQI: PutDate : ' '
MQI: PutTime : ' '
MQI: ApplOriginData : ' '
MQI: GroupId : X'000000000000000000000000000000000000000000000000'
MQI: MsgSeqNumber : '1'
MQI: Offset : '0'
MQI: MsgFlags : '0'
MQI: OriginalLength : '-1'
MQI: ===================================
MQI: ======[ Put Message Options ]======
MQI: ===================================
MQI: StrucId : 'PMO '
MQI: Version : 1
MQI: Options : 8194
MQI: Timeout : -1
MQI: Context : 0
MQI: KnownDestCount : 0
MQI: UnknownDestCount : 0
MQI: InvalidDestCount : 0
MQI: ResolvedQName : ''
MQI: ResolvedQMgrName : ''
MQI: RecsPresent : 0
MQI: PutMsgRecFields : 0
MQI: PutMsgRecOffset : 0
MQI: ResponseRecOffset : 0
MQI: PutMsgRecPtr : 0
MQI: ResponseRecPtr : 0
MQI: returned from MQPUT().
MQI: obj=2, completion code=0, reason code=0
MQI: buffer=1081ff08, buflen=1509
MQI: ==================================
MQI: ======[ Message Descriptor ]======
MQI: ==================================
MQI: StrucId : 'MD '
MQI: Version : 1
MQI: Report : 0
MQI: MsgType : 1
MQI: Expiry : 300000
MQI: Feedback : 0
MQI: Encoding : 273
MQI: CodedCharSetId : 0
MQI: Format : 'MQSTR '
MQI: Priority : -1
MQI: Persistence : 2
MQI: MsgId : X'534831303134393030303030303030303932373835313033'
MQI: CorrelId : X'534831303134393030303030303030303932373835313033'
MQI: BackoutCount : 0
MQI: ReplyToQ : 'QA.PRH.REPLY1 '
MQI: ReplyToQMgr : 'QR.GMUNT8 '
MQI: ===[ Identity Context ]===
MQI: UserIdentifier : 'oradg112 '
MQI: AccountingToken : X'0332313200000000000000000000000000000000000000000000000000000006'
MQI: ApplIdentityData : ' '
MQI: ===[ Origin Context ]===
MQI: PutApplType : '6'
MQI: PutApplName : 'dg4mqs '
MQI: PutDate : '20100529'
MQI: PutTime : '17184079'
MQI: ApplOriginData : ' '
MQI: GroupId : X'000000000000000000000000000000000000000000000000'
MQI: MsgSeqNumber : '1'
MQI: Offset : '0'
MQI: MsgFlags : '0'
MQI: OriginalLength : '-1'
MQI: ===================================
MQI: ======[ Put Message Options ]======
MQI: ===================================
MQI: StrucId : 'PMO '
MQI: Version : 1
MQI: Options : 8194
MQI: Timeout : -1
MQI: Context : 0
MQI: KnownDestCount : 0
MQI: UnknownDestCount : 1
MQI: InvalidDestCount : 0
MQI: ResolvedQName : 'QA.PRH_CENTRAL.INPUT1 '
MQI: ResolvedQMgrName : 'GMT1 '
MQI: RecsPresent : 0
MQI: PutMsgRecFields : 0
MQI: PutMsgRecOffset : 0
MQI: ResponseRecOffset : 0
MQI: PutMsgRecPtr : 0
MQI: ResponseRecPtr : 0
MQI: =======================
MQI: ======[ Message ]======
MQI: =======================
MQI: Message Length : 1509 bytes. Display up to 1024 bytes.
PG4MQ: Entered mqopen
MQI: calling MQOPEN().
MQI: hcon=2, hobj=0, od=ffffd078, options=1
MQI: =================================
MQI: ======[ Object Descriptor ]======
MQI: =================================
MQI: StrucId : 'OD '
MQI: Version : 1
MQI: ObjectType : 1
MQI: ObjectName : 'QA.PRH.REPLY1 '
MQI: ObjectQMgrName : ''
MQI: DynamicQName : 'AMQ.* '
MQI: AlternateUserId : ''
MQI: RecsPresent : 0
MQI: KnownDestCount : 0
MQI: UnknownDestCount : 0
MQI: InvalidDestCount : 0
MQI: ObjectRecOffset : 0
MQI: ResponseRecOffset : 0
MQI: ObjectRecPtr : 0
MQI: ResponseRecPtr : 0
MQI: AlternateSecurityId : ''
MQI: ResolvedQName : ''
MQI: ResolvedQMgrName : ''
MQI: returned from MQOPEN().
MQI: obj=2, completion code=0, reason code=0
MQI: =================================
MQI: ======[ Object Descriptor ]======
MQI: =================================
MQI: StrucId : 'OD '
MQI: Version : 1
MQI: ObjectType : 1
MQI: ObjectName : 'QA.PRH.REPLY1 '
MQI: ObjectQMgrName : ''
MQI: DynamicQName : 'AMQ.* '
MQI: AlternateUserId : ''
MQI: RecsPresent : 0
MQI: KnownDestCount : 0
MQI: UnknownDestCount : 0
MQI: InvalidDestCount : 0
MQI: ObjectRecOffset : 0
MQI: ResponseRecOffset : 0
MQI: ObjectRecPtr : 0
MQI: ResponseRecPtr : 0
MQI: AlternateSecurityId : ''
MQI: ResolvedQName : ''
MQI: ResolvedQMgrName : ''
PG4MQ: Entered mqget
MQI: calling MQGET().
MQI: hcon=2, hobj=2, md=ffff5040
MQI: buffer=ffff53d0, buflen=32767
MQI: ==================================
MQI: ======[ Message Descriptor ]======
MQI: ==================================
MQI: StrucId : 'MD '
MQI: Version : 1
MQI: Report : 0
MQI: MsgType : 8
MQI: Expiry : -1
MQI: Feedback : 0
MQI: Encoding : 273
MQI: CodedCharSetId : 0
MQI: Format : ' '
MQI: Priority : -1
MQI: Persistence : 2
MQI: MsgId : X'000000000000000000000000000000000000000000000000'
MQI: CorrelId : X'534831303134393030303030303030303932373835313033'
MQI: BackoutCount : 0
MQI: ReplyToQ : ' '
MQI: ReplyToQMgr : ' '
MQI: ===[ Identity Context ]===
MQI: UserIdentifier : ' '
MQI: AccountingToken : X'0000000000000000000000000000000000000000000000000000000000000000'
MQI: ApplIdentityData : ' '
MQI: ===[ Origin Context ]===
MQI: PutApplType : '0'
MQI: PutApplName : ' '
MQI: PutDate : ' '
MQI: PutTime : ' '
MQI: ApplOriginData : ' '
MQI: GroupId : X'000000000000000000000000000000000000000000000000'
MQI: MsgSeqNumber : '1'
MQI: Offset : '0'
MQI: MsgFlags : '0'
MQI: OriginalLength : '-1'
MQI: ===================================
MQI: ======[ Get Message Options ]======
MQI: ===================================
MQI: StrucId : 'GMO '
MQI: Version : 1
MQI: Options : 24643
MQI: WaitInterval : 120000
MQI: Signal1 : 0
MQI: Signal2 : 0
MQI: ResolvedQName : ''
MQI: MatchOptions : 2
MQI: GroupStatus :
MQI: SegmentStatus :
MQI: Segmentation :
MQI: MsgToken : X'00000000000000000000000000000000'
MQI: ReturnedLength : -1
MQI: returned from MQGET().
MQI: obj=2, completion code=2, reason code=2033
MQI: buffer=ffff53d0, buflen=0
MQI: ==================================
MQI: ======[ Message Descriptor ]======
MQI: ==================================
MQI: StrucId : 'MD '
MQI: Version : 1
MQI: Report : 0
MQI: MsgType : 8
MQI: Expiry : -1
MQI: Feedback : 0
MQI: Encoding : 273
MQI: CodedCharSetId : 0
MQI: Format : ' '
MQI: Priority : -1
MQI: Persistence : 2
MQI: MsgId : X'000000000000000000000000000000000000000000000000'
MQI: CorrelId : X'534831303134393030303030303030303932373835363030'
MQI: BackoutCount : 0
MQI: ReplyToQ : ' '
MQI: ReplyToQMgr : ' '
MQI: ===[ Identity Context ]===
MQI: UserIdentifier : ' '
MQI: AccountingToken : X'0000000000000000000000000000000000000000000000000000000000000000'
MQI: ApplIdentityData : ' '
MQI: ===[ Origin Context ]===
MQI: PutApplType : '0'
MQI: PutApplName : ' '
MQI: PutDate : ' '
MQI: PutTime : ' '
MQI: ApplOriginData : ' '
MQI: GroupId : X'000000000000000000000000000000000000000000000000'
MQI: MsgSeqNumber : '1'
MQI: Offset : '0'
MQI: MsgFlags : '0'
MQI: OriginalLength : '-1'
MQI: ===================================
MQI: ======[ Get Message Options ]======
MQI: ===================================
MQI: StrucId : 'GMO '
MQI: Version : 1
MQI: Options : 24643
MQI: WaitInterval : 120000
MQI: Signal1 : 0
MQI: Signal2 : 0
MQI: ResolvedQName : ''
MQI: MatchOptions : 2
MQI: GroupStatus :
MQI: SegmentStatus :
MQI: Segmentation :
MQI: MsgToken : X'00000000000000000000000000000000'
MQI: ReturnedLength : -1
PG4MQ: Entered mqclose
MQI: calling MQCLOSE().
MQI: hcon=2, hobj=2, options=0
MQI: returned from MQCLOSE().
MQI: obj=-1, completion code=0, reason code=0
Entered hoaxct_Commit_Trans.
MQI: calling MQCMIT().
MQI: returned from MQCMIT().
MQI: hcon=2, completion code=0, reason code=0
Entered hoaxln_Log_ofF.
MQI: calling MQDISC().
MQI: returned from MQDISC().
MQI: hcon=-1, completion code=0, reason code=0
Entered hoaxex_EXit.
MQI: returned from MQGET().
MQI: obj=2, completion code=2, reason code=2033
MQI: buffer=ffff53d0, buflen=0
MQI: ==================================
MQI: ======[ Message Descriptor ]======
MQI: ==================================
MQI: StrucId : 'MD '
MQI: Version : 1
MQI: Report : 0
MQI: MsgType : 8
MQI: Expiry : -1
MQI: Feedback : 0
MQI: Encoding : 273
MQI: CodedCharSetId : 0
MQI: Format : ' '
MQI: Priority : -1
MQI: Persistence : 2
MQI: MsgId : X'000000000000000000000000000000000000000000000000'
MQI: CorrelId : X'534831303134393030303030303030303932373835313033'
MQI: BackoutCount : 0
MQI: ReplyToQ : ' '
MQI: ReplyToQMgr : ' '
MQI: ===[ Identity Context ]===
MQI: UserIdentifier : ' '
MQI: AccountingToken : X'0000000000000000000000000000000000000000000000000000000000000000'
MQI: ApplIdentityData : ' '
MQI: ===[ Origin Context ]===
MQI: PutApplType : '0'
MQI: PutApplName : ' '
MQI: PutDate : ' '
MQI: PutTime : ' '
MQI: ApplOriginData : ' '
MQI: GroupId : X'000000000000000000000000000000000000000000000000'
MQI: MsgSeqNumber : '1'
MQI: Offset : '0'
MQI: MsgFlags : '0'
MQI: OriginalLength : '-1'
MQI: ===================================
MQI: ======[ Get Message Options ]======
MQI: ===================================
MQI: StrucId : 'GMO '
MQI: Version : 1
MQI: Options : 24643
MQI: WaitInterval : 120000
MQI: Signal1 : 0
MQI: Signal2 : 0
MQI: ResolvedQName : ''
MQI: MatchOptions : 2
MQI: GroupStatus :
MQI: SegmentStatus :
MQI: Segmentation :
MQI: MsgToken : X'00000000000000000000000000000000'
MQI: ReturnedLength : -1 |
|
Back to top |
|
 |
fatherjack |
Posted: Sat May 29, 2010 9:44 am Post subject: |
|
|
 Knight
Joined: 14 Apr 2010 Posts: 522 Location: Craggy Island
|
Looks to me like you're trying to do everything in the same Unit of Work. So when you do your MQPUT under syncpoint it is not available to be got until you commit. So, doing your MQGET immediately after will not get the message as it has not yet been committed.
I suspect if you are getting a message when you don't specify the correlId you are actually getting a different message i.e. one that has been committed previously and not the one you are expecting. _________________ Never let the facts get in the way of a good theory. |
|
Back to top |
|
 |
Sofiane |
Posted: Sat May 29, 2010 10:13 am Post subject: |
|
|
Newbie
Joined: 29 May 2010 Posts: 4
|
Yes, I send a message to IBM and try to get it in the same unit of program, I waited 2 minutes before trying to get a message. But during this time I'm sure that the message is ready, and even I set WAITINTERVAL to 20 minutes I got the same error. |
|
Back to top |
|
 |
mvic |
Posted: Sat May 29, 2010 11:20 am Post subject: Re: Error 2033 when trying to get a message |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
Sofiane wrote: |
I got a 2033 error code when trying to get a specific message using the CorrelId. When I didn't specify the CorrelId it works but I don't get the right message that I need. |
Your hObjs and object names confuse me - you seem to put the message on one queue (QR.PRH_CENTRAL.INPUT1 .. hobj=2), and get from a different queue (QA.PRH.REPLY1 .. hobj=2 again though, how did it get the same hobj as the first one?).
Another thing that confuses me - the put was within syncpoint, but you did not commit the hconn before getting from the second queue. Why was that? |
|
Back to top |
|
 |
mvic |
Posted: Sat May 29, 2010 11:24 am Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
Sofiane wrote: |
Yes, I send a message to IBM and try to get it in the same unit of program |
The correct term is unit of work, or transaction, or (a few use this term) "syncpoint". Is that what you meant, or did you mean something else?
Quote: |
But during this time I'm sure that the message is ready |
What did you see to make you sure the message is on the queue, available to be given to an MQGET ? |
|
Back to top |
|
 |
Vitor |
Posted: Sat May 29, 2010 5:50 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
I echo the comments of others, including the comment that double posting is considered rude. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sun May 30, 2010 8:48 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
2033 is not an error or error code. ReasonCode 2033 means that no message was available. It may or may not meet your business logic, but it not an error.
Common reasons that you receive a 2033: the queue is empty (think of this like end-of-file indicator); OR you specified (correctly or incorrectly) that the message you seek must exactly match MsgId or CorrelId or GroupId; OR you app is trying to MQGET from the wrong queue. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Sun May 30, 2010 9:42 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
bruce2359 wrote: |
Common reasons that you receive a 2033: the queue is empty (think of this like end-of-file indicator); OR you specified (correctly or incorrectly) that the message you seek must exactly match MsgId or CorrelId or GroupId; OR you app is trying to MQGET from the wrong queue. |
;OR, the message you want is on the queue but not yet committed by the putting application. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun May 30, 2010 9:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
PeterPotkay wrote: |
bruce2359 wrote: |
Common reasons that you receive a 2033: the queue is empty (think of this like end-of-file indicator); OR you specified (correctly or incorrectly) that the message you seek must exactly match MsgId or CorrelId or GroupId; OR you app is trying to MQGET from the wrong queue. |
;OR, the message you want is on the queue but not yet committed by the putting application. |
Or the putting application never sent your reply because it never got your request as you did not commit the transaction sending the request...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
gbaddeley |
Posted: Sun May 30, 2010 3:20 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
2033 would have to be the most common ReasonCode experienced by application programs doing MQGET, yet few developers understand all the possible reasons that this can occur, and how to correctly deal with it in the code.  _________________ Glenn |
|
Back to top |
|
 |
Sofiane |
Posted: Mon May 31, 2010 11:34 am Post subject: |
|
|
Newbie
Joined: 29 May 2010 Posts: 4
|
thank you everybody for your help , it's working now, I set the matchoptions to PGM_SUP.MQMO_MATCH_MSG_ID and I can to get the message that I wanted .
Thanks again.
Sofiane |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|