The application printed “Unable to unpack data with TibMsg. Displaying hex.” when the message did not contain both BID and ASK field.
To solve the problem, the application should keep BID and ASK price up-to-date according to messages. It should ignore only messages which does not contain both BID and ASK fields and print proper text e.g. “The message does not contain BID and ASK field, ignore the message.”. “Unable to unpack data with TibMsg. Displaying hex.” should be printed when RFA cannot unpack a message.
Please share the actual 'hex errors' are you are seeing - so we can have some idea of what may be going wrong?
Note that RFA Java 6.4 has not been supported for several years now.
You will note from the RFA SDK download page that the oldest supported version is RFA v7.6 (which is around 4 years old) - but ideally, you should upgrade to v8.x