|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
parsing error with repeating fields |
« View previous topic :: View next topic » |
Author |
Message
|
ronq |
Posted: Sat Apr 12, 2003 8:47 am Post subject: parsing error with repeating fields |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|