Quantcast

Reset Connection after login

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Reset Connection after login

Roman Rek
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hello,

I have trouble that appears time after time.
I have daily sessions. After on session is end I restart all my services with quickfix and wait for next session to start.
In general I have next sequence on my log:

11 May 06:05:00.891 INFO (QFJ Timer) Session state is not current; resetting FIX.4.4:1016592
11 May 06:05:00.897 INFO (QFJ Timer) Initiated logon request
11 May 06:05:01.713 INFO (QFJ Message Processor) Received logon

But for some reason sometimes i received:
12 May 06:05:00.932 INFO (QFJ Timer) Initiated logon request
12 May 06:05:01.145 INFO (QFJ Message Processor) Received logon
12 May 06:05:01.152 INFO (QFJ Message Processor) (API) connectorStatusChanged event for Trade connector: 1, status: Connected
12 May 06:05:01.156 INFO (QFJ Message Processor) Session state is not current; resetting FIX.4.4
12 May 06:05:01.168 INFO (QFJ Message Processor) (API) connectorStatusChanged event for Trade connector: 1, status: Disconnected

Can it happen due to 1 second delay between checks of session time?
What is workaround against this?

Thank you,
Roman

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reset Connection after login

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hi,
which QFJ version are you using?
Cheers

Am 19. Mai 2017 17:45:19 MESZ schrieb Roman Rek <[hidden email]>:
Hello,

I have trouble that appears time after time.
I have daily sessions. After on session is end I restart all my services with quickfix and wait for next session to start.
In general I have next sequence on my log:

11 May 06:05:00.891 INFO (QFJ Timer) Session state is not current; resetting FIX.4.4:1016592
11 May 06:05:00.897 INFO (QFJ Timer) Initiated logon request
11 May 06:05:01.713 INFO (QFJ Message Processor) Received logon

But for some reason sometimes i received:
12 May 06:05:00.932 INFO (QFJ Timer) Initiated logon request
12 May 06:05:01.145 INFO (QFJ Message Processor) Received logon
12 May 06:05:01.152 INFO (QFJ Message Processor) (API) connectorStatusChanged event for Trade connector: 1, status: Connected
12 May 06:05:01.156 INFO (QFJ Message Processor) Session state is not current; resetting FIX.4.4
12 May 06:05:01.168 INFO (QFJ Message Processor) (API) connectorStatusChanged event for Trade connector: 1, status: Disconnected

Can it happen due to 1 second delay between checks of session time?
What is workaround against this?

Thank you,
Roman

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reset Connection after login

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



IIRC versions below 1.6.0 were showing a similar behaviour.

Am 19. Mai 2017 19:26:49 MESZ schrieb Christoph John <[hidden email]>:
Hi,
which QFJ version are you using?
Cheers

Am 19. Mai 2017 17:45:19 MESZ schrieb Roman Rek <[hidden email]>:
Hello,

I have trouble that appears time after time.
I have daily sessions. After on session is end I restart all my services with quickfix and wait for next session to start.
In general I have next sequence on my log:

11 May 06:05:00.891 INFO (QFJ Timer) Session state is not current; resetting FIX.4.4:1016592
11 May 06:05:00.897 INFO (QFJ Timer) Initiated logon request
11 May 06:05:01.713 INFO (QFJ Message Processor) Received logon

But for some reason sometimes i received:
12 May 06:05:00.932 INFO (QFJ Timer) Initiated logon request
12 May 06:05:01.145 INFO (QFJ Message Processor) Received logon
12 May 06:05:01.152 INFO (QFJ Message Processor) (API) connectorStatusChanged event for Trade connector: 1, status: Connected
12 May 06:05:01.156 INFO (QFJ Message Processor) Session state is not current; resetting FIX.4.4
12 May 06:05:01.168 INFO (QFJ Message Processor) (API) connectorStatusChanged event for Trade connector: 1, status: Disconnected

Can it happen due to 1 second delay between checks of session time?
What is workaround against this?

Thank you,
Roman

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reset Connection after login

Roman Rek
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



We are using 1.6.0 version of QFJ

2017-05-19 20:29 GMT+03:00 Christoph John <[hidden email]>:
QuickFIX/J Documentation: <a href="http://www.quickfixj.org/documentation/ QuickFIX/J" rel="noreferrer" target="_blank">http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



IIRC versions below 1.6.0 were showing a similar behaviour.

Am 19. Mai 2017 19:26:49 MESZ schrieb Christoph John <[hidden email]>:
Hi,
which QFJ version are you using?
Cheers

Am 19. Mai 2017 17:45:19 MESZ schrieb Roman Rek <[hidden email]>:
Hello,

I have trouble that appears time after time.
I have daily sessions. After on session is end I restart all my services with quickfix and wait for next session to start.
In general I have next sequence on my log:

11 May 06:05:00.891 INFO (QFJ Timer) Session state is not current; resetting FIX.4.4:1016592
11 May 06:05:00.897 INFO (QFJ Timer) Initiated logon request
11 May 06:05:01.713 INFO (QFJ Message Processor) Received logon

But for some reason sometimes i received:
12 May 06:05:00.932 INFO (QFJ Timer) Initiated logon request
12 May 06:05:01.145 INFO (QFJ Message Processor) Received logon
12 May 06:05:01.152 INFO (QFJ Message Processor) (API) connectorStatusChanged event for Trade connector: 1, status: Connected
12 May 06:05:01.156 INFO (QFJ Message Processor) Session state is not current; resetting FIX.4.4
12 May 06:05:01.168 INFO (QFJ Message Processor) (API) connectorStatusChanged event for Trade connector: 1, status: Disconnected

Can it happen due to 1 second delay between checks of session time?
What is workaround against this?

Thank you,
Roman

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reset Connection after login

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


I think the problem might be that the Logon is trying to be sent before the Session is created.
I've never seen this before, though. What do you do in your code? Are you only starting the
Initiator or are you doing other stuff with the Session?

Chris.


On 22/05/17 11:30, Roman Rek wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> We are using 1.6.0 version of QFJ
>
> 2017-05-19 20:29 GMT+03:00 Christoph John <[hidden email] <mailto:[hidden email]>>:
>
>     QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>     QuickFIX/J <http://www.quickfixj.org/documentation/%0AQuickFIX/J> Support:
>     http://www.quickfixj.org/support/ <http://www.quickfixj.org/support/>
>
>
>
>     IIRC versions below 1.6.0 were showing a similar behaviour.
>
>     Am 19. Mai 2017 19:26:49 MESZ schrieb Christoph John <[hidden email]
>     <mailto:[hidden email]>>:
>
>         Hi,
>         which QFJ version are you using?
>         Cheers
>
>         Am 19. Mai 2017 17:45:19 MESZ schrieb Roman Rek <[hidden email]
>         <mailto:[hidden email]>>:
>
>             Hello,
>
>             I have trouble that appears time after time.
>             I have daily sessions. After on session is end I restart all my services with quickfix
>             and wait for next session to start.
>             In general I have next sequence on my log:
>
>             11 May 06:05:00.891 INFO (QFJ Timer) Session state is not current; resetting
>             FIX.4.4:1016592
>             11 May 06:05:00.897 INFO (QFJ Timer) Initiated logon request
>             11 May 06:05:01.713 INFO (QFJ Message Processor) Received logon
>
>             But for some reason sometimes i received:
>             12 May 06:05:00.932 INFO (QFJ Timer) Initiated logon request
>             12 May 06:05:01.145 INFO (QFJ Message Processor) Received logon
>             12 May 06:05:01.152 INFO (QFJ Message Processor) (API) connectorStatusChanged event
>             for Trade connector: 1, status: Connected
>             12 May 06:05:01.156 INFO (QFJ Message Processor) Session state is not current;
>             resetting FIX.4.4
>             12 May 06:05:01.168 INFO (QFJ Message Processor) (API) connectorStatusChanged event
>             for Trade connector: 1, status: Disconnected
>
>             Can it happen due to 1 second delay between checks of session time?
>             What is workaround against this?
>
>             Thank you,
>             Roman
>
>
>     ------------------------------------------------------------------------------
>     Check out the vibrant tech community on one of the world's most
>     engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>     _______________________________________________
>     Quickfixj-users mailing list
>     [hidden email] <mailto:[hidden email]>
>     https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>     <https://lists.sourceforge.net/lists/listinfo/quickfixj-users>
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:[hidden email]
       


http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reset Connection after login

Roman Rek
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



We are only create Initiator and Acceptor. 

Roman

2017-05-22 14:39 GMT+03:00 Christoph John <[hidden email]>:
QuickFIX/J Documentation: <a href="http://www.quickfixj.org/documentation/ QuickFIX/J" rel="noreferrer" target="_blank">http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


I think the problem might be that the Logon is trying to be sent before the Session is created.
I've never seen this before, though. What do you do in your code? Are you only starting the
Initiator or are you doing other stuff with the Session?

Chris.


On 22/05/17 11:30, Roman Rek wrote:
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> We are using 1.6.0 version of QFJ
>
> 2017-05-19 20:29 GMT+03:00 Christoph John <[hidden email] <mailto:[hidden email]>>:
>
>     QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>     QuickFIX/J <http://www.quickfixj.org/documentation/%0AQuickFIX/J> Support:
>     http://www.quickfixj.org/support/ <http://www.quickfixj.org/support/>
>
>
>
>     IIRC versions below 1.6.0 were showing a similar behaviour.
>
>     Am 19. Mai 2017 19:26:49 MESZ schrieb Christoph John <[hidden email]
>     <mailto:[hidden email]>>:
>
>         Hi,
>         which QFJ version are you using?
>         Cheers
>
>         Am 19. Mai 2017 17:45:19 MESZ schrieb Roman Rek <[hidden email]
>         <mailto:[hidden email]>>:
>
>             Hello,
>
>             I have trouble that appears time after time.
>             I have daily sessions. After on session is end I restart all my services with quickfix
>             and wait for next session to start.
>             In general I have next sequence on my log:
>
>             11 May 06:05:00.891 INFO (QFJ Timer) Session state is not current; resetting
>             FIX.4.4:1016592
>             11 May 06:05:00.897 INFO (QFJ Timer) Initiated logon request
>             11 May 06:05:01.713 INFO (QFJ Message Processor) Received logon
>
>             But for some reason sometimes i received:
>             12 May 06:05:00.932 INFO (QFJ Timer) Initiated logon request
>             12 May 06:05:01.145 INFO (QFJ Message Processor) Received logon
>             12 May 06:05:01.152 INFO (QFJ Message Processor) (API) connectorStatusChanged event
>             for Trade connector: 1, status: Connected
>             12 May 06:05:01.156 INFO (QFJ Message Processor) Session state is not current;
>             resetting FIX.4.4
>             12 May 06:05:01.168 INFO (QFJ Message Processor) (API) connectorStatusChanged event
>             for Trade connector: 1, status: Disconnected
>
>             Can it happen due to 1 second delay between checks of session time?
>             What is workaround against this?
>
>             Thank you,
>             Roman
>
>
>     ------------------------------------------------------------------------------
>     Check out the vibrant tech community on one of the world's most
>     engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>     _______________________________________________
>     Quickfixj-users mailing list
>     [hidden email] <mailto:[hidden email]>
>     https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>     <https://lists.sourceforge.net/lists/listinfo/quickfixj-users>
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028">+49 241 557080-28
Mailto:[hidden email]



http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a href="tel:%2B49%20241%20557080-0" value="+492415570800">+49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010">+49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reset Connection after login

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


When you say "restart services": does this mean you start and stop the whole application or do you
leave your app running and just call initiator.stop() and start() from within your application?

Chris.

On 22/05/17 14:55, Roman Rek wrote:

> We are only create Initiator and Acceptor.
>
> Roman
>
> 2017-05-22 14:39 GMT+03:00 Christoph John <[hidden email] <mailto:[hidden email]>>:
>
>     QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>     QuickFIX/J <http://www.quickfixj.org/documentation/%0AQuickFIX/J> Support:
>     http://www.quickfixj.org/support/ <http://www.quickfixj.org/support/>
>
>
>     I think the problem might be that the Logon is trying to be sent before the Session is created.
>     I've never seen this before, though. What do you do in your code? Are you only starting the
>     Initiator or are you doing other stuff with the Session?
>
>     Chris.
>
>
>     On 22/05/17 11:30, Roman Rek wrote:
>     > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>     <http://www.quickfixj.org/documentation/>
>     > QuickFIX/J Support: http://www.quickfixj.org/support/ <http://www.quickfixj.org/support/>
>     >
>     >
>     >
>     >
>     > We are using 1.6.0 version of QFJ
>     >
>     > 2017-05-19 20:29 GMT+03:00 Christoph John <[hidden email]
>     <mailto:[hidden email]> <mailto:[hidden email]
>     <mailto:[hidden email]>>>:
>     >
>     >     QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>     <http://www.quickfixj.org/documentation/>
>     >     QuickFIX/J <http://www.quickfixj.org/documentation/%0AQuickFIX/J
>     <http://www.quickfixj.org/documentation/%0AQuickFIX/J>> Support:
>     > http://www.quickfixj.org/support/ <http://www.quickfixj.org/support/>
>     <http://www.quickfixj.org/support/ <http://www.quickfixj.org/support/>>
>     >
>     >
>     >
>     >     IIRC versions below 1.6.0 were showing a similar behaviour.
>     >
>     >     Am 19. Mai 2017 19:26:49 MESZ schrieb Christoph John <[hidden email]
>     <mailto:[hidden email]>
>     >     <mailto:[hidden email] <mailto:[hidden email]>>>:
>     >
>     >         Hi,
>     >         which QFJ version are you using?
>     >         Cheers
>     >
>     >         Am 19. Mai 2017 17:45:19 MESZ schrieb Roman Rek <[hidden email]
>     <mailto:[hidden email]>
>     >         <mailto:[hidden email] <mailto:[hidden email]>>>:
>     >
>     >             Hello,
>     >
>     >             I have trouble that appears time after time.
>     >             I have daily sessions. After on session is end I restart all my services with
>     quickfix
>     >             and wait for next session to start.
>     >             In general I have next sequence on my log:
>     >
>     >             11 May 06:05:00.891 INFO (QFJ Timer) Session state is not current; resetting
>     >             FIX.4.4:1016592
>     >             11 May 06:05:00.897 INFO (QFJ Timer) Initiated logon request
>     >             11 May 06:05:01.713 INFO (QFJ Message Processor) Received logon
>     >
>     >             But for some reason sometimes i received:
>     >             12 May 06:05:00.932 INFO (QFJ Timer) Initiated logon request
>     >             12 May 06:05:01.145 INFO (QFJ Message Processor) Received logon
>     >             12 May 06:05:01.152 INFO (QFJ Message Processor) (API) connectorStatusChanged event
>     >             for Trade connector: 1, status: Connected
>     >             12 May 06:05:01.156 INFO (QFJ Message Processor) Session state is not current;
>     >             resetting FIX.4.4
>     >             12 May 06:05:01.168 INFO (QFJ Message Processor) (API) connectorStatusChanged event
>     >             for Trade connector: 1, status: Disconnected
>     >
>     >             Can it happen due to 1 second delay between checks of session time?
>     >             What is workaround against this?
>     >
>     >             Thank you,
>     >             Roman
>     >
>

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:[hidden email]
       


http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reset Connection after login

Roman Rek
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



I am restarting whole app. I'ts done near 8 hours before next session should start.

2017-05-22 17:33 GMT+03:00 Christoph John <[hidden email]>:
QuickFIX/J Documentation: <a href="http://www.quickfixj.org/documentation/ QuickFIX/J" rel="noreferrer" target="_blank">http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


When you say "restart services": does this mean you start and stop the whole application or do you
leave your app running and just call initiator.stop() and start() from within your application?

Chris.

On 22/05/17 14:55, Roman Rek wrote:
> We are only create Initiator and Acceptor.
>
> Roman
>
> 2017-05-22 14:39 GMT+03:00 Christoph John <[hidden email] <mailto:[hidden email]>>:
>
>     QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>     QuickFIX/J <http://www.quickfixj.org/documentation/%0AQuickFIX/J> Support:
>     http://www.quickfixj.org/support/ <http://www.quickfixj.org/support/>
>
>
>     I think the problem might be that the Logon is trying to be sent before the Session is created.
>     I've never seen this before, though. What do you do in your code? Are you only starting the
>     Initiator or are you doing other stuff with the Session?
>
>     Chris.
>
>
>     On 22/05/17 11:30, Roman Rek wrote:
>     > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>     <http://www.quickfixj.org/documentation/>
>     > QuickFIX/J Support: http://www.quickfixj.org/support/ <http://www.quickfixj.org/support/>
>     >
>     >
>     >
>     >
>     > We are using 1.6.0 version of QFJ
>     >
>     > 2017-05-19 20:29 GMT+03:00 Christoph John <[hidden email]
>     <mailto:[hidden email]> <mailto:[hidden email]
>     <mailto:[hidden email]>>>:
>     >
>     >     QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>     <http://www.quickfixj.org/documentation/>
>     >     QuickFIX/J <http://www.quickfixj.org/documentation/%0AQuickFIX/J
>     <http://www.quickfixj.org/documentation/%0AQuickFIX/J>> Support:
>     > http://www.quickfixj.org/support/ <http://www.quickfixj.org/support/>
>     <http://www.quickfixj.org/support/ <http://www.quickfixj.org/support/>>
>     >
>     >
>     >
>     >     IIRC versions below 1.6.0 were showing a similar behaviour.
>     >
>     >     Am 19. Mai 2017 19:26:49 MESZ schrieb Christoph John <[hidden email]
>     <mailto:[hidden email]>
>     >     <mailto:[hidden email] <mailto:[hidden email]>>>:
>     >
>     >         Hi,
>     >         which QFJ version are you using?
>     >         Cheers
>     >
>     >         Am 19. Mai 2017 17:45:19 MESZ schrieb Roman Rek <[hidden email]
>     <mailto:[hidden email]>
>     >         <mailto:[hidden email] <mailto:[hidden email]>>>:
>     >
>     >             Hello,
>     >
>     >             I have trouble that appears time after time.
>     >             I have daily sessions. After on session is end I restart all my services with
>     quickfix
>     >             and wait for next session to start.
>     >             In general I have next sequence on my log:
>     >
>     >             11 May 06:05:00.891 INFO (QFJ Timer) Session state is not current; resetting
>     >             FIX.4.4:1016592
>     >             11 May 06:05:00.897 INFO (QFJ Timer) Initiated logon request
>     >             11 May 06:05:01.713 INFO (QFJ Message Processor) Received logon
>     >
>     >             But for some reason sometimes i received:
>     >             12 May 06:05:00.932 INFO (QFJ Timer) Initiated logon request
>     >             12 May 06:05:01.145 INFO (QFJ Message Processor) Received logon
>     >             12 May 06:05:01.152 INFO (QFJ Message Processor) (API) connectorStatusChanged event
>     >             for Trade connector: 1, status: Connected
>     >             12 May 06:05:01.156 INFO (QFJ Message Processor) Session state is not current;
>     >             resetting FIX.4.4
>     >             12 May 06:05:01.168 INFO (QFJ Message Processor) (API) connectorStatusChanged event
>     >             for Trade connector: 1, status: Disconnected
>     >
>     >             Can it happen due to 1 second delay between checks of session time?
>     >             What is workaround against this?
>     >
>     >             Thank you,
>     >             Roman
>     >
>

--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028">+49 241 557080-28
Mailto:[hidden email]



http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a href="tel:%2B49%20241%20557080-0" value="+492415570800">+49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010">+49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reset Connection after login

Christoph John
In reply to this post by Roman Rek
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/





On 23/05/17 09:24, Christoph John wrote:
Hi Nickolay,

thanks for the information. It was helpful in understanding the problem.
Your analysis might be correct. If I'm not mistaken then the reset-check should also be done when the message is a Logon message. What do you think? But need to reproduce/test it to be sure.
Are you able to open a github pull request [1] or a JIRA issue [2] for this?

Thanks in advance and best regards,
Chris.

[1] https://github.com/quickfix-j/quickfixj/pulls
[2] http://www.quickfixj.org/jira/projects/QFJ/summary

On 22/05/17 18:43, [hidden email] wrote:

Hi Chris,

 

here the scenario:

 

our application handled several FIX sessions (initiators)

app started in the off time – FIX sessions are successfully created and reset

 

11 May 23:40:10.450 INFO (Thread-3) Session FIX.4.4:SENDER_ONE->TARGET schedule is THU 04:05:00-UTC - THU 20:30:00-UTC

11 May 23:40:10.452 INFO (Thread-3) Session state is not current; resetting FIX.4.4:SENDER_ONE->TARGET

11 May 23:40:10.459 INFO (Thread-3) Created session: FIX.4.4:SENDER_ONE->TARGET

 

11 May 23:40:10.501 INFO (Thread-3) Session FIX.4.4:SENDER_TWO->TARGET schedule is THU 04:07:00-UTC - THU 20:30:00-UTC

11 May 23:40:10.502 INFO (Thread-3) Session state is not current; resetting FIX.4.4:SENDER_TWO->TARGET

11 May 23:40:10.509 INFO (Thread-3) Created session: FIX.4.4:SENDER_TWO->TARGET

 

on the next day logons are initiated according to session’s schedules

 

but the first session reset is happened in the middle of message handling:

(which is result in re-logon and “MsgSeqNum too low” issue)

 

# SENDER_ONE

12 May 06:05:00.932 INFO (QFJ Timer) Initiated logon request

12 May 06:05:01.145 INFO (QFJ Message Processor) Received logon

12 May 06:05:01.149 INFO (QFJ Message Processor) Sent ResendRequest FROM: 1 TO: 2385

12 May 06:05:01.150 INFO (QFJ Message Processor) Logon has been established: FIX.4.4:SENDER_ONE->TARGET

12 May 06:05:01.156 INFO (QFJ Message Processor) Session state is not current; resetting FIX.4.4:SENDER_ONE->TARGET

12 May 06:05:01.168 INFO (QFJ Message Processor) Session has been logged out: FIX.4.4:SENDER_ONE->TARGET

12 May 06:05:16.928 INFO (QFJ Timer) Initiated logon request

12 May 06:05:17.160 INFO (QFJ Message Processor) Received logout request: MsgSeqNum too low, expecting 4 but received 1

 

on other hand second session starts normally (reset happens before logon):

 

# SENDER_TWO

12 May 06:07:00.929 INFO (QFJ Timer) Session state is not current; resetting FIX.4.4:SENDER_TWO->TARGET

12 May 06:07:00.930 INFO (QFJ Timer) Initiated logon request

12 May 06:07:01.103 INFO (QFJ Message Processor) Received logon

12 May 06:07:01.103 INFO (QFJ Message Processor) Sent ResendRequest FROM: 1 TO: 2612

12 May 06:07:01.103 INFO (QFJ Message Processor) Logon has been established: FIX.4.4:SENDER_TWO->TARGET

 

I guess the problem is how session reset is handled in Session::next() method:

look like sometimes the previous session time check is happenning less then 1 sec ago – it is skipped – and as a result session reset is accured already after logon

 

if (sessionSchedule != null && !sessionSchedule.isNonStopSession()) {
   
// Only check the session time once per second at most. It isn't
    // necessary to do for every message received.
   
final long now = SystemTime.currentTimeMillis();
    if
((now - lastSessionTimeCheck) >= 1000L) {
       
lastSessionTimeCheck = now;
        if
(!isSessionTime()) {
           
if (state.isResetNeeded()) {
                reset()
; // only reset if seq nums are != 1
            
}
           
return; // since we are outside of session time window
       
} else {
            resetIfSessionNotCurrent(
sessionID, now);
       
}
    }
}

 

Best Regards,

Nickolay Dul

 



--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
 Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald


take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reset Connection after login

Christoph John
In reply to this post by Roman Rek
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hi Nick,

thanks for creating the issue. Please add your comments to the issue otherwise they will get lost whenever someone is trying to fix it.

Cheers,
Chris.

On 23/05/17 11:14, Nickolay Dul wrote:
Hi Chris, 

>Are you able to open a github pull request [1] or a JIRA issue [2] for this?
done
http://www.quickfixj.org/jira/browse/QFJ-926

unfortunately i still have no reliable fix for this (just because not very familiar with QuickFIX/J code)

perhaps we should add additional check - like: 
if ((now - lastSessionTimeCheck) >= 1000L || (!state.isLogonReceived() && state.isLogonSendNeeded())) {

Thanks,
Nick

2017-05-23 10:24 GMT+03:00 Christoph John <[hidden email]>:
Hi Nickolay,

thanks for the information. It was helpful in understanding the problem.
Your analysis might be correct. If I'm not mistaken then the reset-check should also be done when the message is a Logon message. What do you think? But need to reproduce/test it to be sure.
Are you able to open a github pull request [1] or a JIRA issue [2] for this?

Thanks in advance and best regards,
Chris.

[1] https://github.com/quickfix-j/quickfixj/pulls
[2] http://www.quickfixj.org/jira/projects/QFJ/summary


--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
 Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald


take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Loading...