RE: [Quickfix-developers] Empty Tag 58 in Logout request...
Brought to you by:
orenmnero
|
From: Steve B. <sb...@sm...> - 2006-05-03 17:25:45
|
Hi Tom,
=20
Thanks. This was already fixed in the developer repository. Like I said
in a recent message, the anonymous repository is several weeks (at
least) out of date due to SourceForge CVS problems. I'm sorry about that
but there isn't anything I can do to address the problem and I'm not
sure how long it will take SourceForge to fix it. If you are a developer
on any SourceForge project you can check out a read only version of the
QFJ developer repository. That repository will have the up-to-date code.
=20
Regards,
=20
Steve
________________________________
From: qui...@li...
[mailto:qui...@li...] On Behalf Of
Tom Dilatush
Sent: Wednesday, May 03, 2006 7:03 PM
To: qui...@li...
Subject: [Quickfix-developers] Empty Tag 58 in Logout request...
=09
=09
This is with QuickFIX/J, checked out of the anonymous repository
on 5/1/2006.
=09
The problem occurred when manually initiating logout by calling
(Session).logout(), instead of (Session).logout(String). The result was
that an empty tag 58 was inserted in the logout message, reflecting the
empty String in the state object.
=09
So...
=09
I took this code (from Session.generateLogout(String):
=09
if (text !=3D null) {
logout.setString(Text.FIELD, text);
}
=09
and modified it to this:
=09
if( (text !=3D null) && (text.length() > 0) ) {
logout.setString(Text.FIELD, text);
}
=09
Voila! The problem is no more...
=09
Tom...
=09
|