Author |
Message
|
AGS |
Posted: Wed Feb 23, 2005 1:00 am Post subject: Error in MQPUT with MQMDE |
|
|
Newbie
Joined: 11 Jan 2005 Posts: 4
|
Hi, i`m trying do a MQPUT with MQMDE and it fails, the error is 2248.
I use this parameters:
MQMD fields:
Version:MDMQ_VERSION_1
CodedCharasetId : MQCCSI_Q_MGR
Format : MQFMT_MD_EXTENSION
Persistence : MQPER_PERSISTENT
ApplIdentiryData : aplicacion
MsgId and CorrelId:1
MQMDE fields:
Format : MQFMT_STRING
Group : 1
MsgSecNumber: 1
MsgFlags: MQMF_LAST_IN_GROUP (ultimo mensaje del grupo)
Anybody can help me.Thanks |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed Feb 23, 2005 5:33 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Quote: |
Reason Code 2248 x'8C8'
MQRC_MDE_ERROR
* The Version field is less than MQMDE_VERSION_2. |
You have
Quote: |
MQMD fields:
Version:MDMQ_VERSION_1
|
Where are you setting the MQMDE version? |
|
Back to top |
|
 |
EddieA |
Posted: Wed Feb 23, 2005 10:17 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
MsgSecNumber: 1
MsgFlags: MQMF_LAST_IN_GROUP (ultimo mensaje del grupo) |
Why do you need an MDE. You are writing a Group that consists of 1 message.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
AGS |
Posted: Thu Feb 24, 2005 3:00 am Post subject: |
|
|
Newbie
Joined: 11 Jan 2005 Posts: 4
|
Hi,
i use an unique message like a test, really i don´t know how many message i put.
I put version-2 in MQMDE |
|
Back to top |
|
 |
EddieA |
Posted: Thu Feb 24, 2005 7:55 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
An MQPUT or MQPUT1 call was issued, but the message data contains an MQMDE structure that is not valid. Possible errors include the following:
The StrucId field is not MQMDE_STRUC_ID.
The Version field is not MQMDE_VERSION_2.
The StrucLength field is not MQMDE_LENGTH_2.
The CodedCharSetId field is zero, or a negative value that is not valid.
The BufferLength parameter of the call has a value that is too small to accommodate the structure (the structure extends beyond the end of the message). |
Perhaps the default for one of the fields is not valid. Try setting some of the other fields in the structure as well.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
kirani |
Posted: Sat Feb 26, 2005 4:09 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
What is your MQ version and on which platform? _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
AGS |
Posted: Thu Mar 03, 2005 5:18 am Post subject: |
|
|
Newbie
Joined: 11 Jan 2005 Posts: 4
|
Hi,
i saw the errors on the manual and and review the default values in all fields and StructId was STRING, version is 2, StructLength was MQMDE_LENGTH_2, CodedCharSetId was MQCCSI-Q-MGR and Buffer Length was 150. We test with all values.
We work with an iSeries and Mq v5.2. |
|
Back to top |
|
 |
|