|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Reason code 2010 : MQRC_DATA_LENGTH_ERROR : vbscript,Win-2K |
« View previous topic :: View next topic » |
Author |
Message
|
shogan2003 |
Posted: Fri May 21, 2004 6:26 am Post subject: Reason code 2010 : MQRC_DATA_LENGTH_ERROR : vbscript,Win-2K |
|
|
Centurion
Joined: 03 Jul 2003 Posts: 133 Location: London
|
Details
====
Am running a vbscript program on Win-2K. The program gets a message.
Encounter 2010 MQRC_DATA_LENGTH_ERROR when the message is 8.5 Mb.
Only other size I've used so far is 15 bytes, which was read fine.
An using MQSERVER to define client connection to the server.
SET MQSERVER=SYSTEM.DEF.SVRCONN/TCP/xx.xx.xx.xx
The server channel SYSTEM.DEF.SVRCONN, queue manager and queue all have MAXMSGL=104857600.
I can from other threads that the '2010' problem may be fixed by editing the channel client table, but I (don't think) I'm using that.
Also I have seen mention of a 4Mb limit on Win-2K ?
I can get the same message from the same queue using a Java program on Solaris, so that makes me think it's more of an O/s issue than an MQSeries issue. The Java program uses MQEnvironment values to establish a connection, not $MQSERVER.
Usual pearls of wisdom welcome. Looking forward to your replies ! _________________ MQSI2 certified specialist
MQSeries certified specialist |
|
Back to top |
|
 |
JasonE |
Posted: Fri May 21, 2004 7:44 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
If you use MQSERVER then MQ client builds a dummy CLNTCONN channel, with 4Mb as the max msg size. If you want bigger, you need to use client channel tables or MQCONNX
There is no limit on windows of 4mb
You also need to ensure all of the svrconn, the qmgr AND the queue have a suitable maxmsglen |
|
Back to top |
|
 |
shogan2003 |
Posted: Fri May 21, 2004 8:50 am Post subject: |
|
|
Centurion
Joined: 03 Jul 2003 Posts: 133 Location: London
|
Like I stated in my query, all the other objects are set to maxmsgl=100Mb.
Thankyou for your observation concerning the dummy client connection table. Yet if its default max msg length is 4Mb.We are able to put messages up to 100Mb in size from a Solaris client without resorting to a client connection table.
I append the critical portion of my my vbscript code below. Maybe one of you will immediately spot something amiss. Thanks.
------------------------------------------------------------------------------------
function get_msg()
dim MQSess, qMgr, Queue, mqsession, aqm, pq, gmsg, gmo, strQmgr, strQ, msgGet, msgLen
strQmgr = "DEV.HUB.01"
strQ = "DEV.HUB.ABC.IN"
Set MQSess = CreateObject("MQAX200.MQSession")
Set qMgr = CreateObject("MQAX200.MQQueueManager")
'MQSess = Server.CreateObject("MQAX200.MQQueueManager")
set Queue = qMgr.AccessQueue("DEV.HUB.ABC.IN", 2 , "DEV.HUB.01") ' 2=MQOO_INPUT_SHARED
set msgGet = CreateObject("MQAX200.MQMessage")
'msgGet.MessageId = msgPut.MessageId
set gmo = MQSess.AccessGetMessageOptions()
'gmo.Options = 64 ' 0x400 : MQGMO_ACCEPT_TRUNCATED_MSG'
gmo.Options = 65536 ' 0x10000 : MQGMO_ACCEPT_COMPLETE_MSG'
Queue.Get msgGet
get_msg = msgGet.ReadString(msgGet.MessageLength)
------------------------------------------------------------------------------------- _________________ MQSI2 certified specialist
MQSeries certified specialist |
|
Back to top |
|
 |
shogan2003 |
Posted: Fri May 21, 2004 8:51 am Post subject: |
|
|
Centurion
Joined: 03 Jul 2003 Posts: 133 Location: London
|
OK, as you said, if I use MQSERVER, which I am, then there''ll be a 4MB limit. Hmm, let's see if I can build up the connection within the VBSCript.
Thanks again.
SMH _________________ MQSI2 certified specialist
MQSeries certified specialist |
|
Back to top |
|
 |
shogan2003 |
Posted: Fri May 21, 2004 10:01 am Post subject: |
|
|
Centurion
Joined: 03 Jul 2003 Posts: 133 Location: London
|
Well it seems I cannot avoid MQSERVER. Am attempting to define the client connection tables..not quite there yet...
On the plus side, I found a great site for vbscript-MQSeries settings :
http://www.rgagnon.com/pbdetails/pb-0203.html _________________ MQSI2 certified specialist
MQSeries certified specialist |
|
Back to top |
|
 |
shogan2003 |
Posted: Tue May 25, 2004 7:57 am Post subject: |
|
|
Centurion
Joined: 03 Jul 2003 Posts: 133 Location: London
|
|
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
|
|
|
|