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 » parser exception with uneven length of records

Post new topic  Reply to topic
 parser exception with uneven length of records « View previous topic :: View next topic » 
Author Message
findingsolution
PostPosted: Mon Oct 18, 2010 9:22 am    Post subject: parser exception with uneven length of records Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Oct 18, 2010 9:46 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
findingsolution
PostPosted: Mon Oct 18, 2010 4:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Oct 18, 2010 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Oct 19, 2010 3:41 am    Post subject: Reply with quote

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
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 » parser exception with uneven length of records
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.