Dukascopy
 
 
Wiki JStore Search Login

Exception ]Exception in thread "StrategyRunner Thread" java.lang.NullPointerException: Could not load tick before test i
 Post subject: Exception ]Exception in thread "StrategyRunner Thread" java.lang.NullPointerException: Could not load tick before test i Post rating: 0   New post Posted: Wed 08 Feb, 2017, 11:36 
User avatar

User rating: 2
Joined: Sun 15 Apr, 2012, 22:19
Posts: 25
Location: GermanyGermany
Exception in thread "StrategyRunner Thread" java.lang.NullPointerException: Could not load tick before test interval start 2015-02-01 00:00:00:000
   at com.dukascopy.dds2.greed.agent.strategy.tester.dataload.HTCandlesCreator.<init>(HTCandlesCreator.java:85)
   at com.dukascopy.dds2.greed.agent.strategy.tester.dataload.HistoricalTesterDataManager.createCandlesLoader(HistoricalTesterDataManager.java:700)
   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:882)
   at com.dukascopy.dds2.greed.agent.strategy.tester.dataload.HistoricalTesterDataManager.createAndAddDefaultDataLoaders(HistoricalTesterDataManager.java:223)
   at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.initBeforeRun(StrategyRunner.java:272)
   at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:320)
   at java.lang.Thread.run(Thread.java:745)


Anyone know how to resolve this?


 
 Post subject: Re: Exception ]Exception in thread "StrategyRunner Thread" java.lang.NullPointerException: Could not load tick before test i Post rating: 0   New post Posted: Wed 08 Feb, 2017, 16:08 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
Update to the latest 3.1.0 version of JForex 3


 
 Post subject: Re: Exception ]Exception in thread "StrategyRunner Thread" java.lang.NullPointerException: Could not load tick before test i Post rating: 0   New post Posted: Wed 08 Feb, 2017, 16:22 
User avatar

User rating: 2
Joined: Sun 15 Apr, 2012, 22:19
Posts: 25
Location: GermanyGermany
Hi, many thanks for helping out!

I will consider to upgrade. For now, is there any way to catch this exception?


 
 Post subject: Re: Exception ]Exception in thread "StrategyRunner Thread" java.lang.NullPointerException: Could not load tick before test i Post rating: 0   New post Posted: Thu 09 Feb, 2017, 17:31 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
No. The exception is thrown before the strategy gets started.


 
 Post subject: Re: Exception ]Exception in thread "StrategyRunner Thread" java.lang.NullPointerException: Could not load tick before test i Post rating: 0   New post Posted: Fri 10 Feb, 2017, 11:06 
User avatar

User rating: 2
Joined: Sun 15 Apr, 2012, 22:19
Posts: 25
Location: GermanyGermany
It would be great if there was an option to listen for "Tester-Exceptions".


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com