Login sequence

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

Login sequence

Dasun Perera
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/
Hi Steve,

This is Muscat, Oman stock exchange... it looks that I have to take care
about this second auth request from my application. Can I send a normal
message with 35=A and 141=Y as I send buy/sell. Or can I invoke second login
after the first login happens.. appreciate any suggestions..

 Let me cut and paste what their FIX document says..
-------FIX DOC --------
The Logon message authenticates the user establishing a connection to the
CAP FIX. The Logon message must
be the first message sent by the application requesting to initiate a FIX
Session.
The authentication is based on the following fields :
. SenderSubID ( 50 - Header ) : HUB Subscriber ID - Assigned by the exchange
. RawDataLength ( 95 ) and RawData ( 96 ) : HUB password - Assigned by the
exchange
In case of invalid logon, the member application receives a logout message
with a text field explaining the cause of
the rejection.
Sequence Reset ( ResetSeqNumFlag set to 'Y' ) is always initiated by the CAP
FIX. If the client application initiates
the Sequence Reset, the CAP will respond with a Logout message (35=5).

------FIX DOC---------

Dasun Perera
-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of
[hidden email]
Sent: Monday, February 26, 2007 11:32 PM
To: [hidden email]
Subject: Quickfixj-users Digest, Vol 9, Issue 8

Send Quickfixj-users mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/quickfixj-users
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Quickfixj-users digest..."


Today's Topics:

   1. Re: InvalidMessage exception (Shepheard, Toby (London))
   2. [Fwd: quickfixj-users] ([hidden email])
   3. Re: [Fwd: quickfixj-users] (Steve Bate)
   4. CN=Alvin Wang/O=FFTW is out of the office. (Alvin Wang)
   5. Re: [Fwd: quickfixj-users] (Oren Miller)
   6. [BANZAI] LOGOFF - LOGON fails ([hidden email])
   7. Re: [Fwd: quickfixj-users] ([hidden email])


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

Message: 1
Date: Fri, 23 Feb 2007 10:44:25 -0000
From: "Shepheard, Toby \(London\)" <[hidden email]>
Subject: Re: [Quickfixj-users] InvalidMessage exception
To: <[hidden email]>
Message-ID:
        <[hidden email]>
Content-Type: text/plain; charset="us-ascii"

Can you show us an example of the message string that you're passing in
from the counterparty, along with the reported actual and expected
message lengths? It might give a clue as to where in the message the
problem is occurring, and in turn help nail where in the code the
problem is.

>From what you said below, is it correct to infer that this was working
for 1.0.4 but broken in 1.0.5?


-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of
Alvin Wang
Sent: 22 February 2007 20:14
To: [hidden email]
Cc: [hidden email];
[hidden email]
Subject: Re: [Quickfixj-users] InvalidMessage exception


QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/
Basically, I received the message from counterparty via FIX as a string,
then I use "new Message(String str)". It is correct that that message
string contains some repeating group, but that should not be relevant as
the message is not built by my code, instead it was received as a
string.

I am using QuickFIX/J 1.0.5, I just wonder if there is any change in
FieldMap.java from 1.0.4 to 1.0.5?
Thanks.

Alvin




 

             "Shepheard, Toby

             (London)"

             <Toby_Shepheard@m
To
             l.com>
<[hidden email].
             Sent by:                  net>

             quickfixj-users-b
cc
             [hidden email]

             ceforge.net
Subject
                                       Re: [Quickfixj-users]

                                       InvalidMessage exception

             02/21/2007 08:07

             AM

 

 

             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/
In general terms it's simply saying that your FIX message isn't
constructed properly.

I think this can happen when you don't build a group properly, for
example adding fields to the body directly rather than as part of a
group. Another possibility is that you have a RawData field without a
RawDataLength preceding it.

It would help to see the code that's building the message header and
body, including construction of any groups, if the above doesn't help
you fix the problem.

Regards,
Toby



-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of
Alvin Wang
Sent: 20 February 2007 18:13
To: [hidden email]
Subject: [Quickfixj-users] InvalidMessage exception


QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/
Hi I got the following exception when calling a Message constructor.
Could
anyone explain what does this mean? and how to fix it? thanks

Alvin


============================================================
quickfix.InvalidMessage: Actual body length=452, Expected body
length=518

      at quickfix.Message.validate(Message.java:404)

      at quickfix.Message.fromString(Message.java:395)

      at quickfix.Message.<init>(Message.java:90)




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



------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy,
retain
or redistribute it. Click here for important additional terms relating
to
this e-mail.     http://www.ml.com/email_terms/
--------------------------------------------------------

------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



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

Message: 2
Date: Mon, 26 Feb 2007 06:28:33 -0700 (MST)
From: [hidden email]
Subject: [Quickfixj-users] [Fwd: quickfixj-users]
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain;charset=iso-8859-1



Hi,
I have a senario whcih I am faced with an exchnage. I send the login
request (35=A) and I get the response(35=A) back as usual. Then just after
that response I get another message (35=A) with 141=Y. My quick fix
doesn't send a reply to that. (According to exchnage I need to send
another 35=A with 141=Y). and then after some time exchnage logout from
the session.

How can I do this in QuickFIX/J (I am on v1.0)
will upgrading to 1.0.5 solve this issue?

best regards,

Dasun Perera






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

Message: 3
Date: Mon, 26 Feb 2007 08:40:32 -0500
From: "Steve Bate" <[hidden email]>
Subject: Re: [Quickfixj-users] [Fwd: quickfixj-users]
To: <[hidden email]>
Message-ID:
        <[hidden email]>
Content-Type: text/plain; charset="US-ASCII"

Hi Dasun,

This sounds like nonstandard FIX behavior on the part of the exchange.
Is this an encrypted session that needs some form of multistage logon
negotiation (which QuickFIX(/J) does not support)? If not, I don't know
why the exchange would be sending a second logon acknowledgement or why
they'd expect the initiator to respond to it. Which exchange is this?

Steve


> -----Original Message-----
> From: [hidden email] [mailto:quickfixj-
> [hidden email]] On Behalf Of [hidden email]
> Sent: Monday, February 26, 2007 8:29 AM
> To: [hidden email]
> Subject: [Quickfixj-users] [Fwd: quickfixj-users]
>
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
> Hi,
> I have a senario whcih I am faced with an exchnage. I send the login
> request (35=A) and I get the response(35=A) back as usual. Then just after
> that response I get another message (35=A) with 141=Y. My quick fix
> doesn't send a reply to that. (According to exchnage I need to send
> another 35=A with 141=Y). and then after some time exchnage logout from
> the session.
>
> How can I do this in QuickFIX/J (I am on v1.0)
> will upgrading to 1.0.5 solve this issue?
>
> best regards,
>
> Dasun Perera






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

Message: 4
Date: Mon, 26 Feb 2007 08:48:57 -0500
From: Alvin Wang <[hidden email]>
Subject: [Quickfixj-users] CN=Alvin Wang/O=FFTW is out of the office.
To: [hidden email]
Message-ID:
        <[hidden email]>
Content-Type: text/plain; charset="us-ascii"


I will be out of the office starting  02/26/2007 and will not return until
02/27/2007.




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





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

Message: 5
Date: Mon, 26 Feb 2007 10:39:00 -0600
From: Oren Miller <[hidden email]>
Subject: Re: [Quickfixj-users] [Fwd: quickfixj-users]
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

It is in fact legal to send a logon message with the reset field set  
to Y at anytime.

--oren

On Feb 26, 2007, at 7:40 AM, Steve Bate wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
> Hi Dasun,
>
> This sounds like nonstandard FIX behavior on the part of the exchange.
> Is this an encrypted session that needs some form of multistage logon
> negotiation (which QuickFIX(/J) does not support)? If not, I don't  
> know
> why the exchange would be sending a second logon acknowledgement or  
> why
> they'd expect the initiator to respond to it. Which exchange is this?
>
> Steve
>
>
>> -----Original Message-----
>> From: [hidden email]  
>> [mailto:quickfixj-
>> [hidden email]] On Behalf Of [hidden email]
>> Sent: Monday, February 26, 2007 8:29 AM
>> To: [hidden email]
>> Subject: [Quickfixj-users] [Fwd: quickfixj-users]
>>
>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>> QuickFIX/J Support: http://www.quickfixj.org/support/
>>
>>
>> Hi,
>> I have a senario whcih I am faced with an exchnage. I send the login
>> request (35=A) and I get the response(35=A) back as usual. Then  
>> just after
>> that response I get another message (35=A) with 141=Y. My quick fix
>> doesn't send a reply to that. (According to exchnage I need to send
>> another 35=A with 141=Y). and then after some time exchnage logout  
>> from
>> the session.
>>
>> How can I do this in QuickFIX/J (I am on v1.0)
>> will upgrading to 1.0.5 solve this issue?
>>
>> best regards,
>>
>> Dasun Perera




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

Message: 6
Date: Mon, 26 Feb 2007 18:15:39 +0100
From: [hidden email]
Subject: [Quickfixj-users] [BANZAI] LOGOFF - LOGON fails
To: [hidden email]
Message-ID:
       
<[hidden email]>
       
Content-Type: text/plain; charset="us-ascii"


Hi all,

I'm using Banzai right off the box, and I have a problem with the Session >
logoff / logon feature from the top menu. The logoff actually works
perfectly, but then I can't reconnect. I've run the application step by
step, and there doens't seem to be any exception or problem. It just
doesn't do anything. Oddly enough, the same iniator.start() call when the
application starts works.

Any ideas?

Thanks,
Ilyas


This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.

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

Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.




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

Message: 7
Date: Mon, 26 Feb 2007 14:31:40 -0500 (EST)
From: [hidden email]
Subject: Re: [Quickfixj-users] [Fwd: quickfixj-users]
To: [hidden email]
Message-ID:
        <[hidden email]>
Content-Type: text/plain;charset=iso-8859-1

Is the initiator expected to ack the unsolicited logon used for
reset purpose?

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
> It is in fact legal to send a logon message with the reset field set
> to Y at anytime.
>
> --oren
>
> On Feb 26, 2007, at 7:40 AM, Steve Bate wrote:
>
>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>> QuickFIX/J Support: http://www.quickfixj.org/support/
>> Hi Dasun,
>>
>> This sounds like nonstandard FIX behavior on the part of the exchange.
>> Is this an encrypted session that needs some form of multistage logon
>> negotiation (which QuickFIX(/J) does not support)? If not, I don't
>> know
>> why the exchange would be sending a second logon acknowledgement or
>> why
>> they'd expect the initiator to respond to it. Which exchange is this?
>>
>> Steve
>>
>>
>>> -----Original Message-----
>>> From: [hidden email]
>>> [mailto:quickfixj-
>>> [hidden email]] On Behalf Of [hidden email]
>>> Sent: Monday, February 26, 2007 8:29 AM
>>> To: [hidden email]
>>> Subject: [Quickfixj-users] [Fwd: quickfixj-users]
>>>
>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>>> QuickFIX/J Support: http://www.quickfixj.org/support/
>>>
>>>
>>> Hi,
>>> I have a senario whcih I am faced with an exchnage. I send the login
>>> request (35=A) and I get the response(35=A) back as usual. Then
>>> just after
>>> that response I get another message (35=A) with 141=Y. My quick fix
>>> doesn't send a reply to that. (According to exchnage I need to send
>>> another 35=A with 141=Y). and then after some time exchnage logout
>>> from
>>> the session.
>>>
>>> How can I do this in QuickFIX/J (I am on v1.0)
>>> will upgrading to 1.0.5 solve this issue?
>>>
>>> best regards,
>>>
>>> Dasun Perera
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>





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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users


End of Quickfixj-users Digest, Vol 9, Issue 8
*********************************************


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: Login sequence

Stephen Bate
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/
You can send a normal message.

> -----Original Message-----
> From: [hidden email] [mailto:quickfixj-
> [hidden email]] On Behalf Of Dasun Perera
> Sent: Monday, February 26, 2007 10:54 PM
> To: [hidden email]
> Subject: [Quickfixj-users] Login sequence
>
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
> Hi Steve,
>
> This is Muscat, Oman stock exchange... it looks that I have to take care
> about this second auth request from my application. Can I send a normal
> message with 35=A and 141=Y as I send buy/sell. Or can I invoke second
> login
> after the first login happens.. appreciate any suggestions..
>
>  Let me cut and paste what their FIX document says..
...



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users