question on "RFA .NET Tutorials\step8"

qiang.zhu
qiang.zhu Explorer

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"

Tagged:

Best Answer

  • @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.

Answers