Author |
Message
|
ranjan1247 |
Posted: Tue Dec 02, 2014 6:48 pm Post subject: MQRC 2080 |
|
|
Novice
Joined: 17 Feb 2014 Posts: 20
|
Well I got a message in DLQ while browsing the message from the queue it is throwing 2080 error. I know what 2080 means i.e the size of message that application is putting to queue is too large than buffer size.
In order to process the message from dlq what action should be taken?
if your suggestion is increase the buffer then how? |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Dec 02, 2014 9:17 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
Search for dead-letter queue handler supplied application. _________________ 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 |
|
 |
JosephGramig |
Posted: Wed Dec 03, 2014 6:11 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
And when you read this, what conclusions did you reach?
That your application could allocate a new buffer of the size returned and try the MQGET again?
I have to assume this error is coming from the application you are using to read the DLQ, right?
What tool is that? RfhUtil or RfhUtilC or qload or what? |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Dec 03, 2014 6:59 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
Browsing the DLQ with what application? MQExplorer? Something else?
How big (length) is the message supposed to be? How big is it in the queue?
If runmqdlq gets the same 2080, then modify the supplied source-code MQ_INSTALLATION_PATH\tools\c\samples\dlq to make the buffer larger. _________________ 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 |
|
 |
ranjan1247 |
Posted: Thu Dec 04, 2014 7:59 pm Post subject: |
|
|
Novice
Joined: 17 Feb 2014 Posts: 20
|
Its a AIX server and dont have MQ explorer.For browsing i have not used any tool just used the sample program amqsbcg. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Dec 04, 2014 10:02 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
ranjan1247 wrote: |
Its a AIX server and dont have MQ explorer.For browsing i have not used any tool just used the sample program amqsbcg. |
You could install the MQExplorer on Windows or Linux, and use it to remotely connect to AIX, and then browse the DLQ. You can change MQExplorer message browsing preferences to see more of the message than amqsbcg displays for you. _________________ 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 |
|
 |
mqjeff |
Posted: Fri Dec 05, 2014 5:41 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
bruce2359 wrote: |
You can change MQExplorer message browsing preferences to see more of the message than amqsbcg displays for you. |
Okay.
I'm interested.
What part of the message doesn't amqsbcg show you? |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Dec 05, 2014 7:03 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
It's been quite some time since I looked at the source-code for amqsget, amqsbcg, and the other MQGET utilities. If memory serves, the buffer size was 100 bytes; so, if your message is longer than 100 bytes, you would receive the 2080 reason code.
Source-code is provided in the MQ installation. Expand the buffer, and recompile. _________________ 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 |
|
 |
smdavies99 |
Posted: Fri Dec 05, 2014 7:17 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Code: |
MQBYTE buffer[65536];
|
This is on V7.0.1.8 in windows. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Dec 05, 2014 7:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bruce2359 wrote: |
It's been quite some time since I looked at the source-code for amqsget, amqsbcg, and the other MQGET utilities. If memory serves, the buffer size was 100 bytes |
That's amqsget - amqsbcg streams everything _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Dec 05, 2014 7:28 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor wrote: |
bruce2359 wrote: |
It's been quite some time since I looked at the source-code for amqsget, amqsbcg, and the other MQGET utilities. If memory serves, the buffer size was 100 bytes |
That's amqsget - amqsbcg streams everything |
Well, no. amqsbcg0.c shows the same buffer size. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Dec 05, 2014 7:29 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
Vitor wrote: |
bruce2359 wrote: |
It's been quite some time since I looked at the source-code for amqsget, amqsbcg, and the other MQGET utilities. If memory serves, the buffer size was 100 bytes |
That's amqsget - amqsbcg streams everything |
Well, no. amqsbcg0.c shows the same buffer size. |
Really?
Bugger. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Dec 05, 2014 9:16 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
From source of amqsbcg0.c:
Code: |
define BUFFERLENGTH 65535 /* Max length of message accepted */ |
Must be a big message... _________________ 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 |
|
 |
tczielke |
Posted: Fri Dec 05, 2014 9:42 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
Also, later versions of amqsbcg0.c set the MQGMO_ACCEPT_TRUNCATED_MSG GMO option so that larger than 64 K messages are just accepted with the truncation.
Code: |
/* Accept but truncate the data received for messages */
/* larger than the 64K buffer */
GetMsgOpts.Options += MQGMO_ACCEPT_TRUNCATED_MSG ; |
|
|
Back to top |
|
 |
|