Author |
Message
|
mqjava |
Posted: Tue Jun 29, 2010 6:26 am Post subject: Dead Letter queue reason code |
|
|
 Voyager
Joined: 25 May 2009 Posts: 80 Location: New Jersey
|
Hi All,
When i browse the dead letter message through MQ explorer and see the reason code it says - "MQRC_Q_FULL", but when i browse the same dead letter message throuhg amqsbcg i get the below -
00000000: 444C 4820 0100 0000 0508 0000 4150 504C 'DLH ........QUEU'
And when i convert the third word 0508 0000 to decimal i dont get -"2053" which is MQRC_Q_FULL, whats wrong here, why the messages in the dead letter queue doesnt show the correct reason code?
Thanks. |
|
Back to top |
|
 |
exerk |
Posted: Tue Jun 29, 2010 6:49 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Try reading it backwards...  _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Tue Jun 29, 2010 6:52 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Code: |
44 4C 48 20 01 00 00 00--05 08 00 00 54 45 53 54 |DLH ........TEST|
20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
20 20 20 20 20 20 20 20--20 20 20 20 51 4D 31 20 | QM1 |
20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20 | |
20 20 20 20 20 20 20 20--20 20 20 20 22 02 00 00 | "...|
B5 01 00 00 4D 51 53 54--52 20 20 20 0B 00 00 00 |╡...MQSTR ...|
65 62 53 70 68 65 72 65--20 4D 51 5C 62 69 6E 5C |ebSphere MQ\bin\|
61 6D 71 72 6D 70 70 61--2E 65 78 65 32 30 31 30 |amqrmppa.exe2010|
30 36 32 39 31 34 34 34--30 36 39 38 48 45 4C 4C |062914440698HELL|
4F 33 -- |O3 |
|
And in the Dead Letter Header it gives Reason : MQRC_Q_FULL Not the Reason Code. In Data Section it shows what shown above. _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
exerk |
Posted: Tue Jun 29, 2010 6:57 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
shashivarungupta wrote: |
...And in the Dead Letter Header it gives Reason : MQRC_Q_FULL Not the Reason Code... |
Another magnificent statement from you...MQExplorer uses the RC to output the string associated with it. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
mqjava |
Posted: Tue Jun 29, 2010 7:09 am Post subject: |
|
|
 Voyager
Joined: 25 May 2009 Posts: 80 Location: New Jersey
|
exerk wrote: |
Try reading it backwards...  |
0508 0000
convert it backwards - 0000 0805
Now when i convert it to decimal i get 2053 which is queue full.
why is it so?
Thanks. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Tue Jun 29, 2010 7:22 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
exerk wrote: |
shashivarungupta wrote: |
...And in the Dead Letter Header it gives Reason : MQRC_Q_FULL Not the Reason Code... |
Another magnificent statement from you...MQExplorer uses the RC to output the string associated with it. |
 _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jun 29, 2010 7:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjava wrote: |
Now when i convert it to decimal i get 2053 which is queue full.
why is it so? |
If you're asking why the message is in the dead letter queue because the original was full, think about it.
If you're asking why the number is backwards, ask Mr Google about big endian & little endian _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjava |
Posted: Tue Jun 29, 2010 10:38 am Post subject: |
|
|
 Voyager
Joined: 25 May 2009 Posts: 80 Location: New Jersey
|
Thanks Vitor.
If the numbers are not in the proper format / correct order, whats the best way to check the reason codes from dead letter message without using any GUI toold like MQ explorer.
Thanks. |
|
Back to top |
|
 |
exerk |
Posted: Tue Jun 29, 2010 10:49 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
mqjava wrote: |
...If the numbers are not in the proper format / correct order, whats the best way to check the reason codes from dead letter message without using any GUI toold like MQ explorer... |
They are in the "...proper format / correct order...", note what Vitor said in regard to big/little endian!
Once you have 'translated' the hex code to decimal, you can use the MA0K SupportPac to help you with the rest... _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jun 29, 2010 11:00 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
exerk wrote: |
mqjava wrote: |
...If the numbers are not in the proper format / correct order, whats the best way to check the reason codes from dead letter message without using any GUI toold like MQ explorer... |
They are in the "...proper format / correct order...", note what Vitor said in regard to big/little endian! |
To reiterate what both of my illustrious colleagues have said... There is *more than one* "proper format/order". There are two. One is known as "big endian" and the other is known as "little endian".
Sometimes you have to think big and sometimes you have to let the little end do the thinking. |
|
Back to top |
|
 |
mqjava |
Posted: Tue Jun 29, 2010 2:17 pm Post subject: |
|
|
 Voyager
Joined: 25 May 2009 Posts: 80 Location: New Jersey
|
mqjeff wrote: |
exerk wrote: |
mqjava wrote: |
...If the numbers are not in the proper format / correct order, whats the best way to check the reason codes from dead letter message without using any GUI toold like MQ explorer... |
They are in the "...proper format / correct order...", note what Vitor said in regard to big/little endian! |
To reiterate what both of my illustrious colleagues have said... There is *more than one* "proper format/order". There are two. One is known as "big endian" and the other is known as "little endian".
Sometimes you have to think big and sometimes you have to let the little end do the thinking. |
There is *more than one* "proper format/order". There are two.
This cleared my doubts, thanks to all. |
|
Back to top |
|
 |
gbaddeley |
Posted: Wed Jun 30, 2010 4:28 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Big endian = most signifcant byte (Biggest) of an integer comes first
Little endian = Least significant byte of an integer comes first
Little endian is most often encountered on Intel x86 series CPUs. I remember this association because the first 3 letters of "little" are also in the word "Intel".  _________________ Glenn |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Jul 01, 2010 4:53 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
In other words, it's an Intel issue. Intel hardware stores numbers in reverse order.
So, on Windoze, for example, 0508 is really 0805 (hex). Convert 0805 hex to decimal. _________________ 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 |
|
 |
|