Dukascopy
 
 
Wiki JStore Search Login

ClassCastException thrown in API
 Post subject: ClassCastException thrown in API Post rating: 0   Post Posted: Thu 21 Feb, 2013, 14:10 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
Observed on LIVE account while running JForex client:
Java console wrote:
21.02.2013 15:04:45.925 SEVERE actions.c ] com.dukascopy.api.impl.connect.bq cannot be cast to com.dukascopy.dds2.greed.util.z
java.lang.ClassCastException: com.dukascopy.api.impl.connect.bq cannot be cast to com.dukascopy.dds2.greed.util.z
at com.dukascopy.dds2.greed.actions.CancelOrderAction.Bg(Unknown Source)
at com.dukascopy.dds2.greed.actions.c.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


 
 Post subject: Re: ClassCastException thrown in API Post rating: 0   Post Posted: Thu 21 Feb, 2013, 21:54 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
Hyperscalper wrote:
and what does it appear to be associated with?

Isak wrote:
Nothing. I think it happened without any strategies running. The platform was just "idling". Not 100% sure though.

Correction: I remembered because it happened again. In both cases, it happened when cancelling orders (about 70) simultaneously, manually in the JF client. No strategies were running.


 
 Post subject: Re: ClassCastException thrown in API Post rating: 0   Post Posted: Thu 21 Feb, 2013, 23:38 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
I confirmed for a third time that this exception occurs when cancelling orders from JF client (this time I cancelled only 18 orders).

Note also "CancelOrderAction" in the stack trace.


 
 Post subject: Re: ClassCastException thrown in API Post rating: 0   Post Posted: Mon 25 Feb, 2013, 09:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
" it happened when cancelling orders (about 70) simultaneously, manually in the JF client. No strategies were running."

Submit JForex API bug reports in this forum only.


 
 Post subject: Re: ClassCastException thrown in API Post rating: 0   Post Posted: Wed 27 Feb, 2013, 09:42 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
API Support wrote:
" it happened when cancelling orders (about 70) simultaneously, manually in the JF client. No strategies were running."

Submit JForex API bug reports in this forum only.


The exception's origin (com.dukascopy.api.impl.connect.bq) and type (ClassCastException) suggested to me that it was an API bug, but perhaps I was wrong then...


 
 Post subject: Re: ClassCastException thrown in API Post rating: 0   Post Posted: Wed 06 Mar, 2013, 11:52 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
This should be fixed in 2.24.1 version available on DEMO. Please check if possible.


 

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