Capital Markets Adapters 10.11 | Apama Capital Markets Adapters Documentation 10.11 | Apama Base FIX Adapter | Troubleshooting | Diagnosing connectivity/session problems
 
Diagnosing connectivity/session problems
The first place to look when diagnosing connectivity problems is the Adapter log (IAF log incase of FIX IAF adapter and correlator log incase of FIX Connectivity adapter). Each FIX session should produce the following series of messages upon successfully connecting and logging on to the remote system:

2007-11-30 10:56:12.070 INFO [2756] -
FIX.4.2-<Sender>-<Target>::Connecting to
       <host> on port <port>
2007-11-30 10:56:12.480 INFO [2756] -
FIX.4.2-<Sender>-<Target>::Initiated logon
       request
2007-11-30 10:56:13.462 INFO [2756] -
FIX.4.2-<Sender>-<Target>::Received logon
       response
If after attempting to connect you do not see “Initiated logon request”, it is likely that a connection to the specified host/port cannot even be established. In this instance you must investigate your environment/network and establish that a route to the target system is actually possible.
If you do see “Initiated logon request” but no response is received or the connection is terminated by the peer in some way then it is likely that the target system has rejected the logon attempt. In this case you need to look at the FIX message log and investigate the message exchange. It may be that you have provided incorrect details or some essential tag is missing from the logon message.
Another possibility in this instance is that there is a sequence number mismatch. The target system will report this to you and tell you what it expects the sequence number to be. In this case you must shutdown the adapter, edit the sequence number file (discussed above) and make sure that the sequence numbers are correctly aligned with what you and the target system are expecting before restarting.
Once a FIX session is properly established and as long as the sessions have been properly configured by sending in the relevant SessionConfiguration event(s) (See Client session, the session manager will notify all the other FIX service monitors that the session(s) are now up. This will also be logged in the service log as:

[2007-11-30 10:56:13.462 INFO] FIX Session Manager
[<CONNECTION_NAME>]: Session
         <CONNECTION_NAME>'s IAF is connected
[2007-11-30 10:56:13.462 INFO] FIX Session Manager
[<CONNECTION_NAME>]: Session
         <CONNECTION_NAME> has been logged on
The first message tells us that the session manager is receiving heartbeats from the IAF and the second message tells us that the session manager has received a logon message for that connection.