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
Possibility to react on 'Got Bad_NoSubscription as a PublishResponse, although we have connected Subscriptions'
March 17, 2021
10:01, EET
Avatar
rocket science
Member
Members
Forum Posts: 77
Member Since:
March 16, 2017
sp_UserOfflineSmall Offline

Hi all,

I had an issue using the Client SDK v4.3.0 while doing some tests with the Softing dataFeed OPC suite v4.22 (run on demo mode).

At some point I did not get any subscription responses but only the following logging was visible.

2021-03-15 04:29:47,498|UaClient$a|INFO|Got Bad_NoSubscription as a PublishResponse, although we have connected Subscriptions
2021-03-15 04:29:47,529|UaClient$a|INFO|Got Bad_NoSubscription as a PublishResponse, although we have connected Subscriptions
2021-03-15 04:29:47,529|UaClient$a|INFO|Got Bad_NoSubscription as a PublishResponse, although we have connected Subscriptions
2021-03-15 04:29:47,529|UaClient$a|INFO|Got Bad_NoSubscription as a PublishResponse, although we have connected Subscriptions
2021-03-15 04:29:47,529|UaClient$a|INFO|Got Bad_NoSubscription as a PublishResponse, although we have connected Subscriptions
2021-03-15 04:29:47,545|UaClient$a|INFO|Got Bad_NoSubscription as a PublishResponse, although we have connected Subscriptions

Restarting the Client Application (which is based on the Prosys SDK) did not help to solve the issue.

The problem occured until the dataFeed was restarted. After the restart of the dataFeed I was able to get the publish requests.

From Client-SDK point of view, everthing looked quite normal (execpt the INFO logging)

I wonder if there is any possibility to get informed by the Client SDK about the problem, so that I can show a message to the end user that something is wrong and a restart of the OpcUa server is recommended?

Thank you!

March 17, 2021
14:47, EET
Avatar
Matti Siponen
Moderator
Members

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

Hello,

If your Client is receiving this StatusCode as the ServiceResult of the ResponseHeader of a PublishResponse, you can make a new class that implements UaClientListener interface to validate PublishResponses with its validatePublishResponse method. You can add some custom logic to the validation process to notify the user that Bad_NoSubscription StatusCode has been received, though that StatusCode by itself doesn’t imply that the PublishResponse is invalid and thus you should still have the method return true, unless there is something else wrong with the PublishResponse. Take a look at SampleConsoleClient and its MyUaClientListener for an example of how to implement UaClientListener interface and use it in a Client application.

However, if your Client receives this StatusCode in a ServiceFault, then the stack layer handles the error internally and no custom logic can be added to processing the ServiceFault.

March 17, 2021
17:32, EET
Avatar
rocket science
Member
Members
Forum Posts: 77
Member Since:
March 16, 2017
sp_UserOfflineSmall Offline

Hi thank you for your answer – I’ll try it …

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 680

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6260

Newest Members:

sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1