[QFJ-842] ClassCastException Created: 30/Apr/15  Updated: 10/Oct/16  Resolved: 10/Oct/16

Status: Closed
Project: QuickFIX/J
Component/s: Engine
Affects Version/s: 1.6.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Dotun Kola-Olaleye Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: 1.6.0, ClassCastException, QuickfixJ, Upgrade
Environment:

Windows Server 2012 64 bit



 Description   

I may be missing something, but I'm having to refactor my code that was written based on QuickFIXJJ-1.5.3. Previously, I would cast incoming quickfix.Message to specific message types e.g. quickfix.fix50.SecurityList or quickfix.fix50.ExecutionReport.

But since I switched jar files to 1.6.0, attempts to cast to message types like quickfix.fix50sp1.SecurityList or quickfix.fix50sp1.ExecutionReport results in a ClassCastException. Now, I'm having to work directly with quickfix.Message.

Any pointer is appreciated.

Dotun.



 Comments   
Comment by Christoph John [ 30/Apr/15 ]

That is not expected. Could you maybe add a simple test case?
When a text FIX message comes in, an instance of the FIX message should get created by your message factory. Are you using a custom factory?

Generated at Tue Apr 30 04:43:12 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.