Go Back   DailyFX Forum > FXCM Products and Services > FXProgrammers > Discussion / Support Forum > FIX API Support

Reply
 
Thread Tools Rate Thread
  #1 (permalink)  
Old 10-30-2009, 02:27 PM
Member
 
Join Date: Jun 2008
Posts: 9
bvenkat is on a distinguished road
Timed out waiting for logon response

Hello,
I get the following errors when running the FIXTradingTester program:

$ java -classpath .:quickfixj-all-1.4.0.jar:mina-core-1.1.0.jar:slf4j-api-1.5.3.jar:slf4j-jdk14-1.5.3.jar FIXTradingTester eg.cfg
<20091030-18:24:52, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Session FIX.4.4:01064006_client1->FXCM/U100D1 schedule is weekly, SUN 00:00:00 UTC - SAT 00:00:00 UTC (weekly, SUN 00:00:00 UTC - SAT 00:00:00 UTC))
<20091030-18:24:52, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Created session: FIX.4.4:01064006_client1->FXCM/U100D1)
Oct 30, 2009 10:24:52 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Oct 30, 2009 10:24:52 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Oct 30, 2009 10:24:52 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Oct 30, 2009 10:24:52 PM quickfix.mina.initiator.InitiatorIoHandler sessionCreated
INFO: MINA session created: /192.168.2.2:58110
admin msg to >>> 8=FIX.4.49=9535=A34=149=01064006_client150=52=2009 1030-18:24:53.90456=FXCM57=U100D198=0108=30141=Y10=170
<20091030-18:24:53, FIX.4.4:01064006_client1->FXCM/U100D1, outgoing> (8=FIX.4.49=9535=A34=149=01064006_client150=52=200 91030-18:24:53.90456=FXCM57=U100D198=0108=30141=Y10=170)
<20091030-18:24:53, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Initiated logon request)
<20091030-18:25:04, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Timed out waiting for logon response)
<20091030-18:25:04, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Disconnecting)
got logout FIX.4.4:01064006_client1->FXCM/U100D1

StartSession = null
StopSession = Fri Oct 30 22:25:04 GST 2009

How can I troubleshoot the problem?

Regards,
Venkat
Reply With Quote
  #2 (permalink)  
Old 11-02-2009, 12:30 PM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
Try again now, I believe you attempted after market closed and during maintenance period.
Reply With Quote
  #3 (permalink)  
Old 11-02-2009, 01:27 PM
Member
 
Join Date: Jun 2008
Posts: 9
bvenkat is on a distinguished road
No, still the same. I can log on when using the real account, but not to the demo account, so it is not with the market timings.
Reply With Quote
  #4 (permalink)  
Old 11-02-2009, 03:10 PM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
you are not sending the subid U100D1 on logon message.

*** error: [Oct 30 14:22:58.579 EDT] Could not resolve a valid connection name from logon message:
|8:BeginString = FIX.4.4
9:BodyLength = 81
35:MsgType = A
49:SenderCompID = 01064006_client1
56:TargetCompID = FXCM
34:MsgSeqNum = 1
52:SendingTime = 20091030-18:22:44.513
98:EncryptMethod = 0
108:HeartBtInt = 30
141:ResetSeqNumFlag = Y
10:CheckSum = 247

Last edited by FXCM Help; 11-02-2009 at 03:13 PM..
Reply With Quote
  #5 (permalink)  
Old 11-02-2009, 03:15 PM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
try again and post log please.
Reply With Quote
  #6 (permalink)  
Old 11-02-2009, 04:51 PM
Member
 
Join Date: Jun 2008
Posts: 9
bvenkat is on a distinguished road
I have tested it again with the same results. The logon message includes 57=U100D1 so I think the TargetSubID is being sent.

admin msg to >>> 8=FIX.4.49=9535=A34=149=01064006_client150=52=2009 1102-21:42:47.29856=FXCM57=U100D198=0108=30141=Y10=173
<20091102-21:42:47, FIX.4.4:01064006_client1->FXCM/U100D1, outgoing> (8=FIX.4.49=9535=A34=149=01064006_client150=52=200 91102-21:42:47.29856=FXCM57=U100D198=0108=30141=Y10=173)
<20091102-21:42:47, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Initiated logon request)
<20091102-21:42:58, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Timed out waiting for logon response)
<20091102-21:42:58, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Disconnecting)

I don't think problem is something to do with the code. I am using the Quickfix java example available on this site to test and it works well with my real account, I face problems only with the demo login.

I have copied the quickfix config file for the demo login in case that is of any help:

[DEFAULT]
ConnectionType=initiator
HeartBtInt=30
FileStorePath=store
StartDay=Sunday
StartTime=00:00:00
EndDay=Saturday
EndTime=00:00:00
UseDataDictionary=Y
DataDictionary=FIXFXCM10.xml
ValidateUserDefinedFields=N
ValidateFieldsHaveValues=N
ValidateFieldsOutOfOrder=N

SocketConnectHost=fixdemo2.fxcorporate.com
SocketConnectPort=80
ReconnectInterval=0
ResetOnDisconnect=Y
ResetSeqNumFlag=Y
ResetOnLogout=Y
SendResetSeqNumFlag=Y
ContinueInitializationOnError=Y

quickfix.cfg=demo.cfg
quickfix.PrintIncoming=Y
quickfix.PrintOutgoing=Y
quickfix.PrintEvents=Y

[SESSION]
BeginString=FIX.4.4
SenderCompID=01064006_client1
TargetCompID=FXCM
TargetSubID=U100D1

Last edited by bvenkat; 11-02-2009 at 05:02 PM..
Reply With Quote
  #7 (permalink)  
Old 11-02-2009, 05:02 PM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
8:BeginString = FIX.4.4|9:BodyLength = 81|35:MsgType = A|49:SenderCompID = 01064006_client1|56:TargetCompID = FXCM|34:MsgSeqNum = 1|52:SendingTime = 20091030-18:22:44.513|98:EncryptMethod = 0|108:HeartBtInt = 30|141:ResetSeqNumFlag = Y|10:C
heckSum = 247|16586:WireProtocolVersion = FIX.4.4|16575:IsFromCounterParty = Y|
Reply With Quote
  #8 (permalink)  
Old 11-02-2009, 05:13 PM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
Can you post a recent log excerpt. This one seems to be the one from earlier. i havn't seen any newer login attempts on our side since the first attempt where the targetsubid was missing.
Reply With Quote
  #9 (permalink)  
Old 11-02-2009, 06:19 PM
Member
 
Join Date: Jun 2008
Posts: 9
bvenkat is on a distinguished road
Thanks for your assistance. Log copied below:

$ java -classpath .:quickfixj-all-1.4.0.jar:mina-core-1.1.0.jar:slf4j-api-1.5.3.jar:slf4j-jdk14-1.5.3.jar FIXTradingTester demo.cfg
<20091102-23:18:01, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Session FIX.4.4:01064006_client1->FXCM/U100D1 schedule is weekly, SUN 00:00:00 UTC - SAT 00:00:00 UTC (weekly, SUN 00:00:00 UTC - SAT 00:00:00 UTC))
<20091102-23:18:01, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Created session: FIX.4.4:01064006_client1->FXCM/U100D1)
Nov 3, 2009 3:18:01 AM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Nov 3, 2009 3:18:01 AM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Nov 3, 2009 3:18:01 AM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Nov 3, 2009 3:18:02 AM quickfix.mina.initiator.InitiatorIoHandler sessionCreated
INFO: MINA session created: /192.168.2.2:65477
admin msg to >>> 8=FIX.4.49=9535=A34=149=01064006_client150=52=2009 1102-23:18:03.10856=FXCM57=U100D198=0108=30141=Y10=160
<20091102-23:18:03, FIX.4.4:01064006_client1->FXCM/U100D1, outgoing> (8=FIX.4.49=9535=A34=149=01064006_client150=52=200 91102-23:18:03.10856=FXCM57=U100D198=0108=30141=Y10=160)
<20091102-23:18:03, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Initiated logon request)
<20091102-23:18:14, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Timed out waiting for logon response)
<20091102-23:18:14, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Disconnecting)
got logout FIX.4.4:01064006_client1->FXCM/U100D1


StartSession = null
StopSession = Tue Nov 03 03:18:14 GST 2009
Nov 3, 2009 3:18:14 AM quickfix.mina.initiator.InitiatorIoHandler sessionCreated
INFO: MINA session created: /192.168.2.2:65479
admin msg to >>> 8=FIX.4.49=9535=A34=149=01064006_client150=52=2009 1102-23:18:15.04556=FXCM57=U100D198=0108=30141=Y10=163
<20091102-23:18:15, FIX.4.4:01064006_client1->FXCM/U100D1, outgoing> (8=FIX.4.49=9535=A34=149=01064006_client150=52=200 91102-23:18:15.04556=FXCM57=U100D198=0108=30141=Y10=163)
<20091102-23:18:15, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Initiated logon request)
<20091102-23:18:25, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Timed out waiting for logon response)
<20091102-23:18:25, FIX.4.4:01064006_client1->FXCM/U100D1, event> (Disconnecting)
got logout FIX.4.4:01064006_client1->FXCM/U100D1
Reply With Quote
  #10 (permalink)  
Old 11-02-2009, 06:56 PM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
I am not seeing any more connection attempts for your client id. This would suggest to me that your settings are incorrect somewhere. Please make sure you that your code is

SocketConnectHost=fixdemo2.fxcorporate.com
SocketConnectPort=80

I would test to see if you can telnet to this server, and to see if your machine is attempting to connect to this server while your program is running.
Reply With Quote
  #11 (permalink)  
Old 11-02-2009, 07:06 PM
Member
 
Join Date: Jun 2008
Posts: 9
bvenkat is on a distinguished road
Yes, I can telnet to the server. Have left the program on, so it tries to reconnect every few seconds ... in case you would like to check on the server.
Reply With Quote
  #12 (permalink)  
Old 11-02-2009, 07:29 PM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
Still havn't seen any attempt in our logs. Can you list your ip address, so that I can see if it is connecting. Also leave your telnet session connected so i can find your session.
Reply With Quote
  #13 (permalink)  
Old 11-02-2009, 08:48 PM
Member
 
Join Date: Jun 2008
Posts: 9
bvenkat is on a distinguished road
IP Address: 91.75.152.138
Have left the telnet session on as well.
Reply With Quote
  #14 (permalink)  
Old 11-03-2009, 01:35 PM
Member
 
Join Date: Jun 2008
Posts: 9
bvenkat is on a distinguished road
Is there anything else you want me to check out? Here is a summary of what I know so far:
- I can telnet to fixdemo2.fxcorporate.com on port 80, so I don't think it is a network problem
- I am using the Java example available on the forexforums.dailyfx.com site.
- Using the real account credentials/connection info, I can login to the server and get the market data. However logging on using the demo credentials and connection info throws the error
Reply With Quote
  #15 (permalink)  
Old 11-03-2009, 02:08 PM
Moderator
 
Join Date: Jan 2006
Posts: 1,990
FXCM Help is on a distinguished road
I just ran a test on this connection and it seems just fine. The only thing I can guess is networking issue or incorrect configuration. If you like I can email you a working test zip you can run yourself.
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.

All times are GMT -5. The time now is 09:13 AM.
Copyright ©2009 Daily FX. All Rights Reserved.