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.

ERROR ClientConnector - UDP session ping failed
 Post subject: ERROR ClientConnector - UDP session ping failed Post rating: 1   New post Posted: Thu 23 Jul, 2020, 12:18 

User rating: 2
Joined: Thu 27 Jun, 2013, 19:14
Posts: 13
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.


 
 Post subject: Re: ERROR ClientConnector - UDP session ping failed Post rating: 1   New post Posted: Thu 19 Nov, 2020, 10:47 

User rating: 2
Joined: Thu 27 Jun, 2013, 19:14
Posts: 13
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.


 
 Post subject: Re: ERROR ClientConnector - UDP session ping failed Post rating: 0   New post Posted: Mon 23 Nov, 2020, 11:55 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
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.


 
 Post subject: Re: ERROR ClientConnector - UDP session ping failed Post rating: 0   New post Posted: Mon 23 Nov, 2020, 13:23 

User rating: 2
Joined: Fri 27 Jul, 2018, 13:46
Posts: 14
Location: ItalyItaly
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


 
 Post subject: Re: ERROR ClientConnector - UDP session ping failed Post rating: 0   New post Posted: Tue 01 Dec, 2020, 15:39 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
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.


 
 Post subject: Re: ERROR ClientConnector - UDP session ping failed Post rating: 0   New post Posted: Sun 21 Nov, 2021, 06:48 

User rating: 2
Joined: Fri 06 Apr, 2018, 17:06
Posts: 23
Location: Poland,
Hello. I had the same problem few days ago.
Quote:
08-17 07:35:26.561 ERROR ClientConnector - UDP session ping failed, address l-ja-eu-w-109-22-a.dukascopy.com/35.177.217.171:10443, reason java.util.concurrent.TimeoutException: [DDS2 Standalone Transport Client] Timeout while waiting for response, timeout: 10000, synchRequestId: 3

Can the lack of a subscribed instrument generate such a message? For example, strategy sended order on JPN.IDX but strategy has not subscribe this instrument in function from Main.java
private static void subscribeToInstruments() {
        Set<Instrument> instruments = new HashSet<>();
        // no subscribe to JPN.IDX instrument
        instruments.add(Instrument.EURUSD);
        LOGGER.info("Subscribing instruments...");
        client.setSubscribedInstruments(instruments);
    }

This issue can generate such an error with timeout exception?

But if I write information to LOOGER and it returns correct values about the my account, it means that the connection is ok . :|
public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {

        if (instrument.equals(Instrument.JPNIDXJPY)) {
            double free = account.getEquity() - account.getUsedMargin();
            LOGGER.info(Double.toString(account.getUsedMargin()) + " | free: " + free);
        }

}


 

Jump to:  

  © 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