Thread: [Quickfix-developers] QuickFix.SessionNotFound
Brought to you by:
orenmnero
|
From: Mike S. <MS...@rj...> - 2006-08-25 18:44:08
|
I know this is a very beginner level question, but I am going absolutely nuts trying to figure out why I'm getting a QuickFix.SessionNotFound exception. I've got a C# application in which the startup code is the following... SessionSettings settings =3D new SessionSettings(dataReader["Session_Path"].ToString()); ICEApplication application =3D new ICEApplication(); MSSQLStoreFactory storeFactory =3D new MSSQLStoreFactory(settings); MessageFactory messageFactory =3D new DefaultMessageFactory(); ScreenLogFactory logFactory =3D new ScreenLogFactory(true,true,true); ThreadedSocketInitiator initiator =3D new ThreadedSocketInitiator(application, storeFactory, settings, logFactory, messageFactory); I've confirmed that dataReader["Session_Path"].ToString() points to a valid file, which contains the following session definition # default settings for sessions [DEFAULT] ConnectionType=3Dinitiator ReconnectInterval=3D60 #ICE session definition [SESSION] BeginString=3DFIX.4.2 TargetCompID=3DICE SenderCompID=3D1755 SessionQualifier=3DICE StartTime=3D01:00:00 EndTime=3D22:00:00 HeartBtInt=3D30 SocketConnectPort=3D80 SocketConnectHost=3D1.1.1.1 DataDictionary=3DC:\Projects\FIX42_ICE.xml MillisecondsInTimeStamp=3DY SendResetSeqNumFlag=3DY MSSQLStoreDatabase=3Dxxxx MSSQLStoreUser=3Dxxxx MSSQLStorePassword=3Dxxxx MSSQLStoreHost=3Dxxxx I've then also gone to the database and have the following in the Sessions table Beginstring - FIX.4.2 Sendercompid - 1755 Targetcompid - ICE Session_qualifier - ICE Creation_time - 8/9/2006 5:22:58 PM Incoming_seqnum - 1 Outgoing_seqnum - 1 That should be all I need, right? Can anybody think of anything else? Thanks, Mike |
|
From: Oren M. <or...@qu...> - 2006-08-25 19:20:58
|
Where exactly are you getting the exception? Are you trying to send a message? How are you doing it? --oren On Aug 25, 2006, at 1:43 PM, Mike Smith wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ > html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > I know this is a very beginner level question, but I am going > absolutely > nuts trying to figure out why I'm getting a QuickFix.SessionNotFound > exception. |
|
From: Mike S. <MS...@rj...> - 2006-08-25 19:48:19
|
The exception comes when instantiating ThreadedSocketInitiator ThreadedSocketInitiator initiator =3D new ThreadedSocketInitiator(application, storeFactory, settings, logFactory, messageFactory); -----Original Message----- From: Oren Miller [mailto:or...@qu...]=20 Sent: Friday, August 25, 2006 2:21 PM To: Mike Smith Cc: qui...@li... Subject: Re: [Quickfix-developers] QuickFix.SessionNotFound Where exactly are you getting the exception? Are you trying to send =20 a message? How are you doing it? --oren On Aug 25, 2006, at 1:43 PM, Mike Smith wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/=20 > html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > I know this is a very beginner level question, but I am going =20 > absolutely > nuts trying to figure out why I'm getting a QuickFix.SessionNotFound > exception. |
|
From: Guy M. <gu...@ea...> - 2006-09-04 08:41:20
|
Hi, I'm having the same problem in the same place in C# code. I did not have this problem when i used Console App. only when i use a Win App it happens Any suggestions? Can it be related to some conflicts between managed/umanaged code? Guy Mugrabi Mike Smith-14 wrote: > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > The exception comes when instantiating ThreadedSocketInitiator > > ThreadedSocketInitiator initiator = new > ThreadedSocketInitiator(application, storeFactory, settings, logFactory, > messageFactory); > > -----Original Message----- > From: Oren Miller [mailto:or...@qu...] > Sent: Friday, August 25, 2006 2:21 PM > To: Mike Smith > Cc: qui...@li... > Subject: Re: [Quickfix-developers] QuickFix.SessionNotFound > > Where exactly are you getting the exception? Are you trying to send > a message? How are you doing it? > > --oren > > On Aug 25, 2006, at 1:43 PM, Mike Smith wrote: > >> QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ >> html/index.html >> QuickFIX Support: http://www.quickfixengine.org/services.html >> >> I know this is a very beginner level question, but I am going >> absolutely >> nuts trying to figure out why I'm getting a QuickFix.SessionNotFound >> exception. > > > ------------------------------------------------------------------------- > 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 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > -- View this message in context: http://www.nabble.com/QuickFix.SessionNotFound-tf2166375.html#a6131816 Sent from the QuickFIX - Dev forum at Nabble.com. |
|
From: Alex <al...@ec...> - 2006-09-04 22:50:42
|
Oren, months ago Francis Gingras send you a project demonstrating a release resource problem in QuickFix. Have you seen what's causing this? Alex -----Original Message----- Greg, This is what I use and it works fine with .NET 1.1 but with 2.0 you'll need the latest sources from CVS. socket.stop(); socket = null; GC.Collect(); GC.WaitForPendingFinalizers(); Francis -----Original Message----- From: Greg Chase [mailto:greg@...] Sent: Saturday, May 06, 2006 14:14 To: Francis Gingras Cc: quickfix-users@... Subject: Re: [Quickfix-users] Re: Re: .NET Can not open bpdy file ... unreleased resources I too am having trouble releasing resources. I'm using VS 2005, C# and .Net 2.0. How should one properly close down an initiator in .Net? The flow of my application is: -------------------------------------- settings = new SessionSettings(configFile); storeFactory = new FileStoreFactory(settings); logFactory = new FileLogFactory(settings); messageFactory = new DefaultMessageFactory(); initiator = new ThreadedSocketInitiator(this, storeFactory, settings, logFactory, messageFactory); ... initiator.start(); ... initiator.stop(); initiator = null; settings = null; storeFactory = null; logFactory = null; messageFactory = null; ---------------------------------------- At this point all of the four storage files are still locked (can't be opened in notepad). Forcing garbage collection doesn't help. Is anyone able to successfully release ThreadedSocketInitiator resources in .Net? Greg On 5/2/06, Francis Gingras <francis@...> wrote: > > > Tom, > > Just so you know, I sent a project to Oren that demonstrates the problem. > > > Francis -- Gregory Chase Managing Partner Chase Capital Management, LLC -- Alex Araujo Banif Banco de Investimento |
|
From: Oren M. <or...@qu...> - 2006-09-05 13:07:09
|
This was fixed a long time ago. What version of QuickFIX are you using? --oren > Oren, months ago Francis Gingras send you a project demonstrating a > release resource problem in QuickFix. Have you seen what's causing > this? |
|
From: Alex <al...@ec...> - 2006-09-05 13:54:44
|
The latest: 1.12.2. -- Alex Araujo Banif Banco de Investimento -----Mensagem original----- De: Oren Miller [mailto:or...@qu...] Enviada em: Tuesday, September 05, 2006 10:07 AM Para: Alex Cc: qui...@li...; qui...@li... Assunto: Re: [Quickfix-users] .NET Can not open body file ... unreleased resources This was fixed a long time ago. What version of QuickFIX are you using? --oren > Oren, months ago Francis Gingras send you a project demonstrating a > release resource problem in QuickFix. Have you seen what's causing > this? |
|
From: Alex <al...@ec...> - 2006-09-05 20:25:06
|
OK, probably the error was reintroduced by some other change. You remember what you have done to correct this problem? -- Banif Banco de Investimento Av. Presidente Juscelino Kubitschek n=BA 1.700 - 15=BA andar - S=E3o = Paulo, SP - CEP 04552-080 Tel.: (55) (11) 3074-8046 - Fax: (55) (11) 3074-8140 Email: al...@ec... =20 -----Mensagem original----- De: Oren Miller [mailto:or...@qu...]=20 Enviada em: Tuesday, September 05, 2006 10:07 AM Para: Alex Cc: qui...@li...; qui...@li... Assunto: Re: [Quickfix-users] .NET Can not open body file ... unreleased resources This was fixed a long time ago. What version of QuickFIX are you using? --oren > Oren, months ago Francis Gingras send you a project demonstrating a=20 > release resource problem in QuickFix. Have you seen what's causing=20 > this? |
|
From: Alex <al...@ec...> - 2006-09-11 14:40:19
|
Oren, You remember what you have done to correct this problem? -- Alex Araujo Banif Banco de Investimento -----Mensagem original----- De: Oren Miller [mailto:or...@qu...] Enviada em: Tuesday, September 05, 2006 10:07 AM Para: Alex Cc: qui...@li...; qui...@li... Assunto: Re: [Quickfix-users] .NET Can not open body file ... unreleased resources This was fixed a long time ago. What version of QuickFIX are you using? --oren > Oren, months ago Francis Gingras send you a project demonstrating a > release resource problem in QuickFix. Have you seen what's causing > this? |
|
From: Oren M. <or...@qu...> - 2006-09-05 13:11:21
|
And what version of QF are you using? > The exception comes when instantiating ThreadedSocketInitiator > > ThreadedSocketInitiator initiator = new > ThreadedSocketInitiator(application, storeFactory, settings, > logFactory, > messageFactory); |