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.

Wrong data from file
 Post subject: Wrong data from file Post rating: 0   New post Posted: Tue 03 Feb, 2015, 22:04 
User avatar

User rating: 11
Joined: Tue 27 Mar, 2012, 17:47
Posts: 111
Location: GermanyGermany
Hello Support,

I'm running the latest platform(2.43.2) and API(2.12.6) release.
When the jforex client is running and two different(separate processes) standalone programs login and try to readTicks, then this error occurs:

3 Feb 21:37:35 SEVERE Wrong data from file [D:\programs\JForex\.cache\EURGBP\intraperiod\2015_02_03_20_ticks.bi5], read tick with time [2015-02-03 20:36:43:415], previous tick time [2015-02-03 20:36:47:750]
com.dukascopy.charts.data.datacache.DataCacheException: Wrong data from file [D:\programs\JForex\.cache\EURGBP\intraperiod\2015_02_03_20_ticks.bi5], read tick with time [2015-02-03 20:36:43:415], previous tick time [2015-02-03 20:36:47:750]
   at com.dukascopy.charts.data.datacache.CacheManager.readTicksFromFile(CacheManager.java:1124)
   at com.dukascopy.charts.data.datacache.LocalCacheManager.readTicksFromIntraPeriodFile(LocalCacheManager.java:1590)
   at com.dukascopy.charts.data.datacache.LocalCacheManager.doReadData(LocalCacheManager.java:1214)
   at com.dukascopy.charts.data.datacache.LocalCacheManager.readData(LocalCacheManager.java:1059)
   at com.dukascopy.charts.data.datacache.LoadDataAction$1.chunkLoaded(LoadDataAction.java:290)
   at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadInCache(CurvesDataLoader.java:341)
   at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadInCache(CurvesDataLoader.java:98)
   at com.dukascopy.charts.data.datacache.LoadDataAction.run(LoadDataAction.java:308)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)


I thought this error was fixed with the previous API version.
Or maybe my .cache directory is corrupted?
Or are 3 different reading processes too much for the cache directory?

Edit: To be more precise: when the two programs point to the same cache directory and the running jforex client points to a second(different) cache location, this error does not occur.

Thanks for help,
Juergen


 
 Post subject: Re: Wrong data from file Post rating: 0   New post Posted: Wed 04 Feb, 2015, 09:10 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We will investigate that.


 
The Best Answer  Post subject: Re: Wrong data from file Post rating: 0   New post Posted: Tue 10 Feb, 2015, 10:05 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
This problem was fixed some time ago and the fix for sure is present in latest 2.43.2/2.12.6 SDK release. Please make sure that maven has updated you project correctly.


 

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