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.

DataCacheException/Overload Issues
 Post subject: DataCacheException/Overload Issues Post rating: 0   New post Posted: Tue 15 Aug, 2017, 17:56 
User avatar

User rating: 2
Joined: Sat 07 Feb, 2015, 06:45
Posts: 21
Location: Kenya, Nairobi
I am having issues that are beyond my skill level and appealing to anyone more knowledgeable to assist. I don't know if its a bug or bad coding on my part.
The attached strategy will run locally but fails sometimes. Remotely, I keep getting the following errors.

ERROR   15.08.2017 16:36:07   at com.dukascopy.api.impl.execution.TaskStart.call(TaskStart.java:27)
ERROR   15.08.2017 16:36:07   at jforex.ReadBars.onStart(ReadBars.java:51)
ERROR   15.08.2017 16:36:07   at jforex.InnerStrategy.onStart(ReadBars.java:400)
ERROR   15.08.2017 16:36:07   at com.dukascopy.api.impl.History.getBar(History.java:207)
ERROR   15.08.2017 16:36:07   at com.dukascopy.api.impl.History.getHistoryBarBlocking(History.java:244)
ERROR   15.08.2017 16:36:07   at com.dukascopy.api.impl.History.getBars(History.java:709)
ERROR   15.08.2017 16:36:07   at java.security.AccessController.doPrivileged(Native Method)
ERROR   15.08.2017 16:36:07   at com.dukascopy.api.impl.History$14.run(History.java:709)
ERROR   15.08.2017 16:36:07   at com.dukascopy.api.impl.History$14.run(History.java:712)
ERROR   15.08.2017 16:36:07   at com.dukascopy.api.impl.History.getBarsSecured(History.java:874)
ERROR   15.08.2017 16:36:07   com.dukascopy.charts.data.datacache.DataCacheException: Failed to load in-progress candle data in timeout period [AUD/NZD, 30 Mins, Bid]: com.dukascopy.api.JFException: com.dukascopy.charts.data.datacache.DataCacheException: Failed to load in-progress candle data in timeout period [AUD/NZD, 30 Mins, Bid]
ERROR   15.08.2017 16:36:07   com.dukascopy.charts.data.datacache.DataCacheException: Failed to load in-progress candle data in timeout period [AUD/NZD, 30 Mins, Bid] @ com.dukascopy.charts.data.datacache.IntraperiodCandlesGenerator.getInProgressCandleBlocking(IntraperiodCandlesGenerator.java:1288)
INFO   15.08.2017 16:35:45   AUD/CHF High: 0.76082 Low: 0.75999
INFO   15.08.2017 16:35:35   AUD/CAD High: 0.99755 Low: 0.99653
INFO   15.08.2017 16:35:21   Strategy "ReadBars" Strategy ID: is started at 2017-08-15 16:35:21.664 GMT on the remote server with no parameters


If I disable the candle function, the strategy starts remotely but fails with
Strategy is going to be stopped - Max overload period exceeded: 60 seconds.


Please assist.


Attachments:
File comment: Uses InnerStrategy to fetch high and lows of multiple instruments
ReadBars.java [21.27 KiB]
Downloaded 169 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: DataCacheException/Overload Issues Post rating: 0   New post Posted: Thu 17 Aug, 2017, 13:51 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
This happened on remote because the strategy was executing for too long.
Local run might be more suitable for analyzing big data.


 

Jump to:  

  © 1998-2024 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