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.

IClient not online exception
 Post subject: IClient not online exception Post rating: 0   New post Posted: Mon 09 Feb, 2015, 19:17 
User avatar

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

I'm running the platform(2.43.2) and API(2.12.6) release.
When I try to login with multiple threads, then sometimes these related exceptions occur:

java.io.IOException: Client not online
   at com.dukascopy.dds4.transport.client.TransportClient.controlRequest(TransportClient.java:557)
   at com.dukascopy.dds4.transport.client.TransportClient.controlRequest(TransportClient.java:455)
   at com.dukascopy.dds4.transport.client.TransportClient.controlRequest(TransportClient.java:517)
   at com.dukascopy.api.impl.connect.DCClientImpl.connectedInit(DCClientImpl.java:700)
   at com.dukascopy.api.impl.connect.DCClientImpl.authorized(DCClientImpl.java:990)
   at com.dukascopy.dds4.transport.client.events.AuthorizedEvent.execute(AuthorizedEvent.java:23)
   at com.dukascopy.dds4.transport.common.mina.EventTask.run(EventTask.java:35)
   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)

After that there is always this:

java.io.IOException: Client not online
   at com.dukascopy.dds4.transport.client.TransportClient.controlRequest(TransportClient.java:557)
   at com.dukascopy.dds4.transport.client.TransportClient.controlRequest(TransportClient.java:455)
   at com.dukascopy.dds4.transport.client.TransportClient.controlRequest(TransportClient.java:517)
   at com.dukascopy.api.impl.connect.DCClientImpl$11.run(DCClientImpl.java:1227)
   at com.dukascopy.api.impl.connect.DCClientImpl$11.run(DCClientImpl.java:1204)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.dukascopy.api.impl.connect.DCClientImpl.setSubscribedInstruments(DCClientImpl.java:1204)
   at com.dukascopy.api.impl.connect.DCClientImpl.connectedInit(DCClientImpl.java:701)
   at com.dukascopy.api.impl.connect.DCClientImpl.authorized(DCClientImpl.java:990)
   at com.dukascopy.dds4.transport.client.events.AuthorizedEvent.execute(AuthorizedEvent.java:23)
   at com.dukascopy.dds4.transport.common.mina.EventTask.run(EventTask.java:35)
   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)


Again, these exceptions occur at random, I would guess 1 out of 5.
See also these bug reports, which are also related:
Bug1
Bug2
All together it seems that the startup process/synchronization is very unstable at the moment.

Thanks for fixing this.


 
 Post subject: Re: IClient not online exception Post rating: 0   New post Posted: Tue 10 Feb, 2015, 10:16 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello FXjuxe!

Standalone API does not provide ability to maintain multiple simultaneous logins from one application. Multiple threads won't help as ClientFactory.getDefaultInstance() always returns the same object.


 
 Post subject: Re: IClient not online exception Post rating: 0   New post Posted: Tue 10 Feb, 2015, 23:02 
User avatar

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

thanks for the hint, the error was on my side with multiple API jars in one folder :-(
If its OK for you I will delete this post.

Regards,
Juergen


 

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