I'm using the latest quickfix version which is 1.6.0. I already have code which is written against 1.5.3 and what I'm trying to do is upgrade that to 1.6.0
The problem I have is when I use the crack(msg,sessionID) method it throws quickfix.Message cannot be cast to quickfix.fix50sp2.Message
error. I'm sending a correct FIX50SP2 MarketDataSnapshotFullRefresh message from verifix. An extract of the exception is below
java.lang.ClassCastException: quickfix.Message cannot be cast to quickfix.fix50sp2.Message
at quickfix.fix50sp2.MessageCracker.crack(MessageCracker.java:1555)
at com.****.fixserver.FixMessageListener.fromApp(FixMessageListener.java:162)
at quickfix.Session.fromCallback(Session.java:1731)
at quickfix.Session.verify(Session.java:1682)
How can I crack the incoming message to the correct SP2 message?
There is a crack50() method, but that requires a SP2 message which is unavailable in the fromApp callback.