question

Upvotes
Accepted
11 4 4 8

Error when run ERT cloud 450 example demo

Client ID:muweijia@bytedance.com

Client downloaded EMA Java SDK and run ERT in cloud example demo 450, found error message "java Lang Class not found exception". Can you take a look and snap shot attached.

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-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.

Attached snap shot of Error

834291798.jpg (118.6 KiB)

@Hao.Tang83

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Upvotes
Accepted
18.2k 21 13 21
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.

Thanks for the detailed instruction. One minor issue, client is not eikon user, there is no app key generator link in ERT cloud welcome mail. Can help show how client can grant client ID via app key generator tool?

Hello @Hao.Tang83

Can the client follow instruction in "Machine ID" section of https://developers.refinitiv.com/article/getting-start-refinitiv-data-platform article:

  1. Firstly, the client needs to Register MyRefinitv (https://my.refinitiv.com/) web site
  2. Then, Activate RDP MachineID in the AppKey Generator Website (https://amers1.apps.cp.thomsonreuters.com/apps/AppkeyGenerator). The client should be able to login with the email/password that registered in the first step.
  3. follow "Register your application" section in https://developers.refinitiv.com/article/getting-start-refinitiv-data-platform article
Upvotes
24.7k 54 17 14

Hello @Hao.Tang83

Did the client add upaValueAdd-<version>.jar to the project classpath? Basically, the EMA Java example applications require the following RTSDK and Apache jar files

  • ema-<version>.jar
  • upa-<version>.jar
  • upaValueAdd-<version>.jar

These jar files are available at <RTSDK-Java>\Java\Ema\Libs and <RTSDK-Java>\Java\Eta\Libs folders

  • json-20180130.jar
  • httpclient-4.5.3.jar
  • httpclient-cache-4.5.3.jar
  • httpcore-4.4.12.jar
  • httpcore-nio-4.4.12.jar
  • httpmime-4.5.3.jar
  • commons-collections-3.2.2.jar
  • commons-configuration-1.10.jar
  • commons-lang-2.6.jar
  • commons-logging-1.2.jar
  • slf4j-api-1.7.12.jar
  • slf4j-jdk14-1.7.12.jar

These jar files are available at <RTSDK-Java>\RTSDK-BinaryPack\Java\Eta\Libs\ApacheClient and <RTSDK-Java>\RTSDK-BinaryPackk\Java\Eta\Libs and <RTSDK-Java>\RTSDK-BinaryPackk\Java\Ema\Libs folders


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.

Client tried to add all Jar package but still show error as attached. He mentioned missed Jar package was not in the list but should be a public package. Please help us out, Thanks so much

1356228313.jpg (285.6 KiB)

Hi @Hao.Tang83,

Can you please provide which version of the EMA library they are using and whether they are following the instructions from this Quick Start Guide: https://developers.refinitiv.com/elektron/elektron-sdk-java/quick-start?content=66483&type=quick_start

Upvotes
17.2k 82 39 63

@Hao.Tang83,

I just downloaded SDK1.5.0.L1.java, went through the Quick Start guide I outlined above and it worked.

You will need to provide the exact command they are running (Note: they can put placeholders in for the ID and passwords they are using to keep it private).

The syntax should look something like this:

> gradlew runconsumer450 -PcommandLineArgs="-username <ERT username/machine ID> -password <ERT password> -clientId <AppKey> -keyfile <KeyStore file> -keypasswd <KeyStore password>"


In addition, one of the pre-requisite steps is to list the examples packages. Can you ensure they were able to get a proper listing as outlined in the ESDK Build System tutorial?

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
24.7k 54 17 14

Hello @Hao.Tang83

Please suggest the client to test with the command line as my colleague has mentioned. The client can find the way to build the SDK library jar files from this build system guide.

Based on the given screen shots, it seems the client uses IntelliJ IDEA to run EMA Java example 450, could you please confirm? If so, could you please share the client project libraries setting (File --> Project Settings --> Libraries)?

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.

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.