[QFJ-353] Getting "<field> does not have a 'required' attribute when creating FIX Session Created: 03/Oct/08  Updated: 15/Nov/12  Resolved: 04/Oct/08

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

Type: Other Priority: Default
Reporter: Herman Hung Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Environment:

Red Hat Linux, FIX 4.2


Attachments: XML File FIX42Cboe.xml     File settings.ini    

 Description   

Hi,

Whenever I try to create a session using QuickFix/J, I am receiving an error of <field> does not have a 'required' attribute. Please advise on what this means.

Thanks,
hhung



 Comments   
Comment by Herman Hung [ 03/Oct/08 ]

DataDictionary attached.

Comment by Toli Kuznets [ 03/Oct/08 ]

Herman,
Can you post the entire error message here? And the stack trace? It's very likely that you are missing some Session configuration parameters that are required.
See configuration descriptor for possible parameters.

You need to have the BeginString, HeartBtInt, StartTime and EndTime specified, along with ConnectionType

Comment by Herman Hung [ 03/Oct/08 ]

This is the error that I'm seeing:

quickfix.ConfigError: FIX42Cboe.xml: <field> does not have a 'required' attribute

at quickfix.DataDictionary.read(DataDictionary.java:788)

at quickfix.DataDictionary.<init>(DataDictionary.java:98)

at quickfix.DefaultSessionFactory.create(DefaultSessionFactory.java:93)

at quickfix.mina.SessionConnector.createSession(SessionConnector.java:114)

at quickfix.mina.initiator.AbstractSocketInitiator.createSessions(AbstractSocketInitiator.java:130)

at quickfix.mina.initiator.AbstractSocketInitiator.<init>(AbstractSocketInitiator.java:77)

at quickfix.mina.initiator.AbstractSocketInitiator.<init>(AbstractSocketInitiator.java:67)

at quickfix.SocketInitiator.<init>(SocketInitiator.java:47)

at com.bluefirecap.dropportssql.FixSessionCreator.<init>(FixSessionCreator.java:68)

at com.bluefirecap.dropportssql.FixSessionCreator.main(FixSessionCreator.java:122)

Comment by Herman Hung [ 03/Oct/08 ]

Attaching base configuration file.

Comment by Steve Bate [ 03/Oct/08 ]

This error means you don't have an XML attribute called 'required' in an XML 'field' element in the data dictionary XML file.

Comment by Herman Hung [ 04/Oct/08 ]

Hi Steve,

Thank you for your input. However, I cannot seem to find a field tag that is missing a "required" tag in the Data Dictionary.

Regards,
Herman

Comment by Steve Bate [ 04/Oct/08 ]

You misspelled 'required' in the ExecutionReport section..

...
<field name="CxlQty" rqeuired="N" />
...

Comment by Herman Hung [ 04/Oct/08 ]

That seems to have resolved the issue. Gotta love typos. Thanks for your assistance!

Regards,
Herman

Generated at Tue Jul 01 08:14:18 UTC 2025 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.