ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » strange MQ RC 2080 happen

Post new topic  Reply to topic
 strange MQ RC 2080 happen « View previous topic :: View next topic » 
Author Message
liquidchen
PostPosted: Fri Oct 24, 2008 11:12 am    Post subject: strange MQ RC 2080 happen Reply with quote

Novice

Joined: 30 Mar 2006
Posts: 21

I use amqsput0 and amqsget0 to do send and receive message, but I will get 2080 RC if I put
send program for a while, and MQGET I set a long
wait time... I can make sure the MQGET buffer length was long enougth, but it still return 2080,
does any body know why this happen??
Back to top
View user's profile Send private message
atheek
PostPosted: Fri Oct 24, 2008 9:36 pm    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

Are you 100% sure that you have enough buffers? Is there any conversion happening during the get?
Back to top
View user's profile Send private message
liquidchen
PostPosted: Fri Oct 24, 2008 10:54 pm    Post subject: Reply with quote

Novice

Joined: 30 Mar 2006
Posts: 21

Yes, I extend the default sample buffer size to 2048, and I can sure the message I send was less then 2048, in fact I didnt modify the amqsput0.c and just extend the buffer size and wait time to amqsget0.c, that's why I cant understand about this error...
Back to top
View user's profile Send private message
bower5932
PostPosted: Mon Oct 27, 2008 8:51 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I'd suggest that you add some code to the sample to display the actual size of the message (which is returned with the 2080). You could also use amqsbcg to browse the message. Somebody else may have slipped a larger message onto your queue.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
liquidchen
PostPosted: Mon Oct 27, 2008 9:49 am    Post subject: Reply with quote

Novice

Joined: 30 Mar 2006
Posts: 21

I just use amqsput0 to test it, so I can sure the message size wont bigger then 100 bytes, I turn on the MQ Trace and got the following
information, and I seems not see any strang large message...

14:38:11.858342 335882.8 ---{ MQGET
14:38:11.858350 335882.8 ----{ zstMQGET
14:38:11.858362 335882.8 -----{ zstVerifyPCD
14:38:11.858368 335882.8 -----} zstVerifyPCD rc=OK
14:38:11.858376 335882.8 __________
14:38:11.858383 335882.8 MQGET >>
14:38:11.858390 335882.8 Hconn:
14:38:11.858397 335882.8 0x0000: 00000002 |.... |
14:38:11.858404 335882.8 Hobj:
14:38:11.858411 335882.8 0x0000: 00000002 |.... |
14:38:11.858418 335882.8 Msgdesc:
14:38:11.858425 335882.8 0x0000: 4d442020 00000001 00000000 00000008 |MD ............|
14:38:11.858425 335882.8 0x0010: ffffffff 00000000 00000111 00000333 |...............3|
14:38:11.858425 335882.8 0x0020: 4d515354 52202020 00000000 00000000 |MQSTR ........|
14:38:11.858425 335882.8 0x0030: 00000000 00000000 00000000 00000000 |................|
14:38:11.858425 335882.8 0x0040: 00000000 00000000 00000000 00000000 |................|
14:38:11.858425 335882.8 0x0050: 00000000 00000000 00000000 00000000 |................|
14:38:11.858425 335882.8 0x0060: 00000000 20202020 20202020 20202020 |.... |
14:38:11.858425 335882.8 0x0070: 20202020 20202020 20202020 20202020 | |
14:38:11.858425 335882.8 0x0080: 20202020 20202020 20202020 20202020 | |
14:38:11.858425 335882.8 0x0090: 20202020 6f6d6e69 5f746573 74363462 | omni_test64b|
14:38:11.858425 335882.8 0x00a0: 2e717565 75652e6d 616e6167 65722020 |.queue.manager |
14:38:11.858425 335882.8 0x00b0: 20202020 20202020 20202020 20202020 | |
14:38:11.858425 335882.8 0x00c0: 20202020 74657374 36346220 20202020 | test64b |
14:38:11.858425 335882.8 0x00d0: 03323036 00000000 00000000 00000000 |.206............|
14:38:11.858425 335882.8 0x00e0: 00000000 00000000 00000000 00000006 |................|
14:38:11.858425 335882.8 0x00f0: 20202020 20202020 20202020 20202020 | |
14:38:11.858425 335882.8 0x0100: 20202020 20202020 20202020 20202020 | |
14:38:11.858425 335882.8 0x0110: 00000006 616d7173 70757430 00202020 |....amqsput0. |
14:38:11.858425 335882.8 0x0120: 20202020 20202020 20202020 20202020 | |
14:38:11.858425 335882.8 0x0130: 32303038 31303237 30363337 31313835 |2008102706371185|
14:38:11.858425 335882.8 0x0140: 20202020 00000000 00000000 00000000 | ............|
14:38:11.858425 335882.8 0x0150: 00000000 00000000 00000000 00000001 |................|
14:38:11.858425 335882.8 0x0160: 00000000 00000000 ffffffff |............ |
14:38:11.858432 335882.8 Getmsgopts:
14:38:11.858439 335882.8 0x0000: 474d4f20 00000001 00004001 0000ea60 |GMO ......@....`|
14:38:11.858439 335882.8 0x0010: 00000000 00000000 4f4d4e49 3336302e |........OMNI360.|
14:38:11.858439 335882.8 0x0020: 44455351 20202020 20202020 20202020 |DESQ |
14:38:11.858439 335882.8 0x0030: 20202020 20202020 20202020 20202020 | |
14:38:11.858439 335882.8 0x0040: 20202020 20202020 00000003 20202020 | .... |
14:38:11.858439 335882.8 0x0050: 00000000 00000000 00000000 00000000 |................|
14:38:11.858439 335882.8 0x0060: ffffffff |.... |
14:38:11.858446 335882.8 Bufferlength:
14:38:11.858453 335882.8 0x0000: 00000000 |.... |
14:38:11.858460 335882.8 Buffer : Output Parm
14:38:11.858467 335882.8 Datalength : Output Parm
14:38:11.858474 335882.8 Compcode : Output Parm
14:38:11.858480 335882.8 Reason : Output Parm
14:38:11.858489 335882.8 -----{ zifMQGET
14:38:11.858497 335882.8 ------{ zsqMQGET
14:38:11.858521 335882.8 -------{ zsqVerifyQueueObj
14:38:11.858528 335882.8 --------{ zsqVerifyObj
14:38:11.858535 335882.8 --------} zsqVerifyObj rc=OK
14:38:11.858541 335882.8 -------} zsqVerifyQueueObj rc=OK
14:38:11.858549 335882.8 -------{ zsqVerOptForGet
14:38:11.858556 335882.8 -------} zsqVerOptForGet rc=OK
14:38:11.858563 335882.8 -------{ kpiMQGET
14:38:11.858573 335882.8 QMgrName (omni_test64b.queue.manager ), QName (OMNI360.DESQ )
14:38:11.858581 335882.8 --------{ kqiWaitForMessage
14:38:11.858590 335882.8 ---------{ kqiInitialiseWaiter
14:38:11.858597 335882.8 ---------} kqiInitialiseWaiter rc=OK
14:38:11.858604 335882.8 ---------{ kqiAddToWaiterChain
14:38:11.858611 335882.8 Flags 0X:1
14:38:11.858621 335882.8 CorrelIdHash(4001) ChainId(0) bLocked(TRUE)
14:38:11.858628 335882.8 ---------} kqiAddToWaiterChain rc=OK
14:38:11.858635 335882.8 ---------{ kqiAddToWaiterChain
14:38:11.858642 335882.8 Flags 0X:2
14:38:11.858650 335882.8 CorrelIdHash(4001) ChainId(0) bLocked(FALSE)
14:38:11.858657 335882.8 ---------} kqiAddToWaiterChain rc=OK
14:38:11.858665 335882.8 ---------{ kqiQPathCheckAndSet
14:38:11.858672 335882.8 ---------} kqiQPathCheckAndSet rc=OK
14:38:11.858679 335882.8 ---------{ kqiWaitForABit
14:38:11.858686 335882.8 ----------{ xcsWaitEventSem
14:38:11.858695 335882.8 hev=2::0::0-332760 TimeOut(60000)
14:38:11.858701 335882.8 -----------{ xlsLockEvent
14:38:11.858708 335882.8 -----------} xlsLockEvent rc=OK
14:38:11.858714 335882.8 -----------{ xlsUnlockEvent
14:38:11.858721 335882.8 -----------} xlsUnlockEvent rc=OK
14:38:11.858728 335882.8 -----------{ xtmRequestCallback
14:38:11.858737 335882.8 ------------{ xtmAdjustTimer
14:38:11.858750 335882.8 ------------} xtmAdjustTimer rc=OK
14:38:11.858769 335882.8 -----------} xtmRequestCallback rc=OK
*14:38:45.490801 335882.7 Channel Name:OMNI_SVR_CHANNEL
14:38:45.490843 335882.7 Receiving 505 bytes
14:38:45.490843 335882.7 0x0000: 54534820 000001f9 01863000 00000000 |TSH ......0.....|
14:38:45.490843 335882.7 0x0010: 00000000 00000111 03330000 000001f9 |.........3......|
14:38:45.490843 335882.7 0x0020: 00000000 00000000 00000002 4d442020 |............MD |
14:38:45.490843 335882.7 0x0030: 00000001 00000000 00000008 ffffffff |................|
14:38:45.490843 335882.7 0x0040: 00000000 00000111 00000333 4d515354 |...........3MQST|
14:38:45.490843 335882.7 0x0050: 52202020 ffffffff 00000002 00000000 |R ............|
14:38:45.490843 335882.7 0x0060: 00000000 00000000 00000000 00000000 |................|
14:38:45.490843 335882.7 0x0070: 00000000 00000000 00000000 00000000 |................|
14:38:45.490843 335882.7 0x0080: 00000000 00000000 00000000 00000000 |................|
14:38:45.490843 335882.7 0x0090: 00000000 00000000 00000000 00000000 |................|
14:38:45.490843 335882.7 0x00a0: 00000000 00000000 00000000 00000000 |................|
14:38:45.490843 335882.7 0x00b0: 00000000 00000000 00000000 00000000 |................|
14:38:45.490843 335882.7 0x00c0: 00000000 00000000 00000000 00000000 |................|
14:38:45.490843 335882.7 0x00d0: 00000000 00000000 00000000 00000000 |................|
14:38:45.490843 335882.7 0x00e0: 00000000 00000000 00000000 00000000 |................|
14:38:45.490843 335882.7 0x00f0: 74657374 36346220 20202020 03323036 |test64b .206|
14:38:45.490843 335882.7 0x0100: 00000000 00000000 00000000 00000000 |................|
14:38:45.490843 335882.7 0x0110: 00000000 00000000 00000006 20202020 |............ |
14:38:45.490843 335882.7 0x0120: 20202020 20202020 20202020 20202020 | |
14:38:45.490843 335882.7 0x0130: 20202020 20202020 20202020 00000006 | ....|
14:38:45.490843 335882.7 0x0140: 616d7173 70757430 00202020 20202020 |amqsput0. |
14:38:45.490843 335882.7 0x0150: 20202020 20202020 20202020 32303038 | 2008|
14:38:45.490843 335882.7 0x0160: 31303237 30363337 31313835 20202020 |102706371185 |
14:38:45.490843 335882.7 0x0170: 504d4f20 00000001 00000000 ffffffff |PMO ............|
14:38:45.490843 335882.7 0x0180: 00000000 00000001 00000000 00000000 |................|
14:38:45.490843 335882.7 0x0190: 4f4d4e49 3336302e 44455351 20202020 |OMNI360.DESQ |
14:38:45.490843 335882.7 0x01a0: 20202020 20202020 20202020 20202020 | |
14:38:45.490843 335882.7 0x01b0: 20202020 20202020 20202020 20202020 | |
14:38:45.490843 335882.7 0x01c0: 6f6d6e69 5f746573 74363462 2e717565 |omni_test64b.que|
14:38:45.490843 335882.7 0x01d0: 75652e6d 616e6167 65722020 20202020 |ue.manager |
14:38:45.490843 335882.7 0x01e0: 20202020 20202020 20202020 20202020 | |
14:38:45.490843 335882.7 0x01f0: 00000005 74657374 32 |....test2 |
14:38:45.490876 335882.7 __________
14:38:45.490883 335882.7 MQPUT >>
14:38:45.490891 335882.7 Hconn:
14:38:45.490898 335882.7 0x0000: 00000004 |.... |
14:38:45.490905 335882.7 Hobj:
14:38:45.490912 335882.7 0x0000: 00000002 |.... |
14:38:45.490919 335882.7 Msgdesc:
14:38:45.490926 335882.7 0x0000: 4d442020 00000001 00000000 00000008 |MD ............|
14:38:45.490926 335882.7 0x0010: ffffffff 00000000 00000111 00000333 |...............3|
14:38:45.490926 335882.7 0x0020: 4d515354 52202020 ffffffff 00000002 |MQSTR ........|
14:38:45.490926 335882.7 0x0030: 00000000 00000000 00000000 00000000 |................|
14:38:45.490926 335882.7 0x0040: 00000000 00000000 00000000 00000000 |................|
14:38:45.490926 335882.7 0x0050: 00000000 00000000 00000000 00000000 |................|
14:38:45.490926 335882.7 0x0060: 00000000 00000000 00000000 00000000 |................|
14:38:45.490926 335882.7 0x0070: 00000000 00000000 00000000 00000000 |................|
14:38:45.490926 335882.7 0x0080: 00000000 00000000 00000000 00000000 |................|
14:38:45.490926 335882.7 0x0090: 00000000 00000000 00000000 00000000 |................|
14:38:45.490926 335882.7 0x00a0: 00000000 00000000 00000000 00000000 |................|
14:38:45.490926 335882.7 0x00b0: 00000000 00000000 00000000 00000000 |................|
14:38:45.490926 335882.7 0x00c0: 00000000 74657374 36346220 20202020 |....test64b |
14:38:45.490926 335882.7 0x00d0: 03323036 00000000 00000000 00000000 |.206............|
14:38:45.490926 335882.7 0x00e0: 00000000 00000000 00000000 00000006 |................|
14:38:45.490926 335882.7 0x00f0: 20202020 20202020 20202020 20202020 | |
14:38:45.490926 335882.7 0x0100: 20202020 20202020 20202020 20202020 | |
14:38:45.490926 335882.7 0x0110: 00000006 616d7173 70757430 00202020 |....amqsput0. |
14:38:45.490926 335882.7 0x0120: 20202020 20202020 20202020 20202020 | |
14:38:45.490926 335882.7 0x0130: 32303038 31303237 30363337 31313835 |2008102706371185|
14:38:45.490926 335882.7 0x0140: 20202020 00000000 00000000 00000000 | ............|
14:38:45.490926 335882.7 0x0150: 00000000 00000000 00000000 00000001 |................|
14:38:45.490926 335882.7 0x0160: 00000000 00000000 ffffffff |............ |
14:38:45.490934 335882.7 Putmsgopts:
14:38:45.490941 335882.7 0x0000: 504d4f20 00000001 00000000 ffffffff |PMO ............|
14:38:45.490941 335882.7 0x0010: 00000000 00000001 00000000 00000000 |................|
14:38:45.490941 335882.7 0x0020: 4f4d4e49 3336302e 44455351 20202020 |OMNI360.DESQ |
14:38:45.490941 335882.7 0x0030: 20202020 20202020 20202020 20202020 | |
14:38:45.490941 335882.7 0x0040: 20202020 20202020 20202020 20202020 | |
14:38:45.490941 335882.7 0x0050: 6f6d6e69 5f746573 74363462 2e717565 |omni_test64b.que|
14:38:45.490941 335882.7 0x0060: 75652e6d 616e6167 65722020 20202020 |ue.manager |
14:38:45.490941 335882.7 0x0070: 20202020 20202020 20202020 20202020 | |
14:38:45.490941 335882.7 0x0080: 00000000 00000000 00000000 00000000 |................|
14:38:45.490941 335882.7 0x0090: 00000001 101a0f3c 00000001 10146b88 |.......<......k.|
14:38:45.490948 335882.7 Bufferlength:
14:38:45.490956 335882.7 0x0000: 00000005 |.... |
14:38:45.490962 335882.7 Buffer:
14:38:45.490969 335882.7 0x0000: 74657374 32 |test2 |
14:38:45.490977 335882.7 Compcode : Output Parm
14:38:45.490984 335882.7 Reason : Output Parm
14:38:45.491029 335882.7 Data: 0x49056033 0x20000a05
14:38:45.491079 335882.7 Data: 0x00000001 0x00001efc 0x00000041
14:38:45.491145 335882.7 __________
*14:38:45.491147 335882.8 -----------{ xtmCancelCallback
14:38:45.491153 335882.7 MQPUT <<
14:38:45.491171 335882.7 Hconn : Input Parm
14:38:45.491173 335882.8 -----------} xtmCancelCallback rc=OK
14:38:45.491179 335882.7 Hconn:
14:38:45.491184 335882.8 ----------} xcsWaitEventSem rc=OK
14:38:45.491187 335882.7 0x0000: 00000004 |.... |
14:38:45.491192 335882.8 ----------{ xcsResetEventSem
14:38:45.491195 335882.7 Hobj : Input Parm
14:38:45.491203 335882.7 Hobj:
14:38:45.491203 335882.8 hev=2::0::0-332760
14:38:45.491210 335882.7 0x0000: 00000002 |.... |
14:38:45.491214 335882.8 ----------} xcsResetEventSem rc=OK
14:38:45.491218 335882.7 Msgdesc:
14:38:45.491222 335882.8 ----------{ apiLockExclusive
14:38:45.491225 335882.7 0x0000: 4d442020 00000001 00000000 00000008 |MD ............|
14:38:45.491225 335882.7 0x0010: ffffffff 00000000 00000111 00000333 |...............3|
14:38:45.491225 335882.7 0x0020: 4d515354 52202020 ffffffff 00000002 |MQSTR ........|
14:38:45.491225 335882.7 0x0030: 414d5120 6f6d6e69 5f746573 74363462 |AMQ omni_test64b|
14:38:45.491225 335882.7 0x0040: 49056033 20000a05 00000000 00000000 |I.`3 . .........|
14:38:45.491225 335882.7 0x0050: 00000000 00000000 00000000 00000000 |................|
14:38:45.491225 335882.7 0x0060: 00000000 00000000 00000000 00000000 |................|
14:38:45.491225 335882.7 0x0070: 00000000 00000000 00000000 00000000 |................|
14:38:45.491225 335882.7 0x0080: 00000000 00000000 00000000 00000000 |................|
14:38:45.491225 335882.7 0x0090: 00000000 00000000 00000000 00000000 |................|
14:38:45.491225 335882.7 0x00a0: 00000000 00000000 00000000 00000000 |................|
14:38:45.491225 335882.7 0x00b0: 00000000 00000000 00000000 00000000 |................|
14:38:45.491225 335882.7 0x00c0: 00000000 74657374 36346220 20202020 |....test64b |
14:38:45.491225 335882.7 0x00d0: 03323036 00000000 00000000 00000000 |.206............|
14:38:45.491225 335882.7 0x00e0: 00000000 00000000 00000000 00000006 |................|
14:38:45.491225 335882.7 0x00f0: 20202020 20202020 20202020 20202020 | |
14:38:45.491225 335882.7 0x0100: 20202020 20202020 20202020 20202020 | |
14:38:45.491225 335882.7 0x0110: 00000006 616d7173 70757430 00202020 |....amqsput0. |
14:38:45.491225 335882.7 0x0120: 20202020 20202020 20202020 20202020 | |
14:38:45.491225 335882.7 0x0130: 32303038 31303237 30363338 34353439 |2008102706384549|
14:38:45.491225 335882.7 0x0140: 20202020 00000000 00000000 00000000 | ............|
14:38:45.491225 335882.7 0x0150: 00000000 00000000 00000000 00000001 |................|
14:38:45.491225 335882.7 0x0160: 00000000 00000000 ffffffff |............ |
14:38:45.491230 335882.8 -----------{ xcsRequestMutexSem
14:38:45.491233 335882.7 Putmsgopts:
14:38:45.491237 335882.8 -----------} xcsRequestMutexSem rc=OK
14:38:45.491241 335882.7 0x0000: 504d4f20 00000001 00000000 ffffffff |PMO ............|
14:38:45.491241 335882.7 0x0010: 00000000 00000001 00000000 00000000 |................|
14:38:45.491241 335882.7 0x0020: 4f4d4e49 3336302e 44455351 20202020 |OMNI360.DESQ |
14:38:45.491241 335882.7 0x0030: 20202020 20202020 20202020 20202020 | |
14:38:45.491241 335882.7 0x0040: 20202020 20202020 20202020 20202020 | |
14:38:45.491241 335882.7 0x0050: 6f6d6e69 5f746573 74363462 2e717565 |omni_test64b.que|
14:38:45.491241 335882.7 0x0060: 75652e6d 616e6167 65722020 20202020 |ue.manager |
14:38:45.491241 335882.7 0x0070: 20202020 20202020 20202020 20202020 | |
14:38:45.491241 335882.7 0x0080: 00000000 00000000 00000000 00000000 |................|
14:38:45.491241 335882.7 0x0090: 00000001 101a0f3c 00000001 10146b88 |.......<......k.|
14:38:45.491276 335882.8 ----------} apiLockExclusive rc=OK
14:38:45.491280 335882.7 Bufferlength : Input Parm
14:38:45.491284 335882.8 ---------}! kqiWaitForABit rc=krcI_TICKLED
14:38:45.491288 335882.7 Buffer : Input Parm
14:38:45.491292 335882.8 ---------{ kqiQPathCheckAndSet
14:38:45.491295 335882.7 Compcode:
14:38:45.491300 335882.8 ---------} kqiQPathCheckAndSet rc=OK
14:38:45.491303 335882.7 0x0000: 00000000 |.... |
14:38:45.491310 335882.8 ---------{ xcsQueryMTimeFn
14:38:45.491311 335882.7 Reason:
14:38:45.491317 335882.8 ---------} xcsQueryMTimeFn rc=OK
14:38:45.491321 335882.7 0x0000: 00000000 |.... |
14:38:45.491325 335882.8 ---------{ apiGetMessage
14:38:45.491332 335882.8 ----------{ aqmGetMessage
14:38:45.491341 335882.8 -----------{ aqsStartQOp
14:38:45.491349 335882.8 ------------{ aqsAttachQueue
14:38:45.491356 335882.8 -------------{ xcsAttachSetExtents
14:38:45.491363 335882.8 -------------} xcsAttachSetExtents rc=OK
14:38:45.491370 335882.8 ------------} aqsAttachQueue rc=OK
14:38:45.491370 335882.7 Channel Name:OMNI_SVR_CHANNEL
14:38:45.491377 335882.8 -----------} aqsStartQOp rc=OK
14:38:45.491383 335882.7 Sending 500 bytes
14:38:45.491383 335882.7 0x0000: 54534820 000001f4 01963000 00000000 |TSH ......0.....|
14:38:45.491383 335882.7 0x0010: 00000000 00000111 03330000 000001f4 |.........3......|
14:38:45.491383 335882.7 0x0020: 00000000 00000000 00000002 4d442020 |............MD |
14:38:45.491383 335882.7 0x0030: 00000001 00000000 00000008 ffffffff |................|
14:38:45.491383 335882.7 0x0040: 00000000 00000111 00000333 4d515354 |...........3MQST|
14:38:45.491383 335882.7 0x0050: 52202020 ffffffff 00000002 414d5120 |R ........AMQ |
14:38:45.491383 335882.7 0x0060: 6f6d6e69 5f746573 74363462 49056033 |omni_test64bI.`3|
14:38:45.491383 335882.7 0x0070: 20000a05 00000000 00000000 00000000 | . .............|
14:38:45.491383 335882.7 0x0080: 00000000 00000000 00000000 00000000 |................|
14:38:45.491383 335882.7 0x0090: 00000000 00000000 00000000 00000000 |................|
14:38:45.491383 335882.7 0x00a0: 00000000 00000000 00000000 00000000 |................|
14:38:45.491383 335882.7 0x00b0: 00000000 00000000 00000000 00000000 |................|
14:38:45.491383 335882.7 0x00c0: 00000000 00000000 00000000 00000000 |................|
14:38:45.491383 335882.7 0x00d0: 00000000 00000000 00000000 00000000 |................|
14:38:45.491383 335882.7 0x00e0: 00000000 00000000 00000000 00000000 |................|
14:38:45.491383 335882.7 0x00f0: 74657374 36346220 20202020 03323036 |test64b .206|
14:38:45.491383 335882.7 0x0100: 00000000 00000000 00000000 00000000 |................|
14:38:45.491383 335882.7 0x0110: 00000000 00000000 00000006 20202020 |............ |
14:38:45.491383 335882.7 0x0120: 20202020 20202020 20202020 20202020 | |
14:38:45.491383 335882.7 0x0130: 20202020 20202020 20202020 00000006 | ....|
14:38:45.491383 335882.7 0x0140: 616d7173 70757430 00202020 20202020 |amqsput0. |
14:38:45.491383 335882.7 0x0150: 20202020 20202020 20202020 32303038 | 2008|
14:38:45.491383 335882.7 0x0160: 31303237 30363338 34353439 20202020 |102706384549 |
14:38:45.491383 335882.7 0x0170: 504d4f20 00000001 00000000 ffffffff |PMO ............|
14:38:45.491383 335882.7 0x0180: 00000000 00000001 00000000 00000000 |................|
14:38:45.491383 335882.7 0x0190: 4f4d4e49 3336302e 44455351 20202020 |OMNI360.DESQ |
14:38:45.491383 335882.7 0x01a0: 20202020 20202020 20202020 20202020 | |
14:38:45.491383 335882.7 0x01b0: 20202020 20202020 20202020 20202020 | |
14:38:45.491383 335882.7 0x01c0: 6f6d6e69 5f746573 74363462 2e717565 |omni_test64b.que|
14:38:45.491383 335882.7 0x01d0: 75652e6d 616e6167 65722020 20202020 |ue.manager |
14:38:45.491383 335882.7 0x01e0: 20202020 20202020 20202020 20202020 | |
14:38:45.491383 335882.7 0x01f0: 00000005 |.... |
14:38:45.491387 335882.8 -----------{ aqhGetMessage
14:38:45.491397 335882.8 ------------{ aqhLocateMessage
14:38:45.491406 335882.8 -------------{ aqhCheckMsgChains
14:38:45.491414 335882.8 --------------{ aqtIdxToSpcFn
14:38:45.491421 335882.8 --------------} aqtIdxToSpcFn rc=OK
14:38:45.491430 335882.8 -------------} aqhCheckMsgChains rc=OK
14:38:45.491437 335882.8 ------------} aqhLocateMessage rc=OK
14:38:45.491445 335882.8 ------------{ aqqReadMsg
14:38:45.491452 335882.8 -------------{ aqpReadData
14:38:45.491460 335882.8 -------------} aqpReadData rc=OK
14:38:45.491469 335882.8 ------------} aqqReadMsg rc=OK
14:38:45.491478 335882.8 ------------{ kpiTickle
14:38:45.491485 335882.8 ------------} kpiTickle rc=OK
14:38:45.491492 335882.8 -----------}! aqhGetMessage rc=arcW_TRUNCATED_MSG_FAILED
14:38:45.491498 335882.8 -----------{ aqsRecoverQOp
14:38:45.491506 335882.8 -----------} aqsRecoverQOp rc=OK
14:38:45.491513 335882.8 ----------}! aqmGetMessage rc=arcW_TRUNCATED_MSG_FAILED
14:38:45.491520 335882.8 ---------}! apiGetMessage rc=arcW_TRUNCATED_MSG_FAILED
14:38:45.491527 335882.8 ---------{ apiUnlockExclusive
14:38:45.491534 335882.8 ----------{ xcsReleaseMutexSem
14:38:45.491542 335882.8 ----------} xcsReleaseMutexSem rc=OK
14:38:45.491548 335882.8 ---------} apiUnlockExclusive rc=OK
14:38:45.491556 335882.8 --------}! kqiWaitForMessage rc=arcW_TRUNCATED_MSG_FAILED
14:38:45.491565 335882.8 --------{ xcsQueryMTimeFn
14:38:45.491571 335882.8 --------} xcsQueryMTimeFn rc=OK
14:38:45.491579 335882.8 --------{ kqiReplaceInheritCCSID
14:38:45.491586 335882.8 --------} kqiReplaceInheritCCSID rc=OK
14:38:45.491593 335882.8 --------{ kqiErrorEvent
14:38:45.491600 335882.8 --------} kqiErrorEvent rc=OK
14:38:45.491608 335882.8 --------{ atmCompleteOp
14:38:45.491615 335882.8 --------}! atmCompleteOp rc=lrcW_OWNER_NOT_SET
14:38:45.491656 335882.8 Returning an error to the AI Layer: CompCode 1 Reason 820 MQRC_TRUNCATED_MSG_FAILED
14:38:45.491664 335882.8 -------} kpiMQGET rc=OK
14:38:45.491671 335882.8 ------}! zsqMQGET rc=MQRC_TRUNCATED_MSG_FAILED
14:38:45.491679 335882.8 -----}! zifMQGET rc=MQRC_TRUNCATED_MSG_FAILED
14:38:45.491690 335882.8 Empty(TRUE) Inherited(FALSE) QTime(0)
14:38:45.491698 335882.8 __________
14:38:45.491705 335882.8 MQGET <<
14:38:45.491712 335882.8 Hconn : Input Parm
14:38:45.491719 335882.8 Hconn:
14:38:45.491726 335882.8 0x0000: 00000002 |.... |
14:38:45.491733 335882.8 Hobj : Input Parm
14:38:45.491740 335882.8 Hobj:
14:38:45.491747 335882.8 0x0000: 00000002 |.... |
14:38:45.491754 335882.8 Msgdesc:
14:38:45.491761 335882.8 0x0000: 4d442020 00000002 00000000 00000008 |MD ............|
14:38:45.491761 335882.8 0x0010: ffffffff 00000000 00000111 00000333 |...............3|
14:38:45.491761 335882.8 0x0020: 4d515354 52202020 00000000 00000000 |MQSTR ........|
14:38:45.491761 335882.8 0x0030: 414d5120 6f6d6e69 5f746573 74363462 |AMQ omni_test64b|
14:38:45.491761 335882.8 0x0040: 49056033 20000a05 00000000 00000000 |I.`3 . .........|
14:38:45.491761 335882.8 0x0050: 00000000 00000000 00000000 00000000 |................|
14:38:45.491761 335882.8 0x0060: 00000000 20202020 20202020 20202020 |.... |
14:38:45.491761 335882.8 0x0070: 20202020 20202020 20202020 20202020 | |
14:38:45.491761 335882.8 0x0080: 20202020 20202020 20202020 20202020 | |
14:38:45.491761 335882.8 0x0090: 20202020 6f6d6e69 5f746573 74363462 | omni_test64b|
14:38:45.491761 335882.8 0x00a0: 2e717565 75652e6d 616e6167 65722020 |.queue.manager |
14:38:45.491761 335882.8 0x00b0: 20202020 20202020 20202020 20202020 | |
14:38:45.491761 335882.8 0x00c0: 20202020 74657374 36346220 20202020 | test64b |
14:38:45.491761 335882.8 0x00d0: 03323036 00000000 00000000 00000000 |.206............|
14:38:45.491761 335882.8 0x00e0: 00000000 00000000 00000000 00000006 |................|
14:38:45.491761 335882.8 0x00f0: 20202020 20202020 20202020 20202020 | |
14:38:45.491761 335882.8 0x0100: 20202020 20202020 20202020 20202020 | |
14:38:45.491761 335882.8 0x0110: 00000006 616d7173 70757430 00202020 |....amqsput0. |
14:38:45.491761 335882.8 0x0120: 20202020 20202020 20202020 20202020 | |
14:38:45.491761 335882.8 0x0130: 32303038 31303237 30363338 34353439 |2008102706384549|
14:38:45.491761 335882.8 0x0140: 20202020 00000000 00000000 00000000 | ............|
14:38:45.491761 335882.8 0x0150: 00000000 00000000 00000000 00000001 |................|
14:38:45.491761 335882.8 0x0160: 00000000 00000000 ffffffff |............ |
14:38:45.491768 335882.8 Getmsgopts:
14:38:45.491775 335882.8 0x0000: 474d4f20 00000001 00004001 0000ea60 |GMO ......@....`|
14:38:45.491775 335882.8 0x0010: 00000000 00000000 4f4d4e49 3336302e |........OMNI360.|
14:38:45.491775 335882.8 0x0020: 44455351 20202020 20202020 20202020 |DESQ |
14:38:45.491775 335882.8 0x0030: 20202020 20202020 20202020 20202020 | |
14:38:45.491775 335882.8 0x0040: 20202020 20202020 00000003 20202020 | .... |
14:38:45.491775 335882.8 0x0050: 00000000 00000000 00000000 00000000 |................|
14:38:45.491775 335882.8 0x0060: ffffffff |.... |
14:38:45.491782 335882.8 Bufferlength:
14:38:45.491789 335882.8 0x0000: 00000000 |.... |
14:38:45.491796 335882.8 Datalength:
14:38:45.491803 335882.8 0x0000: 00000005 |.... |
14:38:45.491810 335882.8 Compcode:
14:38:45.491817 335882.8 0x0000: 00000001 |.... |
14:38:45.491824 335882.8 Reason:
14:38:45.491830 335882.8 0x0000: 00000820 |... |
14:38:45.491839 335882.8 MQI:MQGET HConn=00000002 HObj=00000002 DataLen=00000005 rc=00000820
14:38:45.491847 335882.8 ----}! zstMQGET rc=MQRC_TRUNCATED_MSG_FAILED
14:38:45.491854 335882.8 ---}! MQGET rc=MQRC_TRUNCATED_MSG_FAILED
Back to top
View user's profile Send private message
bower5932
PostPosted: Mon Oct 27, 2008 12:03 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

If I'm reading this right:
Quote:

14:38:45.491782 335882.8 Bufferlength:
14:38:45.491789 335882.8 0x0000: 00000000 |.... |
14:38:45.491796 335882.8 Datalength:
14:38:45.491803 335882.8 0x0000: 00000005 |.... |

It looks like you've passed in a buffer of zero length?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
liquidchen
PostPosted: Mon Oct 27, 2008 5:41 pm    Post subject: Reply with quote

Novice

Joined: 30 Mar 2006
Posts: 21

I think that's why I cant understand, because I can make sure the buflen is not zero... I print the buflen before MQGET and after MQGET, it shows
like below and watch the red word...
================================
Sample AMQSGET0 start
before MQGET buflen[2047]
after MQGET buflen[2047]
message <1234>
before MQGET buflen[2047]
after MQGET buflen[2047]
message <test1>
before MQGET buflen[2047]
after MQGET buflen[2047]
MQGET ended with reason code 2080

Sample AMQSGET0 end
Back to top
View user's profile Send private message
liquidchen
PostPosted: Tue Oct 28, 2008 5:11 am    Post subject: Reply with quote

Novice

Joined: 30 Mar 2006
Posts: 21

Finally I found that this problem will happen on MQ 6.0.2.3 - 6.0.2.5, but when I run it on 6.0.2.0, this problem will not happen any more...
Back to top
View user's profile Send private message
liquidchen
PostPosted: Tue Oct 28, 2008 5:16 am    Post subject: Reply with quote

Novice

Joined: 30 Mar 2006
Posts: 21

Forgot to say that I found this problem on AIX, but linux seems ok, I only test these two platforms...
Back to top
View user's profile Send private message
zboy
PostPosted: Tue Oct 28, 2008 11:04 am    Post subject: Reply with quote

Novice

Joined: 01 Oct 2008
Posts: 13

Quote:
Finally I found that this problem will happen on MQ 6.0.2.3 - 6.0.2.5, but when I run it on 6.0.2.0, this problem will not happen any more...


rubbish

this is an app programming error pure and simple

go and fix it....
Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Oct 28, 2008 12:11 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I'd suggest that you look into dumping the DataLength as well as the BufferLength. After the MQGET, the DataLength is the length of the data in the message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
liquidchen
PostPosted: Tue Oct 28, 2008 6:56 pm    Post subject: Reply with quote

Novice

Joined: 30 Mar 2006
Posts: 21

it look likes normal... but still show me 2080 rc

Sample AMQSGET0 start
before MQGET buflen[2047]
after MQGET buflen[2047]
after MQGET messlen[6]
message <hahaha>
before MQGET buflen[2047]
after MQGET buflen[2047]
after MQGET messlen[5]
MQGET ended with reason code 2080
Sample AMQSGET0 end
Back to top
View user's profile Send private message
HubertKleinmanns
PostPosted: Tue Oct 28, 2008 11:58 pm    Post subject: Reply with quote

Shaman

Joined: 24 Feb 2004
Posts: 732
Location: Germany

In "C" the buffer must be one byte more than the data - that's the reason, why bufflen is 2047, not 2048.

You said, you only changed the "buffer" size. Did you add the printouts directly before and after the MQGET?

Then your output looks fine.

One question: Did you compile the sample program with the correct MQ version?
_________________
Regards
Hubert
Back to top
View user's profile Send private message Visit poster's website
liquidchen
PostPosted: Sun Nov 02, 2008 6:16 pm    Post subject: Reply with quote

Novice

Joined: 30 Mar 2006
Posts: 21

Because the sample code write
buflen = sizeof(buffer) - 1;
and I set the buffer to 2048 byte, that's why it show
2047, and I recompile this two program (amqsget0.c amqsput0.c) every time when I switch the MQ Version,
I already report this problem to IBM lab and wait their response now... Thanks a lot
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » strange MQ RC 2080 happen
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.