Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Velocity Analytics /
avatar image
Question by yokoyama · Sep 27, 2018 at 02:43 AM · apijavavelocity-analytics

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?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

4 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by mary e · Oct 08, 2018 at 02:50 AM

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.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Christiaan Meihsl ♦♦ · Nov 29, 2018 at 03:39 AM 0
Share

Case closed on 30 October. A config change on the client VA 8 resolved the issue.

avatar image
REFINITIV
Answer by mary e · Sep 28, 2018 at 12:41 AM

Hi @yokoyama-ryouta,

I am checking with our engineers about this issue and will get back to you as soon as possible.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by mary e · Oct 01, 2018 at 11:49 PM

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.txt


test-ds-api-snippet.txt (13.3 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by yokoyama · Oct 02, 2018 at 08:30 PM

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)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
11 People are following this question.

Related Questions

How to connect to Velocity Analytics 8 using API

Velocity Analytics 8 - How to solve com.kx.q.c$KException

Error: The query was not successfully performed! Correction hint: length

When entering the Filter Rules dashboard there is some idling (“Loading”) going on until I get a timeout.

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges