Details
Description
QuickFIX didn't respond correctly to a ResendRequest from our counterparty.
Normally this is what happens when I have to restart during the day:
XXX = Me
YYY = Counterparty
8=FIX.4.29=5335=A34=720049=XXX52=20060718-08:07:30.23156=YYY10=108
8=FIX.4.29=6635=A34=720149=XXX52=20060718-08:07:30.26156=YYY98=0108=18010=195
8=FIX.4.29=6635=A34=1422549=YYY52=20060718-08:07:29.59656=XXX98=0108=3010=212
8=FIX.4.29=6235=234=720249=XXX52=20060718-08:07:32.13456=YYY7=116=010=222
8=FIX.4.29=7535=134=720349=XXX52=20060718-08:07:32.13456=YYY112=ResendHasFinished10=224
ResendRequest from YYY:
8=FIX.4.29=6635=234=1422649=YYY52=20060718-08:07:29.60056=XXX7=715016=010=182
Correct respons from QuickFIX/J:
8=FIX.4.29=9435=434=715043=Y49=XXX52=20060718-08:07:32.18456=YYY122=20060718-08:07:3236=7204123=Y10=080
8=FIX.4.29=7535=134=720449=XXX52=20060718-08:07:38.14356=YYY112=Test
OS, 10:07:3810=149
8=FIX.4.29=7535=134=720549=XXX52=20060718-08:07:41.14756=YYY112=Test
OS, 10:07:4110=142
Yesterday's scenario:
8=FIX.4.29=6735=A34=3049949=XXX52=20060718-11:29:33.50456=YYY98=0108=18010=004
8=FIX.4.29=6735=A34=6125449=YYY52=20060718-11:29:34.08356=XXX98=0108=18010=000
8=FIX.4.29=6335=234=3050049=XXX52=20060718-11:29:36.72856=YYY7=116=010=023
8=FIX.4.29=7635=134=3050149=XXX52=20060718-11:29:36.73856=YYY112=ResendHasFinished10=026
ResendRequest from YYY:
8=FIX.4.29=6735=234=6125549=YYY52=20060718-11:29:34.08756=XXX7=3049816=010=249
The correct Sequence Reset message is missing from QuickFIX/J...
8=FIX.4.29=7635=134=3050249=XXX52=20060718-11:29:42.75756=YYY112=Test
OS, 13:29:4210=201
8=FIX.4.29=7635=134=3050349=XXX52=20060718-11:29:45.76156=YYY112=Test
OS, 13:29:4510=203
When checking the Event log I found the following:
20060718-11:29:31.220: Session FIX.4.2:XXX->YYY schedule is daily,
00:00:00 UTC - 00:00:00 UTC
20060718-11:29:31.241: Created session: FIX.4.2:XXX->YYY
20060718-11:29:33.554: Initiated logon request
20060718-11:29:36.728: Received logon response
20060718-11:29:36.728: MsgSeqNum too high, expecting 1 but received 61254
20060718-11:29:36.738: Sent ResendRequest FROM: 1 TO: 0
20060718-11:29:36.788: Received ResendRequest FROM: 30498 TO: 0
20060718-11:29:36.819: Error during message processing
java.lang.ClassCastException: quickfix.Message
at quickfix.MessageCracker.crack(MessageCracker.java:48)
at trader.quickfix.QuickFIXApplication.toApp(QuickFIXApplication.java:373)
at quickfix.Session.resend(Session.java:757)
at quickfix.Session.nextResendRequest(Session.java:698)
at quickfix.Session.next(Session.java:585)
at quickfix.mina.ThreadPerSessionEventHandlingStrategy$MessageDispatchingThread.run(ThreadPerSessionEventHandlingStrategy.java:75)