|
From: Nenge M. <geo...@gm...> - 2020-06-20 02:20:47
|
Thanks Chris.. On Sat, 20 Jun 2020, 02:01 Christoph John, <chr...@ma...> wrote: > Looking at the stack trace, I think your problem is that you are trying to > crack admin messages (at > tz.go.mtp.ats.ClientApplicationAdapter.fromAdmin(ClientApplicationAdapter.java:68)). > This is not required. > You only need to do this for application messages, i.e. in your fromApp() > callback. > > Cheers, > Chris. > > On 18.06.20 15:36, Nenge Masoya wrote: > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > Hello Devs, > > I am still facing the issues in reading messages returned from other party > (server) which is using FIX.5.0SP2.... this is my errors message from > events logs > > 20200617-14:19:45: Session FIXT.1.1:CLIENT->SERVER schedule is daily, > 00:00:00-UTC - 22:50:00-UTC > 20200617-14:19:45: Created session: FIXT.1.1:CLIENT->SERVER > 20200617-14:19:45: Configured socket addresses for session: > [/"server-address here"] > 20200617-14:19:45: MINA session created: local=/192.168.91.98:39322, > class org.apache.mina.transport.socket.nio.NioSocketSession, > remote=/"server-address here" > 20200617-14:19:46: Initiated logon request > 20200617-14:19:46: Invalid message: Can't determine ApplVerID from message > 8=FIXT.1.1 9=65 35=2 34=1 49=SERVER 52=20200617-14:21:08.234 56=CLIENT 7=1 > 16=0 10=149 > 20200617-14:19:46: Setting DefaultApplVerID (1137=8) from Logon > 20200617-14:19:46: Error during message processing > quickfix.RuntimeError: java.lang.ClassCastException: quickfix.fixt11.Logon > cannot be cast to quickfix.fix50sp2.Message > at quickfix.Session.next(Session.java:1157) > at quickfix.Session.next(Session.java:1204) > at > quickfix.mina.ThreadPerSessionEventHandlingStrategy$MessageDispatchingThread.doRun(ThreadPerSessionEventHandlingStrategy.java:214) > at > quickfix.mina.ThreadPerSessionEventHandlingStrategy$ThreadAdapter.run(ThreadPerSessionEventHandlingStrategy.java:142) > at java.lang.Thread.run(Thread.java:748) > Caused by: java.lang.ClassCastException: quickfix.fixt11.Logon cannot be > cast to quickfix.fix50sp2.Message > at quickfix.fix50sp2.MessageCracker.crack(MessageCracker.java:1446) > at > tz.go.mtp.ats.ClientApplicationAdapter.fromAdmin(ClientApplicationAdapter.java:68) > at quickfix.Session.fromCallback(Session.java:1845) > at quickfix.Session.verify(Session.java:1791) > at quickfix.Session.nextLogon(Session.java:2129) > at quickfix.Session.next(Session.java:1026) > ... 4 more > Cause: quickfix.fixt11.Logon cannot be cast to quickfix.fix50sp2.Message > java.lang.ClassCastException: quickfix.fixt11.Logon cannot be cast to > quickfix.fix50sp2.Message > at quickfix.fix50sp2.MessageCracker.crack(MessageCracker.java:1446) > at > tz.go.mtp.ats.ClientApplicationAdapter.fromAdmin(ClientApplicationAdapter.java:68) > at quickfix.Session.fromCallback(Session.java:1845) > at quickfix.Session.verify(Session.java:1791) > at quickfix.Session.nextLogon(Session.java:2129) > at quickfix.Session.next(Session.java:1026) > at quickfix.Session.next(Session.java:1204) > at > quickfix.mina.ThreadPerSessionEventHandlingStrategy$MessageDispatchingThread.doRun(ThreadPerSessionEventHandlingStrategy.java:214) > at > quickfix.mina.ThreadPerSessionEventHandlingStrategy$ThreadAdapter.run(ThreadPerSessionEventHandlingStrategy.java:142) > at java.lang.Thread.run(Thread.java:748) > > I tried to follow the reference provided here here no success.. > > https://stackoverflow.com/questions/30074850/quickfix-message-cannot-be-cast-to-quickfix-fix50sp2-message > > And this is my log messages > > 8=FIXT.1.1 9=75 35=A 34=2 49=CLIENT 52=20200617-14:19:46.103 56=SERVER > 98=0 108=30 1137=9 10=139 > 8=FIXT.1.1 9=65 35=2 34=1 49=SERVER 52=20200617-14:21:08.234 56=CLIENT 7=1 > 16=0 10=149 > 8=FIXT.1.1 9=112 35=A 34=2 49=SERVER 52=20200617-14:21:08.242 56=CLIENT > 58=Logon Successful. 98=0 108=60 553=STT 554=SERVER 1137=8 10=117 > > > Any one with the help will be appreciated guys... It make me mad for sure! > > Thanks > > Nenge > > > On Tue, Jun 2, 2020 at 6:47 PM Colin DuPlantis <co...@ma...> > wrote: > >> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support: >> http://www.quickfixj.org/support/ >> >> >> What do you mean by "response data"? Do you mean messages returned by the >> other party? If so, those will be received in your Application >> implementation in fromApp. >> On 6/2/20 5:56 AM, Nenge Masoya wrote: >> >> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >> QuickFIX/J Support: http://www.quickfixj.org/support/ >> >> >> Dear team, >> >> I am new with quickfixJ and I Im kindy requesting your help on this, from >> what I see the response of client QuickFixJTemplate when sending message is >> boolean which tells whether the message was successful delivered or not. >> >> For instance, >> >> @Autowired >> private QuickFixJTemplate clientQuickFixJTemplate; >> >> //send message >> >> boolean send = clientQuickFixJTemplate.send(fixMessage, sessionID); >> >> Now, how can I get response data for further implementation? >> >> Thank in advance. >> >> Nenge Masoya >> >> >> _______________________________________________ >> Quickfixj-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/quickfixj-users >> >> -- >> Colin DuPlantis >> Chief Architect, Marketcetera >> Download, Run, Trade >> 888.868.4884https://www.marketcetera.com >> >> _______________________________________________ >> Quickfixj-users mailing list >> Qui...@li... >> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >> > > > _______________________________________________ > 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 > > |