|
Attention! Read the forum rules carefully before posting a topic.
Submit JForex API bug reports in this forum only. Submit Converter issues in Converter Issues. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
Getting NullPointerException in API version 2.11 |
vietllc
|
Post subject: Getting NullPointerException in API version 2.11 |
Post rating: 0
|
Posted: Wed 03 Dec, 2014, 08:55
|
|
User rating: 0
Joined: Fri 10 Oct, 2014, 02:09 Posts: 27 Location: Vietnam,
|
I am writing an app to automate backtesting using API version 2.11 and I keep getting the following exception:
Exception in thread "StrategyRunner Thread" java.lang.NullPointerException at com.dukascopy.charts.data.datacache.business.LoadLastTicksAction.sendTicks(LoadLastTicksAction.java:132) at com.dukascopy.charts.data.datacache.business.LoadLastTicksAction.run(LoadLastTicksAction.java:116) at com.dukascopy.charts.data.datacache.FeedDataProvider.loadLastTicks(FeedDataProvider.java:2594) at com.dukascopy.charts.data.datacache.FeedDataProvider.loadLastTick(FeedDataProvider.java:2612) at com.dukascopy.charts.data.datacache.business.LoadClosestToTimeTickAction.validateInputParams(LoadClosestToTimeTickAction.java:66) at com.dukascopy.charts.data.datacache.business.LoadClosestToTimeTickAction.<init>(LoadClosestToTimeTickAction.java:58) at com.dukascopy.charts.data.datacache.FeedDataProvider.loadClosestToTimeTickSynched(FeedDataProvider.java:2537) at com.dukascopy.dds2.greed.agent.strategy.tester.dataload.HTCandlesCreator.<init>(HTCandlesCreator.java:78) at com.dukascopy.dds2.greed.agent.strategy.tester.dataload.HistoricalTesterDataManager.createCandlesLoader(HistoricalTesterDataManager.java:713) at com.dukascopy.dds2.greed.agent.strategy.tester.dataload.HistoricalTesterDataManager.createAndAddCandlesLoader(HistoricalTesterDataManager.java:239) at com.dukascopy.dds2.greed.agent.strategy.tester.dataload.HistoricalTesterDataManager.createAndAddDefaultDataLoaders(HistoricalTesterDataManager.java:920) at com.dukascopy.dds2.greed.agent.strategy.tester.dataload.HistoricalTesterDataManager.createAndAddDefaultDataLoaders(HistoricalTesterDataManager.java:219) at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:264) at java.lang.Thread.run(Unknown Source)
The historical data has already been downloaded into the local cache so there should not be a connection issue.
I am using the following method to run the strategy:
long ITesterClient.startStrategy(IStrategy strategy, LoadingProgressListener testerProgressListener, ITesterExecution testerExecution, ITesterUserInterface testerUserInterface) throws IllegalStateException, IllegalArgumentException
with the testerProgressListener parameter is set to null. The last 2 parameters are instances of an empty implementation of the respective interfaces.
|
|
|
|
 |
API Support
|
Post subject: Re: Getting NullPointerException in API version 2.11 |
Post rating: 0
|
Posted: Wed 03 Dec, 2014, 10:07
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Hello!
Please use latest SDK release (api 2.12.1, jclient 2.42.2), this should be fixed there.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|