I know that the API from Dukascopy is very unstable regarding .cache and IHistory. All I can say is that my plugin downloads the data fine, so probably you are using different API methods.
I now also tested tick downloading with Download.c(see attachment) Here Java Heap space error occures. My plugin runs here fine; you might want to have a look the source code for comparison.