[QFJ-171] MessageFactory cannot create certain groups Created: 01/May/07  Updated: 04/Jul/07  Resolved: 01/Jun/07

Status: Closed
Project: QuickFIX/J
Component/s: Message Generation
Affects Version/s: 1.1.0
Fix Version/s: 1.2.0

Type: Bug Priority: Default
Reporter: Naresh Bhatia Assignee: Steve Bate
Resolution: Fixed Votes: 0
Labels: None
Environment:

Windows


Issue Links:
Relates
is related to QFJ-154 Modify MessageFactory interface to ad... Closed

 Description   

MessageFactory returns a null from the following signature for certain groups:

public Group create(String beginString, String msgType, int correspondingFieldID);

For example,

messageFactory("FIX.4.4", MsgType.ORDER_SINGLE, NoPartyIDs.FIELD);

returns a null.

I think the problem is with the code generation of message factories. For example, the relavant code in quickfix.fix44.MessageFactory does not include a check for NoPartyIDs.FIELD, although this is a group defined for the NewOrderSingle message type.

if("D".equals(msgType)) {
switch(correspondingFieldID)

{ case quickfix.field.NoAllocs.FIELD: return new quickfix.fix44.NewOrderSingle.NoAllocs(); case quickfix.field.NoTradingSessions.FIELD: return new quickfix.fix44.NewOrderSingle.NoTradingSessions(); case quickfix.field.NoUnderlyings.FIELD: return new quickfix.fix44.NewOrderSingle.NoUnderlyings(); }

}

It is possible that this code is not generated because NoPartyIDs is part of the "Parties" component defined within the NewOrderSingle message.



 Comments   
Comment by Steve Bate [ 10/May/07 ]

Toli, have you had any time to look at this issue?

Generated at Sat Nov 23 07:25:02 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.