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?