question

Upvotes
Accepted
4 4 4 9

question on "RFA .NET Tutorials\step8"

hi

I compiled "RFA .NET Tutorials\step8\MRNExample_VS120.sln", with visual studio 2013

updated below stuff

*** file "ExampleRFA.cfg"

\Connections\Connection_RSSL\rsslPort = "MY_PORT"

\Connections\Connection_RSSL\hostName= "MY_HOST"

*** source code : "RFA .NET Tutorials\step8\RDMExample.cs"

private static readonly RFA_String UserName = new RFA_String("MY_ACCOUNT");

private static readonly RFA_String ServiceName = new RFA_String("MY_SERVICE");

private static readonly RFA_String ItemName = new RFA_String("EUR=");

can connect to the server, but failed to login (Login Denied, NotAuthorized).

could you advise??

thanks

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

log:

2017/07/10 10:26:02.788 INFO : <- Received LoggerNotifyEvent:

[Mon Jul 10 10:26:02 2017]: (ComponentName) Static: (Severity) Information: Connection Status Changed, RSSL_Cons_Connection "Default::Connection_RSSL MY_HOST:MY_PORT" State: "Up" StatusCode: "None" StatusText: Connection up

2017/07/10 10:26:03.022 INFO : <- Received ConnectionEvent:

Connection Connection_RSSL is UP!

********************* ERROR! ********************** ERROR! *********************

2017/07/10 10:26:03.022 ERROR* : <- Received MMT_LOGIN - Login Denied

streamState : Closed

dataState : Suspect

statusCode : NotAuthorized

statusText : A21: A required argument was NULL

2017/07/10 10:26:03.022 INFO : <- Received Event Stream Closed Event, event type: OMMItemEvent handle: 472504528

2017/07/10 10:26:03.178 INFO : <- Received LoggerNotifyEvent:

[Mon Jul 10 10:26:03 2017]: (ComponentName) Static: (Severity) Information: RSSL Channel closing on connection "Default::Connection_RSSL MY_HOST:MY_PORT" due to "requested disconnect"

treprfarfa-apic#
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
7.6k 15 6 9

@qiang.zhu

Basically the status text was generated by Infra because the Login request does not contains valid DACS Position. I guess that you are connecting to ADS or TREP component which turn on DACS Entitlement so it require a valid DACS position from OMM Login request message.

The example leave the Position to blank so you need to modify it to a valid DACS Position like "<You Client IP>/net", "10.42.20.33/net"

You have to modify the follwoing line from RDMExmaple.cs in class RDMExample

private static readonly RFA_String Position = new RFA_String("");


to the new position like the following sample


private static readonly RFA_String Position = new RFA_String("127.0.0.1/net");


Don't forget to change UserName and ServiceName property to valid one as well.

Hope this help.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

hi

I updated position, now, its connected and "Login Accepted"

thanks.

Sincerely.

hi

I can connect to server successfully. modify below line
private static readonly RFA_String ItemName = new RFA_String("EUR=");

try to get data for "EUR=".

but the log shows:

2017/07/11 12:17:01.501 INFO : <- Received MMT_MARKET_PRICE Status EUR=

serviceName : EED_DELAYED
symbolName : EUR=
streamState : Closed
dataState : Suspect
statusCode : NotFound
statusText : The record could not be found

confirmed with server side, "username/positions/etc" are all good to get data for "EUR="

could you advise??

thanks

Are you using Tutorial 8? If it's tutorial 8 it was designed to reqeust MRN News and it does not use MMT_MARKET_PRICE. That why you get NotFound. If you want to request Marekt Price domain, please use tutorial 6 or 7 instead.

thanks.

I updated tutorial 7, and now I can get market data successfully.

thanks a lot.

Upvotes
426 2 4 4

Hi @qiang.zhu,

Are you using a valid user name? The error message says clearly the user you used to login is not authorized. Have you checked with your MarketData group or whoever provided the connection host information to you?

--- Steve



icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

hi

I confirmed with the team. ther user name is good.


We can confirm that your username is authorized access in DACS as shown in screenshot below, also attached.

We have also verified that your username can get data for EUR= on the MY_HOST server.

regarding to error msg :

A21: A required argument was NULL

is it possible to find more info??

I can enrich add source code on necessary

thanks

@qiang.zhu Please find my answer below. It's the problem from Position not Username.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.