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.

Answers

  • Attached snap shotimage

  • Attached snap shot of Error

    image

  • Hi @Hao.Tang83,

    Can you confirm which version of the API you are using?

  • 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


  • 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 muchimage

  • thanks for looking into this. You mean version of Rest API?

  • 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

  • Which version of the EMA Java SDK they downloaded. Also, if they used the quick start. See my other comment below.

  • Yes, i share quick start and client run example 450 following guide.

    I asked client download Elektron SDK1.5.0.L1.java

  • Just to confirm, they received this error *after* downloading SDK 1.5.01.L1 and following the quick start guide?

  • Yes, after download and follow the quick start

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

  • 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)?

  • 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