Author |
Message |
Topic: MQRC_DATA_LENGTH_ERROR |
adritownsend
Replies: 18 Views: 20752
|
Forum: General IBM MQ Support Posted: Thu May 19, 2011 10:42 pm Subject: MQRC_DATA_LENGTH_ERROR |
Along with all the advice of creating my own svrconn and clientconn this piece of code solved my problem:
import pymqi
import CMQC, CMQXC
queue_manager = "QM01"
channel = "SVRCO ... |
Topic: MQRC_DATA_LENGTH_ERROR |
adritownsend
Replies: 18 Views: 20752
|
Forum: General IBM MQ Support Posted: Mon May 16, 2011 1:12 am Subject: MQRC_DATA_LENGTH_ERROR |
Usefull info thanks. And for the great hint, thanks, don't know what I would have done without you! |
Topic: MQRC_DATA_LENGTH_ERROR |
adritownsend
Replies: 18 Views: 20752
|
Forum: General IBM MQ Support Posted: Mon May 16, 2011 12:35 am Subject: MQRC_DATA_LENGTH_ERROR |
I have found this on another thread:
"When the MQSERVER environment variable is used to define a client channel a maximum message length (MAXMSGL) of 4 MB is used, so larger messages cannot fl ... |
Topic: MQRC_DATA_LENGTH_ERROR |
adritownsend
Replies: 18 Views: 20752
|
Forum: General IBM MQ Support Posted: Mon May 16, 2011 12:12 am Subject: MQRC_DATA_LENGTH_ERROR |
No luck, envirenment variable MQServer =
'SYSTEM.AUTO.SVRCONN/TCP/xxx.xxx.xx.xx(1414)'
Same error
2011-05-16 10:14:33 - DEBUG - Error getting Message from Queue: MQI Error. Comp: 2, Reason 20 ... |
Topic: MQRC_DATA_LENGTH_ERROR |
adritownsend
Replies: 18 Views: 20752
|
Forum: General IBM MQ Support Posted: Sun May 15, 2011 11:07 pm Subject: MQRC_DATA_LENGTH_ERROR |
Thanks a lot for this, will try it out today.
I have made sure, however, that all conns (svrconns and clntconns) are set to 100M, am I right in saying it must be using one of these as it's working ... |
Topic: MQRC_DATA_LENGTH_ERROR |
adritownsend
Replies: 18 Views: 20752
|
Forum: General IBM MQ Support Posted: Fri May 13, 2011 7:49 am Subject: MQRC_DATA_LENGTH_ERROR |
@mqjeff - I don't specify the clntconn anywhere in my application so I guessed it must
be using the default one.
Can I specify from my application which client channel to use?
The code I ... |
Topic: MQRC_DATA_LENGTH_ERROR |
adritownsend
Replies: 18 Views: 20752
|
Forum: General IBM MQ Support Posted: Fri May 13, 2011 7:36 am Subject: MQRC_DATA_LENGTH_ERROR |
Exactly which SVRCONN channel is used by the app? Please DISPLAY and post the maxmsgl for this channel.
SYSTEM.AUTO.SVRCONN maxmsgl = 104857600
Exactly which CLNTCONN channel is used by the app ... |
Topic: MQRC_DATA_LENGTH_ERROR |
adritownsend
Replies: 18 Views: 20752
|
Forum: General IBM MQ Support Posted: Fri May 13, 2011 6:27 am Subject: MQRC_DATA_LENGTH_ERROR |
This is a reasonably new application, it works fine with small messages. Once they get big (i've tested with a 9M file) this occurs. So big messages have never worked, no. |
Topic: MQRC_DATA_LENGTH_ERROR |
adritownsend
Replies: 18 Views: 20752
|
Forum: General IBM MQ Support Posted: Fri May 13, 2011 6:09 am Subject: MQRC_DATA_LENGTH_ERROR |
display channel(*) chltype(clntconn) maxmsgl = 104857600, way bigger than the message or buffer, so this should not be a problem either.
Any other ideas? |
Topic: MQRC_DATA_LENGTH_ERROR |
adritownsend
Replies: 18 Views: 20752
|
Forum: General IBM MQ Support Posted: Fri May 13, 2011 1:41 am Subject: MQRC_DATA_LENGTH_ERROR |
I am using pymqi with python to retrieve messages from WMQ. I'm stuck now with retrieving large messages.
I get a MQRC_DATA_LENGTH_ERROR when the buffer size is set big enough to handle the message ... |