11:02, EEST
August 20, 2014
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
15:16, EEST
Moderators
February 11, 2020
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.
Most Users Ever Online: 1919
Currently Online:
25 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 749
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
scvchad954, misty3446453365, KelsonzFu, Kelsonz, lienbelisario, erick34s63346, Kaitlyntvsl, lonaerskine7, KTP21ideft, GeorgecotagModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1