RE: [Quickfix-developers] QuickFix (Java) does not logon?
Brought to you by:
orenmnero
|
From: Alvin W. <xw...@qt...> - 2002-12-13 18:50:48
|
Oren, I am using new ScreenLogFactory(true, true, true).. So I do not know
if I can go any furthur to get more info... In my problem, QuickFix only
print out:
<20021213-15:24:42, FIX.4.1:"sender"->"receiver", event>
(Created session)
Nothing else... it did not issue a logon request.
-----Original Message-----
From: OM...@th... [mailto:OM...@th...]
Sent: Friday, December 13, 2002 12:15 PM
To: xw...@qt...
Cc: gar...@su...; qui...@li...;
qui...@li...
Subject: RE: [Quickfix-developers] QuickFix (Java) does not logon?
Alvin. Are you using one of the log factories? QuickFIX is silent unless
you have a log factory that can help you diagnose what is happening
internally.
Anyway, it sounds like your sequence numbers are not being reset at the
correct time. Things you may want to look at are what time the
counterparty resets their sequence numbers, if your session time reflects
that, is your clock synchronized with your counterparty, and are you
keeping in mind that the Session start and End times are in GMT not
localtime.
--oren
"Alvin Wang"
<xwang@qtechservi To:
<gar...@su...>
ces.com> cc:
<OM...@th...>, <qui...@li...>,
<qui...@li...>
12/13/2002 09:30 Subject: RE:
[Quickfix-developers] QuickFix (Java) does not logon?
AM
Gary, thanks for the info. However, I am doing exactly same thing as your
are. But it just hangs there unless i clear the store folder manully.
thanks!
-----Original Message-----
From: qui...@li...
[mailto:qui...@li...]On Behalf Of
gar...@su...
Sent: Friday, December 13, 2002 10:17 AM
To: Alvin Wang
Cc: OM...@th...; qui...@li...;
qui...@li...
Subject: Re: [Quickfix-developers] QuickFix (Java) does not logon?
As a hint, I know I needed to call the initiator.start() in a separate
Thread. I think the start() does block.
Here's my method to kick off the FIX engine:
protected void initializeFIX() {
Thread fixThread = new Thread ("FIX Initialization thread") {
public void run() {
try {
String fixCfg = QFEProperties.getFixCfg();
LogUtil.log ("Initializing FIX engine based on
configuration: " + fixCfg);
Application application = new Application();
Settings settings = new
Settings(QFEInitiator.class.getClassLoader().
getResourceAsStream
(fixCfg));
MessageStoreFactory messageStoreFactory =
new FileStoreFactory(settings);
LogFactory logFactory = new ScreenLogFactory(true,
true, true);
MessageFactory messageFactory = new
DefaultMessageFactory();
initiator = new SocketInitiator
(application, messageStoreFactory, settings,
logFactory, messageFactory);
initiator.start();
} catch(ConfigError e) {
LogUtil.handleException (LogUtil.SEVERITY_LEVEL_3,
"Exception occurred
initializing FIX engine",
e);
throw new PMFatalException ("Exception occurred
initializing FIX engine: " +
e.getMessage());
}
}
};
fixThread.start();
}
Gary Mui
Prescient Markets, Inc 914-989-3118 (W)
445 Hamilton Avenue 914-422-3693 (F)
White Plains, NY 10601
Please visit us at http://www.cpmarket.com
"Alvin Wang"
<xw...@qt...> To:
<OM...@th...>,
Sent by:
<qui...@li...>
qui...@li... cc:
eforge.net Subject:
[Quickfix-developers] QuickFix (Java) does not logon?
12/13/02 10:06 AM
Hi! Sometimes, when I start a session, quickfix can print out "Create
session", but it does not send out logon message and so cannot logon. I
guess it has something to do with store state, since I can fix this problem
if I delete all the related files in store folder. Also if I use debugger
to
step through, I think initiator.start() statement hangs.
Please advise. thanks!
Alvin
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Quickfix-developers mailing list
Qui...@li...
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Quickfix-developers mailing list
Qui...@li...
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
|