Author |
Message
|
gh |
Posted: Wed Aug 23, 2006 12:57 am Post subject: Error 2010 |
|
|
Novice
Joined: 12 Aug 2006 Posts: 14 Location: eq
|
Hi All,
I'm getting 2010 Error in my VB.NET application while executing get method of Queue object, the data length of message is 4404710.
Maximum message length of Queue and Server connection channel is 99999999.
I'm using amqmdnet.dll in my application.
My application is running on system with MQ Client v6.0.
Plz tell me should I need to do something in my code to increase maximum message length and how can I do this ?
Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 23, 2006 1:03 am Post subject: Re: Error 2010 |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
gh wrote: |
Plz tell me should I need to do something in my code to increase maximum message length and how can I do this ?
|
If you look up 2010, it's not a problem with the length of the data (these are 2079 & 2080 IIRC) it's a problem with the parameter in your call. Check it's defined correctly, initialised properly, etc, etc. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
gh |
Posted: Wed Aug 23, 2006 1:10 am Post subject: Error 2010 |
|
|
Novice
Joined: 12 Aug 2006 Posts: 14 Location: eq
|
2010 stands for MQRC_DATA_LENGTH_ERROR
I'm not getting this error for short messages. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 23, 2006 1:16 am Post subject: Re: Error 2010 |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
gh wrote: |
2010 stands for MQRC_DATA_LENGTH_ERROR
I'm not getting this error for short messages. |
Okay - I stand to be corrected. From the manual:
Code: |
MQRC_DATA_LENGTH_ERROR (2010, X’7DA’) Data length parameter not valid. |
Code: |
MQRC_TRUNCATED_MSG_ACCEPTED (2079, X’81F’) Truncated message returned (processing completed). |
Code: |
MQRC_TRUNCATED_MSG_FAILED (2080, X’820’) Truncated message returned (processing not completed). |
(The mqrc thing just doesn't tell the whole story)
Now my interpretation of this is that if the length has wrong you'd have got a 2079 or 2080 depending on the get message options as the message was truncated. I believed that the 2010 referred to a problem with the parameter definition or usage.
Still, can't be right all the time & I'm VB6 not .NET - oh well  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Aug 23, 2006 1:41 am Post subject: Re: Error 2010 |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
gh wrote: |
Maximum message length of Queue and Server connection channel is 99999999. |
The maximum value these fields can hold is 104857600. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
wschutz |
Posted: Wed Aug 23, 2006 1:45 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
This reason can also be returned to an MQ client program on the MQGET, MQPUT, or MQPUT1 call, if the BufferLength parameter exceeds the maximum message size that was negotiated for the client channel. |
Maybe the svrconn end of the channel is > 4meg, but I'd bet the clntconn end isn't...a quick look at the .net user's manual seems to indicate you can't set the maxmsgl on the clntconn end of the channel....so, 4M might be the max you can move .... _________________ -wayne |
|
Back to top |
|
 |
gh |
Posted: Wed Aug 23, 2006 1:56 am Post subject: error 2010 |
|
|
Novice
Joined: 12 Aug 2006 Posts: 14 Location: eq
|
Yes, these are my server's setting max msg length is set 99999999 but i'm still getting error while running get on message with the data length 4404710.
Plz suugest me how can I solve this problem  |
|
Back to top |
|
 |
tleichen |
Posted: Thu Aug 24, 2006 7:35 am Post subject: |
|
|
Yatiri
Joined: 11 Apr 2005 Posts: 663 Location: Center of the USA
|
Make sure that the parameter is being passed correctly, and that it is of proper type.  _________________ IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer |
|
Back to top |
|
 |
wschutz |
Posted: Thu Aug 24, 2006 9:16 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
I think that 4 meg (4*1024*1024) is the maximum message you can get (or put) using the .net client .....
(based on the fact that there doesn't appear to be any field that you can set in the interface to set the client channel end of maxmsgl).... _________________ -wayne |
|
Back to top |
|
 |
|