Dukascopy
 
 
Wiki JStore Search Login

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

    Submit JForex API function requests in this forum only.
    Off topics are strictly forbidden.

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

ITesterClient stops working because of SSLException
 Post subject: ITesterClient stops working because of SSLException Post rating: 0   New post Posted: Wed 25 Oct, 2017, 16:42 
User avatar

User rating: 0
Joined: Tue 15 Sep, 2015, 20:34
Posts: 2
Location: Czech Republic, Chlumec nad Cidlinou
In JForex, there is a great tool for optimization strategy parameters. I am trying to develop my own system, very similar to that of JForex but unlike JForex, my system does not work so well.
My system is designed as follows:

I create hundreds-thousands of IStrategy instances, each representing my trading strategy with different parameters.
I create one instance of ITesterClient
I create one TaskManager, which for each IStrategy creates a single Thread. In each thread, IStrategy is passed to ITesterClient. When ITesterClient finishes its job, thread stops and different thread is run instead. Task Manager ensures maximal number of Threads, which are running simultaneously.
When one thread is finished, it persist the test results and next thread starts running - this works as expected.

The whole process (testing all strategies) requires 10 hours or more to finish (even on my computational server). What is bothering me is one error, which occurs sometimes after 1 hour of computing, sometimes after 8 hours, but this error causes all running strategies to stop running.

Here are some relevant parts of my log file in time, when this happens. Unfortunately, no detailed stack trace is logged for the following error.

2017-10-25 14:04:28.571 INFO cz.jlochman.lochness.core.jforex.JForexSimpleReportClient - Strategy started: 9
2017-10-25 14:06:55.896 ERROR com.dukascopy.dds4.transport.client.netty.TransportClientSession - [NettyTransportClient-2] Request send failed because of SSLException: SSLEngine closed already
2017-10-25 14:06:55.901 ERROR com.dukascopy.dds4.transport.client.netty.TransportClientSession - [NettyTransportClient-2] Request send failed because of SSLException: SSLEngine closed already
2017-10-25 14:06:56.009 ERROR com.dukascopy.dds4.transport.client.netty.ClientConnector - Secondary session ping failed: javax.net.ssl.SSLException: SSLEngine closed already, timeout: 10000, synchRequestId: 20
2017-10-25 14:06:56.009 ERROR com.dukascopy.dds4.transport.client.netty.ClientConnector - Primary session ping failed: javax.net.ssl.SSLException: SSLEngine closed already, timeout: 10000, synchRequestId: 19
2017-10-25 14:06:56.107 INFO com.dukascopy.dds4.transport.client.netty.ClientConnector - Disconnect task in queue, reason [CONNECTION_PROBLEM], comments [Unknown connection problem], server address [d-ja-gva-91-191.dukascopy.com/194.8.15.191:10443], transport name [NettyTransportClient-2]

I have tried reconnecting my ITesterClient after certain amount of time, but the problem persisted. This happens on every machine I am using for my computations. They differ in operating system (Debian or OSX) and in internet connection, which they do not share.

Does anyone has an idea, why this is happening?


 
 Post subject: Re: ITesterClient stops working because of SSLException Post rating: 0   New post Posted: Thu 15 Feb, 2018, 18:46 
User avatar

User rating: 0
Joined: Wed 16 Apr, 2014, 13:07
Posts: 11
Location: Poland, Kraków
This is because of poor quality of servers Dukascopy used for ITesterClient and poor maintenance. Only during the weekends sometimes problem dissapears


 

Jump to:  

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