[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: |
![]() ![]() |
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, |
Comments |
Comment by Herman Hung [ 03/Oct/08 ] |
DataDictionary attached. |
Comment by Toli Kuznets [ 03/Oct/08 ] |
Herman, 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, |
Comment by Steve Bate [ 04/Oct/08 ] |
You misspelled 'required' in the ExecutionReport section.. ... |
Comment by Herman Hung [ 04/Oct/08 ] |
That seems to have resolved the issue. Gotta love typos. Thanks for your assistance! Regards, |