Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
SubscriptionAliveListener.onTimeout --> after communicationFault
September 4, 2024
11:02, EEST
Avatar
Ibrahim
Member
Members
Forum Posts: 78
Member Since:
August 20, 2014
sp_UserOfflineSmall Offline

Hi Prosys Team,
currently we have a problem in a customer project that after a communicationFault the subscription runs into “SubscriptionAliveListener.onTimeout”. After this we do not receive any data change events anymore. For some reason this does not happen for all connections but only for those based on Codesys OPC UA Servers. We believe that there is something wrong on Server side, but we are trying to solve it on client side if possible. We are using the Java SDK for Client Version 4.5.8-1468.
My question: What would be on client side the best way to recover from this event and have a fresh working subscription?

Thanks!

BR
Ibrahim

September 4, 2024
15:16, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 337
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

First of all, version 4.5.8 is already very old. It would be highly recommended to update to the latest version 5.2.4.

SubscriptionAliveListener.onTimeout implies that the Server hasn’t send a keep alive message in the expected time. While this doesn’t mean that the Subscription has completely timed out, which would be indicated with SubscriptionAliveListener.onLifetimeTimeout, the Server not sending the keep alive message would imply that something is wrong.

If the Subscription is not recovering automatically from the onTimeout event, you should remove it from your UaClient and then add it back. That should trigger the Server to remove the Server-side version of the Subscription, if it still exists there, and then create a new Subscription in its place.

September 5, 2024
15:56, EEST
Avatar
Ibrahim
Member
Members
Forum Posts: 78
Member Since:
August 20, 2014
sp_UserOfflineSmall Offline

Hi Matti,
thanks a lot for the quick reply. We will try it the way you described.

BR
Ibrahim

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online: iivanov
27 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 142

pramanj: 86

rocket science: 85

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 724

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1495

Posts: 6352

Newest Members:

armandovarley, dole, rustyhammer, braydenaquino6, blaircleveland0, maribelkeeler7, Nicky, rickymeade2, niamhtoussaint0, adamq0505309

Moderators: Jouni Aro: 1017, Pyry: 1, Petri: 0, Bjarne Boström: 1003, Jimmy Ni: 26, Matti Siponen: 337, Lusetti: 0

Administrators: admin: 1