|
From: Alvin W. <AW...@FF...> - 2006-10-23 15:04:10
|
Hi Steve,
I got the following exceptions when I tried to run my application on
QuickFIXJ. Below is my configuration file. Do you have any idea what went
wrong? I have made sure the connection is ok by running telnet.
Pls note that
AbnormalLogoutAlert=Y
LogonTimeout=120
are my custom configurations.
Many thanks.
Alvin
quickfix.ConfigError: error during session initialization
at
quickfix.mina.initiator.AbstractSocketInitiator.createSessions(AbstractSocketInitiator.java:113)
at
quickfix.mina.initiator.AbstractSocketInitiator.<init>(AbstractSocketInitiator.java:68)
at
quickfix.mina.initiator.AbstractSocketInitiator.<init>(AbstractSocketInitiator.java:60)
at
quickfix.ThreadedSocketInitiator.<init>(ThreadedSocketInitiator.java:32)
.................
Caused by: java.lang.RuntimeException: java.io.EOFException
at quickfix.FileStoreFactory.create(FileStoreFactory.java:65)
at quickfix.Session.<init>(Session.java:193)
at
quickfix.DefaultSessionFactory.create(DefaultSessionFactory.java:125)
at
quickfix.mina.SessionConnector.createSession(SessionConnector.java:109)
at
quickfix.mina.initiator.AbstractSocketInitiator.createSessions(AbstractSocketInitiator.java:107)
... 7 more
Caused by: java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:448)
at quickfix.FileStore.initializeMessageIndex(FileStore.java:172)
at quickfix.FileStore.initializeCache(FileStore.java:107)
at quickfix.FileStore.initialize(FileStore.java:102)
at quickfix.FileStore.<init>(FileStore.java:89)
at quickfix.FileStoreFactory.create(FileStoreFactory.java:63)
... 11 more
[DEFAULT]
ConnectionType=initiator
HeartBtInt=30
FileStorePath=store
FileLogPath=store
CheckLatency=N
UseDataDictionary=Y
DataDictionary=FIX44.xml
ValidateUserDefinedFields=N
BeginString=FIX.4.4
ValidateFieldsHaveValues=N
AbnormalLogoutAlert=Y
LogonTimeout=120
[SESSION]
SenderCompID=ABC
TargetCompID=DEF
SocketConnectHost=localhost
SocketConnectPort=17000
StartTime=08:00:00
EndTime=23:55:00
Steve
<steve@technoetic
.com> To
Sent by: qui...@li....n
quickfixj-users-b et
ou...@li... cc
ceforge.net
Subject
Re: [Quickfixj-users] File Lock on
10/20/2006 04:32 FileStore impossible to free
PM
Please respond to
quickfixj-users@l
ists.sourceforge.
net
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/
Would a memory store work for your testing purposes? If not, you can get
the MessageStore from the Session and cast it to a FileStore to call
closeFiles() or deleteFiles() (which closes the files first). See the
FileStoreTest for an example. The tests close and reopen the files for
each test. HTH.
Steve
Nick Fortescue wrote:
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
> I think I've found a File locking resource leak in quickfixj (SVN Trunk,
> head). I wondered if anyone could confirm it is a defect, and if so the
best
> way to fix it.
>
> When you create a FileStore for a given session it opens two
> RandomAccessFiles for the message store and sequence number file. These
> files are only closed by the method closeFiles(), which is only used in
> initialize. And when initialize closes the files it immediately opens
them
> again. This means that unless you call closeFiles() yourself, the file
will
> remain open (and for example, you can't delete the files
programmatically).
>
> However, if you create an initiator, you do it with a
MessageStoreFactory,
> not a MessageStore, which means you have no access to the FileStore to
let
> you close the files.
>
> This is a problem for me. I am running some conformance tests for my
> counterparty, and I want to do them in a single Application - create a
fix
> session, do the test, close the session, delete the files, and then
proceed
> with the next test. At the moment this seems to be impossible, as once I
am
> finished with the first session I have no way of deleting the files
without
> exiting the VM. Am I going to have to write my own FileStoreFactory?
>
> Nick
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Quickfixj-users mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Quickfixj-users mailing list
Qui...@li...
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
*******************************************************************************
This e-mail message is intended solely for the use of the addressee.
The message may contain information that is privileged and
confidential.
Disclosure to anyone other than the intended recipient is prohibited.
If you are not the intended recipient, please do not disseminate,
distribute or copy this communication, by e-mail or otherwise. Instead,
please notify us immediately by return e-mail(including the original
message with your reply) and then delete and discard all copies of the
message. We have taken precautions to minimize the risk of transmitting
software viruses but nevertheless advise you to carry out your own
virus checks on any attachment to this message. We accept
no liability for any loss or damage caused by software viruses.
*******************************************************************************
|