[QFJ-671] Connection exec-banzai Created: 19/Mar/12  Updated: 15/Nov/12  Resolved: 18/Jul/12

Status: Closed
Project: QuickFIX/J
Component/s: Engine, Examples, Networking
Affects Version/s: 1.5.2
Fix Version/s: None

Type: Other Priority: Major
Reporter: Andreea Ion Assignee: Unassigned
Resolution: Not a bug Votes: 0
Labels: QuickfixJ
Environment:

Windows 64, Eclipse,jdk7



 Description   

What I'm trying to do is basicly. I whan to establish a connection between 2 machines. On one of them I have Executor, and on the other machine Banzai.
Machine 1:- executor
------executor.cfg------------
[default]
FileStorePath=examples/target/data/executor
ConnectionType=acceptor
SenderCompID=EXEC
UseDataDictionary=Y

[session]
BeginString=FIX.4.0
TargetCompID=BANZAI
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
ValidOrderTypes=1,2,F
SocketAcceptPort=9876
SocketAcceptHost=192.168.2.213
DataDictionary=/etc/FIX40.xml

[session]
BeginString=FIX.4.1
TargetCompID=BANZAI
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
ValidOrderTypes=1,2,F
SocketAcceptPort=9877
SocketAcceptHost=192.168.2.213
DataDictionary=etc/FIX41.xml

[session]
BeginString=FIX.4.2
TargetCompID=BANZAI
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
ValidOrderTypes=1,2,F
SocketAcceptPort=9878
SocketAcceptHost=192.168.2.213
DataDictionary=etc/FIX42.xml

[session]
BeginString=FIX.4.3
TargetCompID=BANZAI
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
ValidOrderTypes=1,2,F
SocketAcceptPort=9879
SocketAcceptHost=192.168.2.213
DataDictionary=etc/FIX43.xml

[session]
BeginString=FIX.4.4
TargetCompID=BANZAI
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
ValidOrderTypes=1,2,F
SocketAcceptPort=9880
SocketAcceptHost=192.168.2.213
DataDictionary=etc/FIX44.xml

[session]
BeginString=FIXT.1.1
TargetCompID=BANZAI
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
ValidOrderTypes=1,2,F
DefaultApplVerID=FIX.5.0
SocketAcceptPort=9881
SocketAcceptHost=192.168.2.213
DataDictionary=etc/FIXT50.xml

Machine 2:
-----------banzai.cfg---------------------
[default]
FileStorePath=examples/target/data/banzai
ConnectionType=initiator
SenderCompID=BANZAI
ReconnectInterval=5
UseDataDictionary=Y

[session]
BeginString=FIX.4.0
TargetCompID=EXEC
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
SocketConnectPort=9876
SocketConnectHost=192.168.2.184
DataDictionary=etc/FIX40.xml

[session]
BeginString=FIX.4.1
TargetCompID=EXEC
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
SocketConnectPort=9877
SocketConnectHost=192.168.2.184
DataDictionary=etc/FIX41.xml

[session]
BeginString=FIX.4.2
TargetCompID=EXEC
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
SocketConnectPort=9878
SocketConnectHost=192.168.2.184
DataDictionary=etc/FIX42.xml

[session]
BeginString=FIX.4.3
TargetCompID=EXEC
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
SocketConnectPort=9879
SocketConnectHost=192.168.2.184
DataDictionary=etc/FIX43.xml

[session]
BeginString=FIX.4.4
TargetCompID=EXEC
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
SocketConnectPort=9880
SocketConnectHost=192.168.2.184
DataDictionary=etc/FIX44.xml

[session]
BeginString=FIXT.1.1
TargetCompID=EXEC
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
DefaultApplVerID=FIX.5.0
SocketConnectPort=9881
SocketConnectHost=192.168.2.184
DataDictionary=etc/FIXT11.xml

When I run banzai.cfg this is the output:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/Beta1/Desktop/quickfix%20test1/quickfixj/lib/slf4j-jdk14-1.6.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/Beta1/Desktop/quickfix%20test1/quickfixj/lib/optional/slf4j-log4j12-1.6.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Mar 19, 2012 5:13:05 PM quickfix.SessionSchedule <init>
INFO: [FIX.4.2:BANZAI->EXEC] daily, 00:00:00-UTC - 00:00:00-UTC
<20120319-15:13:05, FIX.4.2:BANZAI->EXEC, event> (Session FIX.4.2:BANZAI->EXEC schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20120319-15:13:05, FIX.4.2:BANZAI->EXEC, event> (Created session: FIX.4.2:BANZAI->EXEC)
Mar 19, 2012 5:13:06 PM quickfix.SessionSchedule <init>
INFO: [FIX.4.3:BANZAI->EXEC] daily, 00:00:00-UTC - 00:00:00-UTC
Mar 19, 2012 5:13:06 PM quickfix.SessionSchedule <init>
INFO: [FIX.4.1:BANZAI->EXEC] daily, 00:00:00-UTC - 00:00:00-UTC
<20120319-15:13:06, FIX.4.3:BANZAI->EXEC, event> (Session FIX.4.3:BANZAI->EXEC schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20120319-15:13:06, FIX.4.3:BANZAI->EXEC, event> (Created session: FIX.4.3:BANZAI->EXEC)
<20120319-15:13:06, FIX.4.1:BANZAI->EXEC, event> (Session FIX.4.1:BANZAI->EXEC schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20120319-15:13:06, FIX.4.1:BANZAI->EXEC, event> (Created session: FIX.4.1:BANZAI->EXEC)
<20120319-15:13:06, FIX.4.0:BANZAI->EXEC, event> (Session FIX.4.0:BANZAI->EXEC schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20120319-15:13:06, FIX.4.0:BANZAI->EXEC, event> (Created session: FIX.4.0:BANZAI->EXEC)
<20120319-15:13:06, FIX.4.4:BANZAI->EXEC, event> (Session FIX.4.4:BANZAI->EXEC schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20120319-15:13:06, FIX.4.4:BANZAI->EXEC, event> (Created session: FIX.4.4:BANZAI->EXEC)
<20120319-15:13:06, FIXT.1.1:BANZAI->EXEC, event> (Session FIXT.1.1:BANZAI->EXEC schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20120319-15:13:06, FIXT.1.1:BANZAI->EXEC, event> (Created session: FIXT.1.1:BANZAI->EXEC)
Mar 19, 2012 5:13:06 PM quickfix.SessionSchedule <init>
INFO: [FIX.4.0:BANZAI->EXEC] daily, 00:00:00-UTC - 00:00:00-UTC
Mar 19, 2012 5:13:06 PM quickfix.SessionSchedule <init>
INFO: [FIX.4.4:BANZAI->EXEC] daily, 00:00:00-UTC - 00:00:00-UTC
Mar 19, 2012 5:13:06 PM quickfix.SessionSchedule <init>
INFO: [FIXT.1.1:BANZAI->EXEC] daily, 00:00:00-UTC - 00:00:00-UTC
Mar 19, 2012 5:13:06 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Mar 19, 2012 5:13:06 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Mar 19, 2012 5:13:06 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Mar 19, 2012 5:13:07 PM quickfix.mina.initiator.IoSessionInitiator <init>
INFO: [FIX.4.3:BANZAI->EXEC] [localhost/127.0.0.1:9879]
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Mar 19, 2012 5:13:07 PM quickfix.mina.initiator.IoSessionInitiator <init>
INFO: [FIX.4.2:BANZAI->EXEC] [localhost/127.0.0.1:9878]
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Mar 19, 2012 5:13:07 PM quickfix.mina.initiator.IoSessionInitiator <init>
INFO: [FIX.4.1:BANZAI->EXEC] [localhost/127.0.0.1:9877]
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Mar 19, 2012 5:13:07 PM quickfix.mina.initiator.IoSessionInitiator <init>
INFO: [FIX.4.4:BANZAI->EXEC] [localhost/127.0.0.1:9880]
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Mar 19, 2012 5:13:07 PM quickfix.mina.initiator.IoSessionInitiator <init>
INFO: [FIX.4.0:BANZAI->EXEC] [localhost/127.0.0.1:9876]
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Mar 19, 2012 5:13:07 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Mar 19, 2012 5:13:07 PM quickfix.mina.initiator.IoSessionInitiator <init>
INFO: [FIXT.1.1:BANZAI->EXEC] [localhost/127.0.0.1:9881]
Mar 19, 2012 5:13:07 PM quickfix.mina.SessionConnector startSessionTimer
INFO: SessionTimer started
<20120319-15:13:08, FIX.4.1:BANZAI->EXEC, error> (java.net.ConnectException: java.net.ConnectException: Connection refused: no further information (Next retry in 5000 milliseconds))
<20120319-15:13:09, FIX.4.4:BANZAI->EXEC, error> (java.net.ConnectException: java.net.ConnectException: Connection refused: no further information (Next retry in 5000 milliseconds))
<20120319-15:13:10, FIXT.1.1:BANZAI->EXEC, error> (java.net.ConnectException: java.net.ConnectException: Connection refused: no further information (Next retry in 5000 milliseconds))

When I run executor.cfg this is the output:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/matlabopt1/Desktop/quickfix%20test1/quickfixj/lib/slf4j-jdk14-1.6.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/matlabopt1/Desktop/quickfix%20test1/quickfixj/lib/optional/slf4j-log4j12-1.6.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Mar 19, 2012 5:08:47 PM quickfix.examples.executor.Executor <init>
INFO: Acceptor registered with JMX, name=org.quickfixj:type=Connector,role=Acceptor,id=1
Mar 19, 2012 5:08:48 PM quickfix.SessionSchedule <init>
INFO: [FIX.4.2:EXEC->BANZAI] daily, 00:00:00-UTC - 00:00:00-UTC
<20120319-15:08:48, FIX.4.2:EXEC->BANZAI, event> (Session FIX.4.2:EXEC->BANZAI schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20120319-15:08:48, FIX.4.2:EXEC->BANZAI, event> (Created session: FIX.4.2:EXEC->BANZAI)
<20120319-15:08:48, FIX.4.2:EXEC->BANZAI, event> (Valid order types: [2, F, 1])
<20120319-15:08:48, FIX.4.0:EXEC->BANZAI, event> (Session FIX.4.0:EXEC->BANZAI schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20120319-15:08:48, FIX.4.0:EXEC->BANZAI, event> (Created session: FIX.4.0:EXEC->BANZAI)
<20120319-15:08:48, FIX.4.0:EXEC->BANZAI, event> (Valid order types: [2, F, 1])
<20120319-15:08:48, FIX.4.3:EXEC->BANZAI, event> (Session FIX.4.3:EXEC->BANZAI schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20120319-15:08:48, FIX.4.3:EXEC->BANZAI, event> (Created session: FIX.4.3:EXEC->BANZAI)
<20120319-15:08:48, FIX.4.3:EXEC->BANZAI, event> (Valid order types: [2, F, 1])
Mar 19, 2012 5:08:48 PM quickfix.SessionSchedule <init>
INFO: [FIX.4.0:EXEC->BANZAI] daily, 00:00:00-UTC - 00:00:00-UTC
Mar 19, 2012 5:08:48 PM quickfix.SessionSchedule <init>
INFO: [FIX.4.3:EXEC->BANZAI] daily, 00:00:00-UTC - 00:00:00-UTC
Mar 19, 2012 5:08:48 PM quickfix.SessionSchedule <init>
INFO: [FIX.4.4:EXEC->BANZAI] daily, 00:00:00-UTC - 00:00:00-UTC
Mar 19, 2012 5:08:48 PM quickfix.SessionSchedule <init>
INFO: [FIXT.1.1:EXEC->BANZAI] daily, 00:00:00-UTC - 00:00:00-UTC
Mar 19, 2012 5:08:48 PM quickfix.SessionSchedule <init>
INFO: [FIX.4.1:EXEC->BANZAI] daily, 00:00:00-UTC - 00:00:00-UTC
<20120319-15:08:48, FIX.4.4:EXEC->BANZAI, event> (Session FIX.4.4:EXEC->BANZAI schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20120319-15:08:48, FIX.4.4:EXEC->BANZAI, event> (Created session: FIX.4.4:EXEC->BANZAI)
<20120319-15:08:48, FIX.4.4:EXEC->BANZAI, event> (Valid order types: [2, F, 1])
<20120319-15:08:48, FIXT.1.1:EXEC->BANZAI, event> (Session FIXT.1.1:EXEC->BANZAI schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20120319-15:08:48, FIXT.1.1:EXEC->BANZAI, event> (Created session: FIXT.1.1:EXEC->BANZAI)
<20120319-15:08:48, FIXT.1.1:EXEC->BANZAI, event> (Valid order types: [2, F, 1])
<20120319-15:08:48, FIX.4.1:EXEC->BANZAI, event> (Session FIX.4.1:EXEC->BANZAI schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20120319-15:08:48, FIX.4.1:EXEC->BANZAI, event> (Created session: FIX.4.1:EXEC->BANZAI)
<20120319-15:08:48, FIX.4.1:EXEC->BANZAI, event> (Valid order types: [2, F, 1])
Mar 19, 2012 5:08:49 PM quickfix.mina.SessionConnector startSessionTimer
INFO: SessionTimer started
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Mar 19, 2012 5:08:49 PM quickfix.mina.acceptor.AbstractSocketAcceptor startAcceptingConnections
INFO: Listening for connections at 0.0.0.0/0.0.0.0:9878
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Mar 19, 2012 5:08:49 PM quickfix.mina.acceptor.AbstractSocketAcceptor startAcceptingConnections
INFO: Listening for connections at 0.0.0.0/0.0.0.0:9879
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Mar 19, 2012 5:08:49 PM quickfix.mina.acceptor.AbstractSocketAcceptor startAcceptingConnections
INFO: Listening for connections at 0.0.0.0/0.0.0.0:9876
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Mar 19, 2012 5:08:49 PM quickfix.mina.acceptor.AbstractSocketAcceptor startAcceptingConnections
INFO: Listening for connections at 0.0.0.0/0.0.0.0:9877
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Mar 19, 2012 5:08:49 PM quickfix.mina.acceptor.AbstractSocketAcceptor startAcceptingConnections
INFO: Listening for connections at 0.0.0.0/0.0.0.0:9880
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Mar 19, 2012 5:08:49 PM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Mar 19, 2012 5:08:49 PM quickfix.mina.acceptor.AbstractSocketAcceptor startAcceptingConnections
INFO: Listening for connections at 0.0.0.0/0.0.0.0:9881
press <enter> to quit

Can you tell me where I am wrong?



 Comments   
Comment by Grant Birchmeier [ 19/Mar/12 ]

Have you tried sending your questions to the mailing list? That is the preferred avenue for help.

Most people will not see this bug report. (And bug reports aren't supposed to be used for help requests.)

Comment by sagar narasgonde [ 14/Jun/12 ]

there are many mistakes

like

instead of SocketAcceptHost=192.168.2.213 SocketAcceptAddress=192.168.2.213

Comment by Jörg Thönnes [ 18/Jul/12 ]

This is more about debugging network connections. Please ask in the mailing list.

Generated at Sat Nov 23 07:21:05 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.