|
From: Steve B. <st...@te...> - 2007-04-13 01:57:31
|
The dictionary is needed to know that the field is of type 'DATA'. The parser treats these fields specially. It looks for the corresponding length field and then extracts the specified number of bytes. If it doesn't know it's a data field it will become confused by embedded field delimiters in the data field content. Take a look at line 652 in Message.java (rev 579). > -----Original Message----- > From: qui...@li... [mailto:quickfixj- > use...@li...] On Behalf Of Toli Kuznets > Sent: Thursday, April 12, 2007 9:51 PM > To: qui...@li... > Subject: Re: [Quickfixj-users] EncodedText field and round- > trippingmessagesthat include other messages > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > Ah! > > I was creating the message without passing a dictionary in: > Message msg = new Message(report.toString()); > while you do this: > Message msg = new Message(report.toString(), > DataDictionaryTest.getDictionary()); > > removing the dictionary causes the test to fail. > > So I guess there's no bug here, I just need to be using a dictionary > to create a message. > > What's the reason that it fails w/out having a dictionary? i tried > tracing through the code, but couldn't see why not having a dictionary > makes it fail. > > Thanks for figuring this out! > > On 4/12/07, Steve Bate <st...@te...> wrote: > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > Have a question for people using Text or EncodedText fields. > > > I need to include one FIX message inside another (for example, i want > > > to include the "offending" message into the reject message to show > > > where the error is, such as missing field). > > > > Hi Toli, > > > > I added an embedded message test to the MessageTest suite in > > the trunk. It embeds a NewOrderSingle in an ExecutionReport > > EncodedText field. I create the ExecutionReport message string > > and then parse it. I am able to retrieve the embedded message > > and parse that. Can you take a look at the test? Maybe I'm > > doing something different than you are, but the test passes. > > > > Text fields with an SOH in them would be a problem. > > > > Steve > > > > > > > > > > ------------------------------------------------------------------------ > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Quickfixj-users mailing list > > Qui...@li... > > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > > > > > -- > Toli Kuznets > http://www.marketcetera.com: Open-Source Trading Platform > download.run.trade. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users |