[QFJ-426] Message header will not validate when containing 'Hop' group Created: 28/Mar/09  Updated: 15/Nov/12  Resolved: 06/Apr/10

Status: Closed
Project: QuickFIX/J
Component/s: Engine
Affects Version/s: 1.3.3
Fix Version/s: 1.5.0

Type: Bug Priority: Default
Reporter: Tommy Hannon Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Environment:

Solaris 8-10, Java 1.6.0_11



 Description   

Our application started generating the following error after upgrading from QFJ 1.3.1 to 1.3.3

27 Mar 2009 15:24:04,115: FIX.4.4:MyComp->TheirComp: Error during message processing
java.lang.NullPointerException
at quickfix.DataDictionary.iterate(DataDictionary.java:609)
at quickfix.DataDictionary.validate(DataDictionary.java:579)
at quickfix.DataDictionary.validate(DataDictionary.java:545)
at quickfix.Session.next(Session.java:716)
at quickfix.mina.ThreadPerSessionEventHandlingStrategy$MessageDispatchingThread.run(ThreadPerSessionEventHandlingStrategy.java:75)

I have compared the DataDictionary.java source code and discovered the following snippet has been added to the iterate()...

for (List<Group> groups : map.getGroups().values()) {
for (Group group : groups)

{ iterate(group, msgType, dd.getGroup(msgType, group.getFieldTag()).getDataDictionary()); }

}

The exception apparently occurred when recursively calling the iterate method; I assume because 'dd.getGroup(...) is returning null.

Based upon the stack trace, the header was being processed. The only group in the header is for the 'Hop' component. The error does not occur when the 'Hop' group is omitted.



 Comments   
Comment by Gustavo Jacob [ 01/Jul/09 ]

I'm having thesame issue.

Did someone found a soution for it?

Comment by Tommy Hannon [ 01/Jul/09 ]

No, I never got a reply. It may have been fixed in QFJ 1.4.0, but I have not checked myself.

Generated at Sat Nov 23 11:27:29 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.