[Quickfix-users] QuickFixJ: Problem with message length calculation when the recei ved message cont
Brought to you by:
orenmnero
From: Parhami, F. <Far...@gs...> - 2006-04-03 20:59:10
|
Using QuickFixJ engine, in the following example, the engine does not know that field '96' contains a set of name value pairs (in this case starting with '10001' and ending with '11277'. I looked at the code and 'calculateLength' method of the 'FieldMap.java' class thinks that '96=10001=Canonical.1.00^A' is one field. So it does not count the terminating SOH at close to the end of message (colored in bold red). Is this a bug? Right now, the engine thinks the length size is one less than expected: 8=FIX.4.2^A9=01158^A35=U6^A34=4^A49=SAGW^A56=N03L43^A52=20060403-20:25:11.63 0^A95=1092^A 96=10001=Canonical.1.00^A10002=001058^A25001=01^A10003=SAPI_ADMRESP^A10004=S UBSCRIBE_RESP^A10009=705^A10012=01^A 10005=SPGW^A10006=SAPI^A10007=0^A10010=16:25:11.537^A10045=SDQADL:01:/SDB/EN T/@/@/STKSDLL:7^A10955=Y^A10963=043^A 10961=03^A11285=N^A11339=823,980^A10919=N^A11111=86795696^A10898=043^A10920= ~^A10938=N^A11340=5- 9.99^A11343=0.20^A 11344=~^A11341=~^A11342=0.15^A11345=10- 14.99^A11348=0.25^A11349=~^A11346=~^A11347=0.15^A11350=15- 19.99^A 11353=0.30^A11354=~^A11351=~^A11352=0.20^A11338=23SEP05^A10981=0^A10485=N^A1 0761=0^A11220=~^A11224=N^A 10808=N^A10921=~^A10960=N^A10957=N^A11329=N^A11286=0^A11214=USA^A10917=Y^A11 288=0^A10906=N^A10737=0.01^A10956=~^A 10967=~^A10965=~^A10809=0^A10762=N^A10763=N^A10712=1^A10905=09:30:00^A10918= YA0101^A10951=Y^A10469=1^A10949=1^A 10487=Q^A10950=Y^A10899=N^A10380=N^A10696=03^A11082=18.41^A10217=12^A10954=N ^A10708=E^A10958=N^A11213=US ^A 11334=N^A11332=N^A11331=N^A11330=N^A11335=N^A11333=N^A10767=3^A10974=~^A1098 0=AIRTRAN HOLDINGS ^A 11289=N^A10912=4^A10915=0501^A10914=0501^A10975=N^A10913=SLK^A10698=055^A106 66=AAI^A10903=S^A11328=N^A10624=L^A 11287=0^A10699=0^A10962=L^A11227=SUB1^A11229=5^A11228=1^A11236=16:24:41.521^ A11277=16:25:11.630^A^A10=141^A 30226 [SocketIoProcessor] ERROR quickfix.mina.initiator.InitiatorProtocolHandler - Invalid message: Actual body length=1157, Expected body length=1158 |