Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

linux standalone API java.util.ConcurrentModificationException
 Post subject: linux standalone API java.util.ConcurrentModificationException Post rating: 0   New post Posted: Wed 15 Jan, 2014, 19:38 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
API 2.9.5.1 linux server occasionally seeing this exception
on startup of multiple strategies. Haven't seen it on my more
powerful linux server, but on a far less powerful one, I just
got this a couple of times on startup. Could be the slower
machine creates just the right conditions for this exception,
whereas more powerful ones are capable of running all of the
various threads much quicker so I'm not seeing it so much.

My standalone API code tries to start each strategy and
pause so they're not all trying to startup concurrently as much.

Again, most likely the very slow t1.micro Amazon EC2 instance
on which I'm doing some testing, doesn't have the horsepower...

Normally I'm running on a c3.large EC2 instance.

HyperScalper

java.util.concurrent.ExecutionException: java.util.ConcurrentModificationException
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:188)
        at com.dukascopy.dds2.greed.market.LiveCurrencyMarketProcessingThread.run(LiveCurrencyMarketProcessingThread.java:81)
Caused by: java.util.ConcurrentModificationException
        at java.util.HashMap$HashIterator.nextEntry(HashMap.java:926)
        at java.util.HashMap$ValueIterator.next(HashMap.java:954)
        at com.dukascopy.api.impl.connect.DCClientImpl$8.tickReceived(DCClientImpl.java:808)
        at com.dukascopy.dds2.greed.market.LiveCurrencyMarketProcessingThread$1.run(LiveCurrencyMarketProcessingThread.java:135)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)


 
 Post subject: Re: linux standalone API java.util.ConcurrentModificationException Post rating: 0   New post Posted: Thu 16 Jan, 2014, 08:08 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You have already reported the issue here:
viewtopic.php?f=88&t=50433


 

Jump to:  

cron
  © 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