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.

getSubscribedInstruments is not thread safe
 Post subject: getSubscribedInstruments is not thread safe Post rating: 0   New post Posted: Sun 22 Mar, 2015, 22:03 
User avatar

User rating: 2
Joined: Mon 30 May, 2011, 15:41
Posts: 86
Location: Czech Republic, Prague
Hello, when I call IContext.getSubscribedInstruments, sometimes I got this error:
java.util.ConcurrentModificationException
   at java.util.ArrayList$Itr.checkForComodification(Unknown Source)
   at java.util.ArrayList$Itr.next(Unknown Source)
   at com.dukascopy.dds2.greed.gui.component.ticker.TickerTableModel.VM(Unknown Source)
   at com.dukascopy.dds2.greed.gui.component.ticker.TickerPanel.getInstruments(Unknown Source)
   at com.dukascopy.dds2.greed.gui.helpers.b.getSubscribedInstruments(Unknown Source)
   at com.dukascopy.dds2.greed.agent.q.getSubscribedInstruments(Unknown Source)
   at com.dukascopy.api.impl.connect.JForexTaskManager.getSubscribedInstruments(Unknown Source)
   at com.dukascopy.api.impl.connect.am.getSubscribedInstruments(Unknown Source)
   at com.dukascopy.api.impl.connect.at.getSubscribedInstruments(Unknown Source)


 
 Post subject: Re: getSubscribedInstruments is not thread safe Post rating: 0   New post Posted: Mon 23 Mar, 2015, 14:20 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
This will be fixed with the next JForex client version.


 

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