Re: [Quickfix-developers] Field not found in an admin message.
Brought to you by:
orenmnero
From: Oren M. <ore...@ya...> - 2003-08-18 14:31:55
|
What do you see if you put this code in? MsgType msgType = new MsgType(); message.getHeader().getField( msgType ); System.out.println( "MsgType=" + msgType.getValue() ); And do you also get the same results if you use a MessageCracker? dwi...@jp... wrote: I have the following output: <20030818-13:38:06, FIX.4.0:SERPT->PTNYSESS, incoming> (8=FIX.4.09=5335=034=2549=PTNYSESS56=SERPT52=20030818-13:38:11 10=086) This message is-> 8=FIX.4.09=5335=034=2549=PTNYSESS 52=20030818-13:38:1156=SERPT10=086 org.quickfix.FieldNotFound: 369 This is the corresponding code segment: public void fromAdmin(org.quickfix.Message message, SessionID sessionID) throws FieldNotFound, IncorrectDataFormat, IncorrectTagValue, RejectLogon { try{ SwingUtilities.invokeLater(new doFromAdmin(message, sessionID)); }catch (Exception swingException){ System.out.println(swingException); } } public class doFromAdmin implements Runnable { private org.quickfix.Message message; private SessionID sessionID; public doFromAdmin(org.quickfix.Message message, SessionID sessionID) { this.message = message; System.out.println("This message is-> " + this.message); this.sessionID = sessionID; } public void run() { try { MsgType msgType = new MsgType(); if (message.getHeader().getField(msgType).valueEquals("0")) heartBeat(message, sessionID); if (message.getHeader().getField(msgType).valueEquals("1")) testRequest(message, sessionID); if (message.getHeader().getField(msgType).valueEquals("2")) System.out.println("Resend Request"); if (message.getHeader().getField(msgType).valueEquals("3")) rejectMessage(message, sessionID); if (message.getHeader().getField(msgType).valueEquals("4")) System.out.println("Gap Fill"); if (message.getHeader().getField(msgType).valueEquals("5")) System.out.println("Logout"); if (message.getHeader().getField(msgType).valueEquals("A")) logOn(message, sessionID); }catch (FieldNotFound fnf){ System.out.println( fnf); } } } The heartBeat method never gets invoked even though a valid heartbeat was presented. Any ideas? Thanks Dwight Browne This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software |