|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
We are getting this error MQFB_IIH_ERROR, MQFB_DATA_LENGTH_N |
« View previous topic :: View next topic » |
Author |
Message
|
manihew |
Posted: Fri Jun 11, 2010 10:33 pm Post subject: We are getting this error MQFB_IIH_ERROR, MQFB_DATA_LENGTH_N |
|
|
Newbie
Joined: 11 Jun 2010 Posts: 2
|
Question : Can you please provide me a sample MQ IIH Header + llzztrancodedata ??
This is the Message i am using
IIH 116400MQIMSVS 0 MODU03 MQIMSVS 0000000000000000 0C 150DCV920 test
where the llzztrancodedata = 150DCV920 test
i am getting this error MQFB_DATA_LENGTH_NEGATIVE & MQFB_IIH_ERROR |
|
Back to top |
|
 |
fatherjack |
Posted: Sat Jun 12, 2010 2:13 am Post subject: |
|
|
 Knight
Joined: 14 Apr 2010 Posts: 522 Location: Craggy Island
|
Here's what the IIH should look like
Code: |
MQCHAR4 StrucId; /* Structure identifier */
MQLONG Version; /* Structure version number */
MQLONG StrucLength; /* Length of MQIIH structure */
MQLONG Encoding; /* Reserved */
MQLONG CodedCharSetId; /* Reserved */
MQCHAR8 Format; /* MQ format name of data that follows MQIIH */
MQLONG Flags; /* Flags */
MQCHAR8 LTermOverride; /* Logical terminal override */
MQCHAR8 MFSMapName; /* Message format services map name */
MQCHAR8 ReplyToFormat; /* MQ format name of reply message */
MQCHAR8 Authenticator; /* RACF password or passticket */
MQBYTE16 TranInstanceId; /* Transaction instance identifier */
MQCHAR TranState; /* Transaction state */
MQCHAR CommitMode; /* Commit mode */
MQCHAR SecurityScope; /* Security scope */
MQCHAR Reserved; /* Reserved */
|
_________________ Never let the facts get in the way of a good theory. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Jun 12, 2010 7:19 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
MQIIH is a structure. WMQ structures are documented in the WMQ Application Programming Reference manual. _________________ 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 |
|
 |
gbaddeley |
Posted: Sat Jun 12, 2010 3:00 pm Post subject: Re: We are getting this error MQFB_IIH_ERROR, MQFB_DATA_LENG |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
manihew wrote: |
This is the Message i am using
IIH 116400MQIMSVS 0 MODU03 MQIMSVS 0000000000000000 0C 150DCV920 test |
Its not possible to show us a valid message with an IIH header as a character string because the IIH contains binary data. A hex dump maybe... _________________ Glenn |
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Jun 12, 2010 4:52 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Or, show us the code that creates the IIH. _________________ 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 |
|
 |
manihew |
Posted: Mon Jun 21, 2010 1:42 am Post subject: I am getting this Error : MQFB_DATA_LENGTH_NEGATIVE |
|
|
Newbie
Joined: 11 Jun 2010 Posts: 2
|
I had written a .Net Program for writing a message to MQ --> IMS Bridge
Here is the summary for MQ IIH
/// MQ IIH Header for MQ - IMS Bridge conversation
/// Field Name : StrucId     Value : MQIIH_STRUC_ID Bytes : 4
/// Field Name : Version   Value : MQIIH_VERSION_1 Bytes : 4
/// Field Name : StrucLength  Value : MQIIH_LENGTH_1 Bytes : 4
/// Field Name : Encoding   Value : 0 Bytes : 4
/// Field Name : CodedCharSetId Value : 0 Bytes : 4
/// Field Name : Format    Value : MQFMT_IMS_VAR_STRING Bytes : 8
/// Field Name : Flags     Value : MQIIH_NONE Bytes : 4
/// Field Name : LTermOverride Value : Blanks Bytes : 8
/// Field Name : MFSMapName  Value : Blanks Bytes : 8
/// Field Name : ReplyToFormat Value : MQFMT_IMS_VAR_STRING Bytes : 8
/// Field Name : Authenticator Value : MQIAUT_NONE Bytes : 8
/// Field Name : TranInstanceId Value : MQITII_NONE Bytes : 16
/// Field Name : TranState   Value : MQITS_NOT_IN_CONVERSATION Bytes : 1
/// Field Name : CommitMode  Value : MQICM_COMMIT_THEN_SEND Bytes : 1
/// Field Name : SecurityScope Value : MQISS_CHECK Bytes : 1
/// Field Name : Reserved   Value : Blanks Bytes : 1
/// ------------------------------------------------------------------------------
/// Total Bytes : 84
Data :
LL = 252 (data length) + 4 = 256
ZZ = 0
data = Trancode << Input data >> (total Length : 252)
I saw your previous post on LL should be a binary data. which i did use
in this code
LL in MQ shows (HEX) ( 00 01 )
After writing the message in the Queue, i could see a Dead Letter Queue message for this corresponding message with the error stating Data Length Negative. |
|
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
|
|
|
|