|
From: Christoph J. <chr...@ma...> - 2021-05-23 17:47:03
|
Hi Your understanding about addGroup is correct. To me it looks like it is either not taking the correct dictionary or not your compiled code. Please try to specify an absolute location to the dictionary and see if that changes anything. Cheers Chris Am 23. Mai 2021 19:35:39 MESZ schrieb Ajit Gautam <aji...@gm...>: >Hi Chris, > >Just one update, when I tried adding my custom fields outside the group >in >quote request, it is working fine. >Only when I m adding inside repeating group, it appending at last of >quote >request message structure. > >I changed FIX44 as well as FIX44.modified and then rebuild it. But >issue >still exists. > >One more thing, as I understand from your second point in below mail, I >don't need to set the field as mentioned below: > >NoRelatedSym.setInt(NoRelatedSym.Field,1). >Instead, while adding the group as below: >quoteRequest.addGroup(NoRelatedSym) >Will add the group. >Kindly confirm my understanding. > > >Regards >Ajit Gautam > >On Sun, May 23, 2021, 03:40 Christoph John <chr...@ma...> >wrote: > >> Hi, >> >> first, please do not post screenshots of code. They are not >searchable and >> quite large in size. Rather attach, copy/paste or create a gist on >github. >> >> Other things: >> >> 1. Could you please state which data dictionary *exactly* did you >change >> in the source tree before rebuilding? Please specify the relative >path >> starting from the root directory. >> 2. You do not need to manually set the group count field (in your >case >> NoRelatedSym). This is done automatically when adding groups to the >> QuoteRequest message via addGroup(). You can also see that here: >> >https://www.quickfixj.org/usermanual/2.3.0/usage/repeating_groups.html >> >> Cheers, >> Chris. >> >> >> On 22.05.21 12:20, Ajit Gautam wrote: >> >> Hi, >> >> I am sorry about that. Please find the attachment. >> Please find the below setting : >> >> # default settings for sessions >> [DEFAULT] >> ConnectionType=initiator >> ReconnectInterval=60 >> SenderCompID=XYZ >> UseDataDictionary=Y >> >> # session definition >> [SESSION] >> BeginString=FIX.4.4 >> TargetCompID=ABCD >> StartTime=00:00:00 >> EndTime=00:00:00 >> HeartBtInt=30 >> SocketConnectPort=XXXX >> SocketConnectHost=127.0.0.1 >> DataDictionary=./FIX44.xml >> >> >> Regards >> Ajit >> >> >> On Sat, May 22, 2021, 14:39 Christoph John <chr...@ma...> >> wrote: >> >>> Hi >>> >>> There was no attachment. >>> Could you please paste your settings here? >>> >>> Cheers >>> Chris >>> >>> Am 22. Mai 2021 08:38:15 MESZ schrieb Ajit Gautam < >>> aji...@gm...>: >>>> >>>> Hi, >>>> >>>> Yes, I have rebuild the whole project that I checked out from >GitHub. >>>> I added the changes to dictionary. I have made in both acceptor and >>>> initiator dictionary and build them. >>>> The settings also have UseDataDictionary = Y. >>>> >>>> Note: I have added one custom field in session logon and it is >working >>>> fine >>>> >>>> I have attached file where I have set the field in my code. >>>> >>>> >>>> Regards >>>> >>>> >>>> On Sat, May 22, 2021, 03:44 Christoph John ><chr...@ma...> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> you speak of rebuilding QFJ so I guess you built the whole project >that >>>>> you checked out from github?! >>>>> If yes, to which FIX44 dictionary did you add your changes? There >are >>>>> two dictionaries in >>>>> >https://github.com/quickfix-j/quickfixj/tree/master/quickfixj-messages/quickfixj-messages-fix44/src/main/resources >>>>> but only the FIX44.modified.xml is used for building. It has some >changes >>>>> needed to make the build work. The original FIX44.xml had some >errors but >>>>> we left it as reference since it was generated from the FIX >repository. >>>>> >>>>> When the custom fields are appended at the end of the message that >>>>> usually means that QFJ considers these fields as unknown and >doesn't know >>>>> where to put them. But you have supplied your altered dictionary >as well as >>>>> the rebuilt QFJ to both your initiator and acceptor, right? Do you >have >>>>> UseDataDictionary=Y in your settings? >>>>> >>>>> Cheers, >>>>> Chris. >>>>> >>>>> >>>>> On 21.05.21 18:32, Ajit Gautam wrote: >>>>> >>>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>>>> QuickFIX/J Support: http://www.quickfixj.org/support/ >>>>> >>>>> >>>>> Hi, >>>>> >>>>> I added two custom fields in financing details component of Quote >>>>> request. >>>>> I added these two custom fields in before start date field in >financing >>>>> details component. >>>>> I added the field number as well as added in financing details >>>>> component in FIX 44 XML data dictionary. >>>>> >>>>> After rebuilding, >>>>> While sending data from my FIX Initiator, these two custom fields >are >>>>> appending at the end of my message structure. >>>>> Thus , I m receiving a error- >>>>> "Out of order repeating group members". >>>>> >>>>> I would appreciate if anyone can help me on this. >>>>> >>>>> Regards >>>>> Ajit Gautam >>>>> >>>>> >>>>> _______________________________________________ >>>>> Quickfixj-users mailing >lis...@li...://lists.sourceforge.net/lists/listinfo/quickfixj-users >>>>> >>>>> >>>>> -- >>>>> Christoph John >>>>> Software Engineering >>>>> T +49 241 557...@ma... >>>>> >>>>> MACD GmbH >>>>> Oppenhoffallee 103 >>>>> 52066 Aachen, Germanywww.macd.com >>>>> >>>>> Amtsgericht Aachen: HRB 8151 >>>>> Ust.-Id: DE 813021663 >>>>> Geschäftsführer: George Macdonald >>>>> >>>>> >> -- >> Christoph John >> Software Engineering >> T +49 241 557...@ma... >> >> MACD GmbH >> Oppenhoffallee 103 >> 52066 Aachen, Germanywww.macd.com >> >> Amtsgericht Aachen: HRB 8151 >> Ust.-Id: DE 813021663 >> Geschäftsführer: George Macdonald >> >> |