Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

ERROR ClientConnector - UDP session ping failed
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=57403
Page 1 of 1

Author:  HansD [ Thu 23 Jul, 2020, 12:18 ]
Post subject:  ERROR ClientConnector - UDP session ping failed

Greetings,
I am getting the following errors constantly after some time (around 10 to 30 seconds) when backtesting a strategy in Eclipse:

2020-07-21 11:46:47.293 ERROR ClientConnector - UDP session ping failed, address d-ja-gva-121-130-118.dukascopy.com/194.8.15.118:10443, reason java.util.concurrent.TimeoutException: [NettyTransportClient-0] Timeout while waiting for response, timeout: 10000, synchRequestId: 12
2020-07-21 11:46:47.294 WARN ClientConnector - [NettyTransportClient-0] Udp channel ping timeout 10000ms. Disconnecting...
2020-07-21 11:46:47.303 INFO ClientConnector - Disconnect task in queue, reason [UDP_CHANNEL_PING_TIME_OUT], comments [Udp channel ping timeout], server address [d-ja-gva-121-130-118.dukascopy.com/194.8.15.118:10443], transport name [NettyTransportClient-0]


The backtest just stops at that point. I have tested it on different days (also weekend) and different networks, WIFI and also directly wired to the router.
Does someone know if I can prevent that somehow like increasing the timeout time or using TCP instaed of UDP or something?
I hope someone can help me with that as I am completely unable to backtest anything.

Author:  HansD [ Thu 19 Nov, 2020, 10:47 ]
Post subject:  Re: ERROR ClientConnector - UDP session ping failed

Does noone know anything about this issue? It is still present for me. I updated to the latest api version, tried Netbeans, tried with another account but always the same error. Can I somehow switch to TCP connection?
If I use the JForex app and test my strategy there all is working but of course that is terrible for testing/debugging.
I really hope someone can help me with this.

Author:  vadim_berezhnoj [ Mon 23 Nov, 2020, 11:55 ]
Post subject:  Re: ERROR ClientConnector - UDP session ping failed

Hello.

The issue reason is in breakpoint that halts channel from reading new messages including pings. That leads to disconnect.
To solve it, put break point, then right click on it and choose breakpoint preferences, select hit count check box and set value to 1.
Thus your break point will work only once, all other events will be passed through and there will be no channel block and any reconnects.

Kind regards, Support Team.

Author:  ftasso [ Mon 23 Nov, 2020, 13:23 ]
Post subject:  Re: ERROR ClientConnector - UDP session ping failed

Hello,
I'm just a bit confused. Why you spoke about breakpoint?
The problem is present in the normal execution of the software.
If you implement a test class using IClient variable, then:
- connect()
- start an empty strategy that subscribe to an instrument and no more
- wait
cyclically there are "UDP session ping failed".

This morning log:

2020-11-23 11:46:45,578 - ERROR UDP session ping failed, address l-ja-gva-122-175.dukascopy.com/194.8.15.175:10443, reason java.util.concurrent.TimeoutException: [DDS2 Standalone Transport Client] Timeout while waiting for response, timeout: 10000, synchRequestId: 32479
2020-11-23 11:42:45,277 - ERROR UDP session ping failed, address l-ja-gva-122-175.dukascopy.com/194.8.15.175:10443, reason java.util.concurrent.TimeoutException: [DDS2 Standalone Transport Client] Timeout while waiting for response, timeout: 10000, synchRequestId: 32446
2020-11-23 09:56:22,334 - ERROR UDP session ping failed, address l-ja-gva-122-175.dukascopy.com/194.8.15.175:10443, reason java.util.concurrent.TimeoutException: [DDS2 Standalone Transport Client] Timeout while waiting for response, timeout: 10000, synchRequestId: 31586
2020-11-23 09:37:35,930 - ERROR UDP session ping failed, address l-ja-gva-122-175.dukascopy.com/194.8.15.175:10443, reason java.util.concurrent.TimeoutException: [DDS2 Standalone Transport Client] Timeout while waiting for response, timeout: 10000, synchRequestId: 31434
2020-11-23 09:33:50,650 - ERROR UDP session ping failed, address l-ja-gva-122-175.dukascopy.com/194.8.15.175:10443, reason java.util.concurrent.TimeoutException: [DDS2 Standalone Transport Client] Timeout while waiting for response, timeout: 10000, synchRequestId: 31404

Thank you

Author:  vadim_berezhnoj [ Tue 01 Dec, 2020, 15:39 ]
Post subject:  Re: ERROR ClientConnector - UDP session ping failed

Initially the reason was in the debug halting threads channel from reading new messages including pings.

Another reason of the issue was found in Firewall and Proxy server blocking UDP traffic.

Regards.

  Page 1 of 1