[Quickfix-developers] Empty Tag 58 in Logout request...
Brought to you by:
orenmnero
|
From: Tom D. <to...@di...> - 2006-05-03 17:03:08
|
This is with QuickFIX/J, checked out of the anonymous repository on
5/1/2006.
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.
So...
I took this code (from Session.generateLogout(String):
* if (text != null) {
logout.setString(Text.FIELD, text);
}
*
and modified it to this:
* if( (text != null) && (text.length() > 0) ) {
logout.setString(Text.FIELD, text);
}
*
Voila! The problem is no more...
Tom...
|