java.lang.NoClassDefFoundError: org/apache/http/HttpHost Error while running ETA
Hi Team,
I've download and trying to run ETA Consumer as per the below doc,
Changed the ELEKTRON_JAVA_HOME and binary versions into 3.4.0.0. The compilation is success but failed while running the first tutorial. Is there i need to specify the http lib or need to configure some file(s)?
I cross verified few files and couldn't find config related to http lib. Any help or suggestion much appreciated. Thank you!
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/HttpHost
at com.thomsonreuters.upa.valueadd.reactor.ReactorOptions.clear(ReactorOptions.java:343)
at com.thomsonreuters.upa.valueadd.reactor.ReactorOptions.<init>(ReactorOptions.java:60)
at com.thomsonreuters.upa.valueadd.reactor.ReactorFactory.createReactorOptions(ReactorFactory.java:90)
at com.thomsonreuters.upa.tutorials.valueadd.consumer.tutorial2.basicConsumer.<init>(basicConsumer.java:70)
at com.thomsonreuters.upa.tutorials.valueadd.consumer.tutorial2.basicConsumer.main(basicConsumer.java:416)
Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpHost
Best Answer
-
The recent version of Elektron now requires the httpcore-4.4.12.jar file.
As @zoya.farberov pointed out, it is in a directory off of the root, i.e.
$ELEKTRON_JAVA_HOME\Elektron-SDK-BinaryPack\Java\Eta\Libs\ApacheClient\httpcore-4.4.12.jar.
I've addressed the issue by updating the download package from the tutorial. You can do either of the following:
- Download the new tutorial package OR
- Update your run scripts to include the above JAR file
Let us know if this resolves your issue.
0
Answers
-
Hello @Thangavel.Loganathan,
Within Elektron SDK installation, in Elektron-SDK-BinaryPack
Elektron-SDK-YOURVERSION.java.rrg\Elektron-SDK-BinaryPack\Java\Eta\Libs\ApacheClient
There are included several useful Apache jars, including httpcore that includes this class.
0 -
Hi Zoya,
Thank you so much for your reply, i have downloaded the latest version of Elektron-SDK which is Elektron-SDK-1.4.0.L1.java.rrg doesn't contains any ApacheClient inside Lib Folder. Could you please cross verify at your end?
0 -
Yes. I see it in
Elektron-SDK-1.4.0.L1.java.rrg\Elektron-SDK-BinaryPack\Java\Eta\Libs
Do you see it now?
0 -
I just downloaded new E-SDK but no luck i couldn't see in it. :-(
0 -
Hi Nick,
Thanks for your reply, i downloaded httpcore-4.4.12 manually and put it inside and can run now first tutorial successfully. Please keep me posted if the SDK updated.
0 -
It isn’t the SDK that needs updating. You also don’t need to download the .jar file but simply update the run scripts to point to the .jar file that should already be contained within your SDK.
Alternatively, you can download the tutorial examples again - the run scripts have been corrected in the new package. I hope this is clear.
1 -
yeah Nick, it's clear now. Thank you very much. I'm trying to run the second example, facing the below error,
Connection down reconnecting
Error text: java.nio.channels.UnresolvedAddressExceptionI see the basicConsumer.java file contains the below host name and port, is this fine to run or need to modify?
private static final String srvrHostname = "elektron";
private static final String srvrPortNo = "14002";0 -
The tutorial download package is specifically designed to connect to a deployed or hosted Elektron environment. If this is what you are planning on working against, you will need to reach out to your Market Data Manager to get server details. However, if you are only interested in connecting to the Refinitiv Data Platform (ERT in Cloud), these tutorials will not work against them. However, the Elektron SDK you downloaded does contain some examples that were built specifically for this type of connection. If you refer to the ETA Quick Start - Connecting to Elektron Real Time in Cloud, this should work.
1 -
Excellent Nick, appreciate it. Thanks for your quick response. Cheers!
0 -
Hi Nick,
am running the below shell command from the below <ESDK>/Java directory,
gradlew runVAConsumer -PcommandLineArgs="-uname <ERT username/machind ID> -passwd <ERT password> -clientId <App Key> -keyfile <KeyStore file> -keypasswd <KeyStore passowrd> -connectionType encrypted -c amer-1.pricing.streaming.edp.thomsonreuters.com:14002 ELEKTRON_DD mp:IBM.N -sessionMgnt"
Getting the below error,
Connection down reconnecting: Channel java.nio.channels.SocketChannel[connected local=/10.44.27.174:51156 remote=amer-1.pricing.streaming.edp.thomsonreuters.com/34.233.36.26:14002]
Error text: Error initializing channel: errorId=0 text=nullWhen i ping amer-1.pricing.streaming.edp.thomsonreuters.com
EPPLGDAW0104:Java thangavel_loganathan$ nc -vz amer-1.pricing.streaming.edp.thomsonreuters.com 14002
found 0 associations
found 1 connections:
1: flags=82<CONNECTED,PREFERRED>
outif utun1
src 10.44.27.174 port 51306
dst 34.233.36.26 port 14002
rank info not available
TCP aux info available
Connection to amer-1.pricing.streaming.edp.thomsonreuters.com port 14002 [tcp/*] succeeded!any idea on this? Thanks in advance!
0 -
Just to confirm, are you typing in the exact command above? I just want to make sure you are entering your credentials properly - as opposed to <EDP Password> for example. As a simple test to see if your credentials are valid, download the SpeedGuide tool.
1
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 370 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛