[Quickfix-developers] Field not found in an admin message.
Brought to you by:
orenmnero
From: <dwi...@jp...> - 2003-08-18 14:24:51
|
I have the following output: <20030818-13:38:06, FIX.4.0:SERPT->PTNYSESS, incoming> (8=3DFIX.4.0=019=3D53=0135=3D0=0134=3D25=0149=3DPTNYSESS=0156=3DSERPT= =0152=3D20030818-13:38:11=01 10=3D086=01) This message is-> 8=3DFIX.4.0=019=3D53=0135=3D0=0134=3D25=0149=3DPTNYSE= SS=01 52=3D20030818-13:38:11=0156=3DSERPT=0110=3D086=01 org.quickfix.FieldNotFound: 369 This is the corresponding code segment: public void fromAdmin(org.quickfix.Message message, SessionID sessio= nID) throws FieldNotFound, IncorrectDataFormat, IncorrectTagValue, RejectLog= on { 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 =3D message; System.out.println("This message is-> " + this.message); this.sessionID =3D sessionID; } public void run() { try { MsgType msgType =3D 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 w= as 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. |