|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
problem with choice in CWF |
« View previous topic :: View next topic » |
Author |
Message
|
barbara812 |
Posted: Wed Mar 19, 2003 8:47 am Post subject: problem with choice in CWF |
|
|
Newbie
Joined: 09 Jan 2003 Posts: 6 Location: Germany
|
I try to process a MRM message, which contains a CWF compound type of choice.
I'm on Win2K with CSD03.
The Message has the following structure:
EL_1 (4 Byte CHAR) - which determines what follows
CH_1 (3 Byte CHAR) or CH_2 (2 Byte CHAR) or nothing.
In MRM it is defined as
EL_1 STRING (4)
CHOICE_Elem Compound Type Choice, Type Content Closed
CH_1 STRING (3), no min or max occurs
CH_2 STRING (2), no min or max occurs
When I reference the first element in a compute node by
"InputBody"."CHOICE_Elem"."CH_1"
everything is fine; when I try to reference the second element by
"InputBody"."CHOICE_Elem"."CH_2"
I get an error message in the usertrace
2003-03-19 17:33:36.139999 726 ParserException BIP5171E: Custom Wire Format parsing error
An error occurred while parsing a Custom Wire Format message.
Current message : 'TEST_MSG'
Current element : 'CHOICE_Elem'
Path from message root : '/TEST_MSG'
Offset from start of message : 4
See following errors for more details.
2003-03-19 17:33:36.139999 726 ParserException BIP5181E: Custom Wire Format error. Message bitstream smaller than expected.
Current element '0'.
The bitstream is smaller than expected for a CWF message of this message type.
I've struggled with this problem quite some time, but cannot find the reason.
Any ideas?
Thanks,
Barbara |
|
Back to top |
|
 |
kirani |
Posted: Wed Mar 19, 2003 9:12 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Because CH_1 and CH_2 are of different lengths you are getting this error. Your length of REDEFINES should be same. I am sure the error will go away when you change the length of CH_2 element to 3 bytes. _________________ 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 |
|
 |
barbara812 |
Posted: Wed Mar 19, 2003 11:42 pm Post subject: |
|
|
Newbie
Joined: 09 Jan 2003 Posts: 6 Location: Germany
|
That's it!
With the same length it works. (And I now understand, that if I have different length, I have to define multipart messages.)
Thanks a lot Kiran!
Barbara |
|
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
|
|
|
|