ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » problem with choice in CWF

Post new topic  Reply to topic
 problem with choice in CWF « View previous topic :: View next topic » 
Author Message
barbara812
PostPosted: Wed Mar 19, 2003 8:47 am    Post subject: problem with choice in CWF Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Wed Mar 19, 2003 9:12 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
barbara812
PostPosted: Wed Mar 19, 2003 11:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » problem with choice in CWF
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.