Author |
Message
|
findingsolution |
Posted: Mon Oct 18, 2010 9:22 am Post subject: parser exception with uneven length of records |
|
|
Novice
Joined: 27 Jul 2010 Posts: 11
|
Hi
I have n number of records with fixed length. But some records might have different length , which the program regards as wrong payload. The format of records is
record 1.... (100)
record2......(100)
........
.......
.............
record k-1 (9
record k (102)
....
record n(100)
When this kind of message passes through broker, Parser generates Exception when it encounters record of length which is not 100(like 98 or 102) . I need parser not to generate exception when record of different length passes through it . Any ideas or help is appreciated. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Oct 18, 2010 9:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Obviously record k-1 and k are not of the same type as records 1 through k-1.
You need to find out how to model records of type k-1 (98 ) and records of type k (102) and have your message model reflect this.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
findingsolution |
Posted: Mon Oct 18, 2010 4:59 pm Post subject: |
|
|
Novice
Joined: 27 Jul 2010 Posts: 11
|
Thanks for the reply. But do I need to change any settings of parser node in web message broker so that exception is not raised ?? Please let me know what settings should be placed in the parser node (resetcontentDescriptor) |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Oct 18, 2010 7:35 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
findingsolution wrote: |
Thanks for the reply. But do I need to change any settings of parser node in web message broker so that exception is not raised ?? Please let me know what settings should be placed in the parser node (resetcontentDescriptor) |
You need to change your message set and model the message correctly.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 19, 2010 3:41 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
ResetContentDescriptor is not a parser node.
There is more than one parser in Message Broker - there are, in fact, LOTS of parsers.
They all work in different ways.
Even if you are using the MRM domain, there is MORE THAN ONE parser.
What settings you have to change to accomodate fixed length records that have differing record lengths depends on WHICH parser you are using. |
|
Back to top |
|
 |
|