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: 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, adamq0505309Moderators: Jouni Aro: 1017, Pyry: 1, Petri: 0, Bjarne Boström: 1003, Jimmy Ni: 26, Matti Siponen: 337, Lusetti: 0
Administrators: admin: 1