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 » parsing error with repeating fields

Post new topic  Reply to topic
 parsing error with repeating fields « View previous topic :: View next topic » 
Author Message
ronq
PostPosted: Sat Apr 12, 2003 8:47 am    Post subject: parsing error with repeating fields Reply with quote

Newbie

Joined: 03 Apr 2003
Posts: 8

Hi,

i'm using the MRM parser with the TDS physical format (WMQI 2.1, CSD04).
my message consits of repeating lines, delimiter is <CR><LF>.
Code:
line1<CR><LF>
line2<CR><LF>
...


One line consists of max 4 fields, delimiter is the <SP> (space).
Field 1 is a repeating field, delimiter is '/'. One line looks like:

...
field1_1/field1_2/field1_3/field1_4 field2 field3 field4<CR><LF>
...

The definition of messageset (one line) is:
-->ListOfLines, compound type elements variable length with delimiter <CR><LF>
-->line elements variable length with delimiter <SP> (space), repeating delimiter <CR><LF>
-->field1 (repeating field, repeating delimiter is '/')
-->field2
-->field3
-->field4

Field1 is mandatory. The other fields are optional. Usually it works fine.
Same incoming messages don't include the field1_2, field1_3, field1_4 field2, field3 and field4, but the delimiter '/' is included. The message looks like:

...
field1_1/<CR><LF>
...

In this case the parser throws an exeption "Not all the buffer was used when reading message".
I would expect, that the parser creates the logical field field1_2 with value NULL.

If the delimiter '/' is the last character before <CR><LF>, the parser doesn't work.

Has anyone an idea? Can't the parser handle "NULL"-fields?
_________________
RonQ
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 » parsing error with repeating fields
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.