Velocity Analytics 8 - Connect to QueryRouter
I am using DeltaStreamDemoAPI.java to execute Query from the Java API.
For example, Query is the following that you want to run.
getTicks[`symList`dataType`startDate`endDate`startTime`endTime`timeZone`time`assetClass!(`1306.T;`trade;.z.D-1;.z.D-1;10:00:00;11:00:00;`Japan;`exchangeTime;`equity)]
However, executing DeltaStreamDemoAPI.java causes an exception inside initialiseDeltaAPIService().
I get an error saying that the value of the properties file is wrong, but I do not know which parameter has a problem.
[main] INFO com.fd.delta.stream.queryrouter.DeltaQueryRouterService - Initialising the DeltaQueryRouterService
[main] ERROR com.fd.delta.stream.DeltaStreamDemoAPI - Exception creating DeltaStream, check contents of properties. Properties:
{exclusive=true, deltacontrol-primary-port=2001, loginString=userX:XXXXXX, deltacontrol-secondary-host=, encrypted=false, deltacontrol-secondary-port=, retryMaxTimeOutPeriod=10000, apiAlias=getTicks, instanceName=ExampleStreamClient, deltacontrol-tlsEnabled=false, deltacontrol-primary-host=XX.XX.XX.XX, retryTimeoutStep=1000}
java.lang.NullPointerException
at com.fd.delta.control.impl.DCConfigurationManager.getQueryRouters(DCConfigurationManager.java:598)
at com.fd.delta.stream.impl.DefaultDeltaStream.initialiseDeltaQueryRouterService(DefaultDeltaStream.java:691)
at com.fd.delta.stream.impl.DefaultDeltaStream.initialiseDeltaAPIService(DefaultDeltaStream.java:739)
at com.fd.delta.stream.DeltaStreamDemoAPI.<init>(DeltaStreamDemoAPI.java:63)
at com.fd.delta.stream.DeltaStreamDemoAPI.main(DeltaStreamDemoAPI.java:40)
Exception in thread "main" java.lang.NullPointerException
at com.fd.delta.stream.DeltaStreamDemoAPI.testDeltaStreamAPI(DeltaStreamDemoAPI.java:79)
at com.fd.delta.stream.DeltaStreamDemoAPI.main(DeltaStreamDemoAPI.java:42)
How can I resolve this Exception?
In the properties file (deltastream) for DeltaStreamDemoAPI.java, the only unknown parameter is "apiAlias" parameter, what should this be specified?
Best Answer
-
Hi @yokoyama-ryouta,
Apologies if I have caused confusion with my previous response.
It turns out that DeltaStreamDemoAPI.java is not the correct file to use for the VA8 Java API sample. The correct file is the DeltaJStreamAPITestHarness. If you do not have this file, or if you are having any issues with this file, please open a support case with Refinitiv Customer Support, rather than using this developer portal. At this time, the VA8 Java API will be supported through Refinitiv Customer Support.
0
Answers
-
Hi @yokoyama-ryouta,
I am checking with our engineers about this issue and will get back to you as soon as possible.
0 -
Hi @yokoyama-ryouta ,
Please replace the existing method
"testDeltaStreamAPI" with the attached code. The apiAlias and query
parameters will be set from the query that will be run. test-ds-api-snippet.txt0 -
Hi @mary e,
Replacing "testDeltaStreamAPI" did not fix the error.
The contents of Exception are also the same.There are two places where errors are output.
Both are in DeltaStreamAPI.java.
The first one is when DeltaStreamDemoAPI() executes the following method.deltaStream.initialiseDeltaAPIService(access);
The Exception output at this time is as follows.
java.lang.NullPointerException
at com.fd.delta.control.impl.DCConfigurationManager.getQueryRouters(DCConfigurationManager.java:598)
at com.fd.delta.stream.impl.DefaultDeltaStream.initialiseDeltaQueryRouterService(DefaultDeltaStream.java:691)
at com.fd.delta.stream.impl.DefaultDeltaStream.initialiseDeltaAPIService(DefaultDeltaStream.java:739)
at com.fd.delta.stream.DeltaStreamDemoAPI.<init>(DeltaStreamDemoAPI.java:63)
at com.fd.delta.stream.DeltaStreamDemoAPI.main(DeltaStreamDemoAPI.java:40)
Exception in thread "main" java.lang.NullPointerException
at com.fd.delta.stream.DeltaStreamDemoAPI.testDeltaStreamAPI(DeltaStreamDemoAPI.java:79)
at com.fd.delta.stream.DeltaStreamDemoAPI.main(DeltaStreamDemoAPI.java:42)The second is when the following method of testDeltaStreamAPI () is executed.
Map<String, IDeltaAPI> apiMap = apiService.getAPI();
The Exception output at this time is as follows.
Exception in thread "main" java.lang.NullPointerException
at com.fd.delta.stream.DeltaStreamDemoAPI.testDeltaStreamAPI(DeltaStreamDemoAPI.java:129)
at com.fd.delta.stream.DeltaStreamDemoAPI.main(DeltaStreamDemoAPI.java:51)0 -
Hello @Nipat Kunvutipongsak,
The case number is 06987743.
Please follow up.0 -
Case closed on 30 October. A config change on the client VA 8 resolved the issue.
0
Categories
- All Categories
- 6 AHS
- 37 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
- 367 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
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛