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: 33
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: 100
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: 33
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: 267

Currently Online:
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 109

pramanj: 86

ibrahim: 71

kapsl: 57

gjevremovic: 49

TimK: 41

fred: 41

Fransua33: 39

Xavier: 34

rocket science: 33

Member Stats:

Guest Posters: 0

Members: 1283

Moderators: 15

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1100

Posts: 4643

Newest Members:

henryking123, pcygraig5029, corejavatuts, jaynelumpkin4, nandant07, vnd18, arnetteleverett, autumnzzi6, vickiviera, dianames129491

Moderators: Jouni Aro: 869, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 633, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Teppo Uimonen: 21, Markus Johansson: 30, Matti Siponen: 100, Lusetti: 0

Administrators: admin: 1