Re: [Quickfix-users] Could not open incoming file, HELP
Brought to you by:
orenmnero
From: Dominique J. <jun...@ho...> - 2003-12-14 17:53:28
|
Hi All, I tried all the possibilities to fix this "Could not open incoming file", now I'm sure that the error comes from somewhere else (if these files can't be opend, that's something else, not the definition itself in the config file). I think that the error comes from the definition of MyApplication. Here is a part of the code (sorry, I do it in VB.NET, which seems not to be very popular, as I didn't find help for that language in on your Web Site) : ... Dim settings As SessionSettings Dim FileName As String Dim myapplication As MyApplication Dim storeFactory As FileStoreFactory Dim logFactory As FileLogFactory Dim messageFactory As MessageFactory Dim role As String Dim LineDisplayed As String role = SessionType LineDisplayed = Date.Now + " Starting " + role + " session..." OutPut.text = OutPut.Text + Chr(13) + LineDisplayed OutPut.Refresh() Try Select Case role Case "Acceptor" Dim acceptor As SocketAcceptor FileName = "D:\AcceptorConfig.txt" settings = New SessionSettings(FileName) myapplication = New MyApplication() storeFactory = New FileStoreFactory(settings) logFactory = New FileLogFactory(FileName) messageFactory = New DefaultMessageFactory() acceptor = New SocketAcceptor(myapplication, storeFactory, settings, logFactory, messageFactory) acceptor.start() ... My concern is now more about the MyApplication definition... What does it suppose to include? Can someone give me a VB.NET example? Sorry for this "very basic" question, but I really don't know how to do that. Many thanks. Junker Dominique >From: "Dominique Junker" <jun...@ho...> >To: OM...@ri..., qui...@li... >Subject: Re: [Quickfix-users] Could not open incoming file, HELP >Date: Mon, 08 Dec 2003 07:40:08 +0100 > >It may be that... I'll check it this evening. I remember that I can't >delete the log files just after a trying to start a session. > > >Thanks. > > > > >Junker Dominique > > > > > >>From: "Miller, Oren" <OM...@ri...> >>To: <jun...@ho...>,<qui...@li...> >>Subject: Re: [Quickfix-users] Could not open incoming file, HELP >>Date: Sun, 7 Dec 2003 19:36:27 -0600 >> >>Well, it is using an ofstream which it tries to open with ios::app and >>ios::out. Pretty standard. Is it possible there is another proces that >>has a lock on the file? Can you open it with a text editor and modify it? >> >>-------------------------- >>Sent from my BlackBerry Wireless Handheld >> >> >>-----Original Message----- >>From: Dominique Junker <jun...@ho...> >>To: Miller, Oren <OM...@ri...>; >>qui...@li... >><qui...@li...> >>Sent: Sun Dec 07 10:28:47 2003 >>Subject: Re: [Quickfix-users] Could not open incoming file, HELP >> >>I tested the following things : >> >>FileStorePath=D:/logs >>FileStorePath=D:/logs/ >>FileStorePath=D:/logs/* >>FileStorePath=D:\logs >>FileStorePath=D:\logs\ >>FileStorePath=D:\logs\* >> >>And none of these worked... My application is working under XP, is there a >>way to check that my application is able to have a full access to this >>directory and its files? I know how to check that under Unix.. But not >>really under XP. >>An if the application is able to create the files, what's then the problem >>to re-access to them? >> >>Thanks a lot. >> >> >>Junker Dominique >> >> >> >> >> >> >From: "Miller, Oren" <OM...@ri...> >> >To: <jun...@ho...>,<qui...@li...> >> >Subject: Re: [Quickfix-users] Could not open incoming file, HELP >> >Date: Sun, 7 Dec 2003 10:15:33 -0600 >> > >> >I think your problem may be the trailing / on the directory. Qf assumes >>no >> >trailing backslashes on directories. Try using FileStorePath=D:/logs >> > >> >-------------------------- >> >Sent from my BlackBerry Wireless Handheld >> > >> > >> >-----Original Message----- >> >From: Dominique Junker <jun...@ho...> >> >To: Miller, Oren <OM...@ri...>; >> >qui...@li... >><qui...@li...> >> >Sent: Sun Dec 07 10:08:19 2003 >> >Subject: Re: [Quickfix-users] Could not open incoming file, HELP >> > >> >Thanks for this quick answer. >> >This is what I thought in a first step. But here is what I have in my cf >> >file : >> > >> >FileStorePath=D:/logs/ >> > >> >After starting my application and receiving the exception ("Could not >>open >> >incoming file"), I have 4 files created in the "D:/logs/" directory (a >> >.body, .header, .session and a .seqnums). These files have their >>creation >> >date set to the date-time when I started the applcation. Note that only >>the >> >.seqnums and the .session are filled respectively by "1 : 1" and >> >"20031207-15:50:44"). The two others are empty. >> > >> >That' why I thought that this is coming from something else... How can I >> >confirm that I have permission to create this files and directory >>properly? >> > >> >Any idea? >> > >> >Thanks a lot... >> > >> > >> > >> >Junker Dominique >> > >> > >> > >> > >> > >> > >From: "Miller, Oren" <OM...@ri...> >> > >To: >><jun...@ho...>,<qui...@li...> >> > >Subject: Re: [Quickfix-users] Could not open incoming file, HELP >> > >Date: Sun, 7 Dec 2003 09:41:08 -0600 >> > > >> > >This means you are using the FileLogFactory and qf is unable to open >>or >> > >create the file which logs incoming messages. The FileLog attempts to >> > >create this file in the FileLogPath specified in you configuration >>file. >> > >Verify you have permission to create this file and directory. >> > > >> > >-------------------------- >> > >Sent from my BlackBerry Wireless Handheld >> > > >> > > >> > >-----Original Message----- >> > >From: Dominique Junker <jun...@ho...> >> > >To: qui...@li... >> > ><qui...@li...> >> > >Sent: Sun Dec 07 07:02:27 2003 >> > >Subject: [Quickfix-users] Could not open incoming file, HELP >> > > >> > >All, >> > > >> > >I try to start for the first time a QuickFIX Acceptor (VB .NET, >>1-6-0). I >> > >changed a couple of times the configuration file (to fix different >>pbs), >> > >but >> > >now I have the following execption : "Could not open incoming file", >>and >> >I >> > >have no idea about the way to fix that. >> > > >> > >All the others Exception Messages are clear, but this not really.. >> > > >> > >Could soemeone tell me what I have to change (in my configuration >>file?)? >> > >Thanks for your help. >> > > >> > > >> > > >> > >Junker Dominique >> > > >> > >_________________________________________________________________ >> > >Trouvez l'âme soeur sur MSN Rencontres ! http://g.msn.fr/FR1000/9551 >> > > >> > > >> > > >> > >------------------------------------------------------- >> > >This SF.net email is sponsored by: IBM Linux Tutorials. >> > >Become an expert in LINUX or just sharpen your skills. Sign up for >>IBM's >> > >Free Linux Tutorials. Learn everything from the bash shell to sys >>admin. >> > >Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >> > >_______________________________________________ >> > >Quickfix-users mailing list >> > >Qui...@li... >> > >https://lists.sourceforge.net/lists/listinfo/quickfix-users >> > > >> > >> >_________________________________________________________________ >> >Trouvez l'âme soeur sur MSN Rencontres ! http://g.msn.fr/FR1000/9551 >> > >> > >> > >> > >> >------------------------------------------------------- >> >This SF.net email is sponsored by: IBM Linux Tutorials. >> >Become an expert in LINUX or just sharpen your skills. Sign up for >>IBM's >> >Free Linux Tutorials. Learn everything from the bash shell to sys >>admin. >> >Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click >> >_______________________________________________ >> >Quickfix-users mailing list >> >Qui...@li... >> >https://lists.sourceforge.net/lists/listinfo/quickfix-users >> >>_________________________________________________________________ >>Trouvez l'âme soeur sur MSN Rencontres ! http://g.msn.fr/FR1000/9551 >> >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: IBM Linux Tutorials. >>Become an expert in LINUX or just sharpen your skills. Sign up for IBM's >>Free Linux Tutorials. Learn everything from the bash shell to sys admin. >>Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click >>_______________________________________________ >>Quickfix-users mailing list >>Qui...@li... >>https://lists.sourceforge.net/lists/listinfo/quickfix-users > >_________________________________________________________________ >MSN Search, le moteur de recherche qui pense comme vous ! >http://search.msn.fr/ > > > >------------------------------------------------------- >This SF.net email is sponsored by: IBM Linux Tutorials. >Become an expert in LINUX or just sharpen your skills. Sign up for IBM's >Free Linux Tutorials. Learn everything from the bash shell to sys admin. >Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >_______________________________________________ >Quickfix-users mailing list >Qui...@li... >https://lists.sourceforge.net/lists/listinfo/quickfix-users _________________________________________________________________ Hotmail : un compte GRATUIT qui vous suit partout et tout le temps ! http://g.msn.fr/FR1000/9493 |