[QFJ-399] disconnecting on logon request Created: 03/Feb/09  Updated: 03/Mar/09  Resolved: 03/Mar/09

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

Type: Other Priority: Default
Reporter: sangeetha Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None


 Description   

here us the scenario,

our customer is sending us some messages continously, but when application using quickfix sends a logon request it disconnects on receiving some other message

20090203-08:45:27.481: Initiated logon request
20090203-08:45:27.501: quickfix.SessionException Logon state is not valid for message (MsgType=6)
20090203-08:45:27.501: Disconnecting
20090203-08:45:27.514: Failed to verify message: 8=FIX.4.0^A9=113^A35=6^A34=2601972^A49=S005^A52=20090203-08:44:00^A56=R005^A23=XLAX:5:1224729204606970^A
27=0^A38=500^A44=7.88^A54=2^A55=UCBH^A10=055^A

1) Do you know why is it disconnecting and not waiting for logon response?
2) Do we have some way to enable detailed logging in quickfix, it looks very difficult to debug things with very little info in the log. (Disconnecing : Its not clear whois disconnecting we or the customer.). Is there any way to classify the in/out messages?



 Comments   
Comment by Toli Kuznets [ 03/Feb/09 ]

I'm assuming that you are the "acceptor".

you can enable debugging (depending on whether you use Log4J or some other logging framework in your setup).

Here's an example for Log4J:

# QuickFIX/J.
log4j.logger.quickfixj.msg.incoming=INFO
log4j.logger.quickfixj.msg.outgoing=INFO
log4j.logger.quickfixj.event=INFO

This will show you the incoming/outgoing messages

It also seems that you are getting an Indication of Interest (35=6) when you don't expect it - ie the customer hasn't logged on yet maybe?

try adding more logging and see if you have more messages to work with

Comment by sangeetha [ 09/Feb/09 ]

I also see this happening very frequently when we disconnect intraday and then try to logon intraday

20090129-21:27:00.700: Initiated logon request
20090129-21:27:10.699: Timed out waiting for logon response
I am assuming that there is some code in quickfix which is calling disconnect without calling logout also there is no error message printed other than

20090129-14:54:58.741: Disconnecting .

My application is Initiator connection and using default logging mechanism if quickfix.

Generated at Tue Jul 01 07:37:26 UTC 2025 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.