Dukascopy
 
 
Wiki JStore Search Login

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.

DataCacheExcetion during backtesting
 Post subject: DataCacheExcetion during backtesting Post rating: 0   New post Posted: Sat 06 Dec, 2014, 08:03 
User avatar

User rating: 0
Joined: Fri 10 Oct, 2014, 02:09
Posts: 27
Location: Vietnam,
I am writing an app on top of the JForex client library version 2.42.2 to automate backtesting. I am getting the following exception:

2014-12-06 00:33:46.372 ERROR TimeManager - Request to DFS timed out, timeout [10000], request [<ServerTimeRequestMessage(,requestId=207)>]
com.dukascopy.charts.data.datacache.DataCacheException: Request to DFS timed out, timeout [10000], request [<ServerTimeRequestMessage(,requestId=207)>]
at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.processMessage(CurvesJsonProtocolHandler.java:1008)
at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.processMessage(CurvesJsonProtocolHandler.java:928)
at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.loadServerTime(CurvesJsonProtocolHandler.java:1028)
at com.dukascopy.charts.data.datacache.time.TimeManager$3.run(TimeManager.java:191)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

followed by this message:

2014-12-06 00:34:21.871 INFO ClientProtocolHandler - Disconnect task in queue, reason [CONNECTION_PROBLEM], client address [d-ja-hk-04.dukascopy.com/207.46.128.113:10443], transport name [null]

I am guessing the exception was thrown due to some network problems. But in backtesting, I am only reading from the local cache. Why does this exception even occur???


 
 Post subject: Re: DataCacheExcetion during backtesting Post rating: 0   New post Posted: Mon 08 Dec, 2014, 14:42 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
In backtesting you still need to download historical data to run test on. As you already mentioned there was some network problems, so this exception occurred.


 
 Post subject: Re: DataCacheExcetion during backtesting Post rating: 0   New post Posted: Fri 09 Jan, 2015, 02:15 
User avatar

User rating: 0
Joined: Fri 10 Oct, 2014, 02:09
Posts: 27
Location: Vietnam,
I understand what you are saying. However, the historical data has already been downloaded into the local cache. There should be no need to download the data again. Why is the client library still checking for a network connection?


 
 Post subject: Re: DataCacheExcetion during backtesting Post rating: 0   New post Posted: Fri 09 Jan, 2015, 12:53 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
This is how it is (by design).

There will be once a new backtester in JForex4, that could operate offline...


 
 Post subject: Re: DataCacheExcetion during backtesting Post rating: 0   New post Posted: Sun 11 Jan, 2015, 02:03 
User avatar

User rating: 0
Joined: Fri 10 Oct, 2014, 02:09
Posts: 27
Location: Vietnam,
Thank you for the info! Any idea when this new backtester will be available?


 
 Post subject: Re: DataCacheExcetion during backtesting Post rating: 0   New post Posted: Mon 12 Jan, 2015, 14:52 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Check the JForex 4 topic.


 

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