question

Upvotes
Accepted
129 11 16 25

Error: Illegal attempt on RFA log

I got the below error when connecting to ADS with RSSL connection.

---------------------------
Exception Error
---------------------------
AN EXCEPTION HAS BEEN THROWN!  The following information describes the exception:
Exception Type: InvalidConfigurationException
Exception Severity: Error
Exception Classification: ConfigurationError
Exception Status Text: Illegal attempt to create MarketDataSubscriber using RSSL connection type 
	Connection name: Connection_SSLED 
	Connection type: RSSL
Session: Session1

What is the cause of this error?

treprfarfa-api
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.

1 Answer

Upvotes
Accepted
47.4k 111 44 60

From the error, the application uses legacy MD interface (MarketDataSubscriber) which doesn’t support RSSL connection type.

MarketDataSubscriber supports SSLED connection type which uses TCP port 8101 (default port).

\Connections\Connection_SSLED\PortNumber                                                  = 8101
\Connections\Connection_SSLED\UserName                                                     = "<username>"
\Connections\Connection_SSLED\ServerList                                                       = "<hostname>"
\Connections\Connection_SSLED\connectionType                                            = "SSLED"

Therefore, the legacy application (MarketDataSubscriber) can’t switch to RSSL connection type. If the connectionType used by MarketDataSubscriber is RSSL, RFA will generate this log.

Illegal attempt to create MarketDataSubscriber using RSSL connection type 
    Connection name: Connection_SSLED 
    Connection type: RSSL

To support RSSL connection type, the application must use OMM interface (OMMConsumer). Please refer to the StarterConsumer example in RFA package which shows how to use OMM interface to create a consumer application. Otherwise, you can refer to these online tutorials.

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.