Problem in LOGON when LOGON message contain one empty field

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem in LOGON when LOGON message contain one empty field

Vipin Chaudhary
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hi All,

I am facing an issue with LOGON. We use Username(TAG# 553) and Password(Tag# 554) for authentication.

Now In one case when client send Username value as empty then quickfix doesnot send any response(not even logout) to this.

Following are logs

    Rejecting invalid message: quickfix.FieldException: Tag specified without a value,
     field=553: 8=FIX.4.4 9=113 35=A 34=1 49=DemoClient10 52=20170302-08: 58: 32.260 56=FixServerDev 98=0 108=60 141=Y 553= 554=test** 10=119

Tried to send a reject while not logged on: Tag specified without a value (field 553) quickfix.SessionException: Tried to send a reject while not logged on: Tag specified without a value (field 553)
at quickfix.Session.generateReject(Session.java: 1477) at quickfix.Session.next(Session.java: 1011) at quickfix.Session.next(Session.java: 1128) at quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java: 147) at quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java: 94) at quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java: 128) at java.lang.Thread.run(Thread.java: 745)

Its clear from the Log that input LOGON message is invalid, because Tag Value for tag 553 is empty.
QuickFix tried to send the reject but didn't send the reject because session is not logged in.

Not sure but Looks like this is bug at quickfix side ?
Because quickfix should send logout message to client in this case, or any other message which should tell client that
553 tag is empty or having invalid value.



Thanks
Vipin

------------------------------------------------------------------------------
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
|

Re: Problem in LOGON when LOGON message contain one empty field

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


Hi,

the Logon message could not be processed, so there is no active FIX Session. IMHO you cannot send a
Logout back in this case.

Regards,
Chris.



On 02/03/17 12:07, Vipin Chaudhary wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> Hi All,
>
> I am facing an issue with LOGON. We use Username(TAG# 553) and Password(Tag# 554) for authentication.
>
> Now In one case when client send Username value as empty then quickfix doesnot send any
> response(not even logout) to this.
>
> Following are logs
>
>     Rejecting invalid message: quickfix.FieldException: Tag specified without a value,
>      field=553: 8=FIX.4.4 9=113 35=A 34=1 49=DemoClient10 52=20170302-08: 58: 32.260
> 56=FixServerDev 98=0 108=60 141=Y 553= 554=test** 10=119
> Tried to send a reject while not logged on: Tag specified without a value (field 553)
> quickfix.SessionException: Tried to send a reject while not logged on: Tag specified without a
> value (field 553)
> at quickfix.Session.generateReject(Session.java: 1477) at quickfix.Session.next(Session.java:
> 1011) at quickfix.Session.next(Session.java: 1128) at
> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:
> 147) at
> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:
> 94) at
> quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:
> 128) at java.lang.Thread.run(Thread.java: 745)
> Its clear from the Log that input LOGON message is invalid, because Tag Value for tag 553 is empty.
> QuickFix tried to send the reject but didn't send the reject because session is not logged in.
> Not sure but Looks like this is bug at quickfix side ?
> Because quickfix should send logout message to client in this case, or any other message which
> should tell client that
> 553 tag is empty or having invalid value.
> Thanks
> Vipin
>
> ------------------------------------------------------------------------------
> 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
|

Re: Problem in LOGON when LOGON message contain one empty field

QuickFIX/J mailing list
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

I thought a little more about it. Actually it would be better to reject the Logon with a Logout
message in this case.
I've opened a JIRA issue: http://www.quickfixj.org/jira/browse/QFJ-929

Cheers,
Chris.


On 02/03/17 13:34, Christoph John wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
> Hi,
>
> the Logon message could not be processed, so there is no active FIX Session. IMHO you cannot send a
> Logout back in this case.
>
> Regards,
> Chris.
>
>
>
> On 02/03/17 12:07, Vipin Chaudhary wrote:
>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>> QuickFIX/J Support: http://www.quickfixj.org/support/
>>
>>
>>
>>
>> Hi All,
>>
>> I am facing an issue with LOGON. We use Username(TAG# 553) and Password(Tag# 554) for authentication.
>>
>> Now In one case when client send Username value as empty then quickfix doesnot send any
>> response(not even logout) to this.
>>
>> Following are logs
>>
>>      Rejecting invalid message: quickfix.FieldException: Tag specified without a value,
>>       field=553: 8=FIX.4.4 9=113 35=A 34=1 49=DemoClient10 52=20170302-08: 58: 32.260
>> 56=FixServerDev 98=0 108=60 141=Y 553= 554=test** 10=119
>> Tried to send a reject while not logged on: Tag specified without a value (field 553)
>> quickfix.SessionException: Tried to send a reject while not logged on: Tag specified without a
>> value (field 553)
>> at quickfix.Session.generateReject(Session.java: 1477) at quickfix.Session.next(Session.java:
>> 1011) at quickfix.Session.next(Session.java: 1128) at
>> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:
>> 147) at
>> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:
>> 94) at
>> quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:
>> 128) at java.lang.Thread.run(Thread.java: 745)
>> Its clear from the Log that input LOGON message is invalid, because Tag Value for tag 553 is empty.
>> QuickFix tried to send the reject but didn't send the reject because session is not logged in.
>> Not sure but Looks like this is bug at quickfix side ?
>> Because quickfix should send logout message to client in this case, or any other message which
>> should tell client that
>> 553 tag is empty or having invalid value.
>> Thanks
>> Vipin
>>
>> ------------------------------------------------------------------------------
>> 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
|

Re: Problem in LOGON when LOGON message contain one empty field

Vipin Chaudhary
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hi Christoph

I also think the same . It would be more meaningful to send the logout in this case.

Thanks
Vipin

On Mon, Jul 3, 2017 at 3:47 PM, Christoph John via Quickfixj-users <[hidden email]> wrote:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

I thought a little more about it. Actually it would be better to reject the Logon with a Logout message in this case.
I've opened a JIRA issue: http://www.quickfixj.org/jira/browse/QFJ-929

Cheers,
Chris.



On 02/03/17 13:34, Christoph John wrote:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

the Logon message could not be processed, so there is no active FIX Session. IMHO you cannot send a
Logout back in this case.

Regards,
Chris.



On 02/03/17 12:07, Vipin Chaudhary wrote:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/




Hi All,

I am facing an issue with LOGON. We use Username(TAG# 553) and Password(Tag# 554) for authentication.

Now In one case when client send Username value as empty then quickfix doesnot send any
response(not even logout) to this.

Following are logs

     Rejecting invalid message: quickfix.FieldException: Tag specified without a value,
      field=553: 8=FIX.4.4 9=113 35=A 34=1 49=DemoClient10 52=20170302-08: 58: 32.260
56=FixServerDev 98=0 108=60 141=Y 553= 554=test** 10=119
Tried to send a reject while not logged on: Tag specified without a value (field 553)
quickfix.SessionException: Tried to send a reject while not logged on: Tag specified without a
value (field 553)
at quickfix.Session.generateReject(Session.java: 1477) at quickfix.Session.next(Session.java:
1011) at quickfix.Session.next(Session.java: 1128) at
quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:
147) at
quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:
94) at
quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:
128) at java.lang.Thread.run(Thread.java: 745)
Its clear from the Log that input LOGON message is invalid, because Tag Value for tag 553 is empty.
QuickFix tried to send the reject but didn't send the reject because session is not logged in.
Not sure but Looks like this is bug at quickfix side ?
Because quickfix should send logout message to client in this case, or any other message which
should tell client that
553 tag is empty or having invalid value.
Thanks
Vipin

------------------------------------------------------------------------------
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


------------------------------------------------------------------------------
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
|

Re: Problem in LOGON when LOGON message contain one empty field

Øyvind Matheson Wergeland-2
In reply to this post by QuickFIX/J mailing list
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


I agree with Chris. Our counterpart responds with logout to invalid logins for N times. After that the account is locked and they stop responding. (If I remember correctly the last logout response says it in the logout message field.)

 -Øyvind

> Den 3. jul. 2017 kl. 12.17 skrev Christoph John via Quickfixj-users <[hidden email]>:
>
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
> Hi,
>
> I thought a little more about it. Actually it would be better to reject the Logon with a Logout message in this case.
> I've opened a JIRA issue: http://www.quickfixj.org/jira/browse/QFJ-929
>
> Cheers,
> Chris.
>
>
>> On 02/03/17 13:34, Christoph John wrote:
>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>> QuickFIX/J Support: http://www.quickfixj.org/support/
>>
>>
>> Hi,
>>
>> the Logon message could not be processed, so there is no active FIX Session. IMHO you cannot send a
>> Logout back in this case.
>>
>> Regards,
>> Chris.
>>
>>
>>
>>> On 02/03/17 12:07, Vipin Chaudhary wrote:
>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>>> QuickFIX/J Support: http://www.quickfixj.org/support/
>>>
>>>
>>>
>>>
>>> Hi All,
>>>
>>> I am facing an issue with LOGON. We use Username(TAG# 553) and Password(Tag# 554) for authentication.
>>>
>>> Now In one case when client send Username value as empty then quickfix doesnot send any
>>> response(not even logout) to this.
>>>
>>> Following are logs
>>>
>>>     Rejecting invalid message: quickfix.FieldException: Tag specified without a value,
>>>      field=553: 8=FIX.4.4 9=113 35=A 34=1 49=DemoClient10 52=20170302-08: 58: 32.260
>>> 56=FixServerDev 98=0 108=60 141=Y 553= 554=test** 10=119
>>> Tried to send a reject while not logged on: Tag specified without a value (field 553)
>>> quickfix.SessionException: Tried to send a reject while not logged on: Tag specified without a
>>> value (field 553)
>>> at quickfix.Session.generateReject(Session.java: 1477) at quickfix.Session.next(Session.java:
>>> 1011) at quickfix.Session.next(Session.java: 1128) at
>>> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:
>>> 147) at
>>> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:
>>> 94) at
>>> quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:
>>> 128) at java.lang.Thread.run(Thread.java: 745)
>>> Its clear from the Log that input LOGON message is invalid, because Tag Value for tag 553 is empty.
>>> QuickFix tried to send the reject but didn't send the reject because session is not logged in.
>>> Not sure but Looks like this is bug at quickfix side ?
>>> Because quickfix should send logout message to client in this case, or any other message which
>>> should tell client that
>>> 553 tag is empty or having invalid value.
>>> Thanks
>>> Vipin
>>>
>>> ------------------------------------------------------------------------------
>>> 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


------------------------------------------------------------------------------
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