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
Possible strange behavior of SubscriptionNotificationListener
November 16, 2016
17:29, EET
Avatar
gjevremovic
Member
Members
Forum Posts: 49
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

Hi,

I have one issue that might be client side bug.
I am using latest release of prosys lib and for test I am using UaAnsiC demo server.
The issue is related to subscription to String nodes.
I have simple app which add 2 nodes to subscription. One is LocalizedText and another is of type String.
Steps:
1) start UaAnsiC demo server
2) start app
I see in log nodes are added to subscription and subscribed but onDataChange() returns value only for LocalizedText.
onDataChange event for String node is missing:

16.11.2016 14:41:57,958 DEBUG TSubscriptionNotificationListener.onDataChange – Monitored data item ns=4;s=Demo.Static.Scalar.LocalizedText has changed, new value () kkkknnn
16.11.2016 14:41:57,958 DEBUG TSubscriptionNotificationListener.onDataChange – NodeReference nsuri=http://www.unifiedautomation.com/DemoServer/;s=Demo.Static.Scalar.LocalizedText
16.11.2016 14:41:57,958 DEBUG TSubscriptionNotificationListener.onDataChange – Node element class class org.opcfoundation.ua.builtintypes.LocalizedText
16.11.2016 14:41:57,959 DEBUG TSubscriptionNotificationListener.onDataChange – Variable nsuri=http://www.unifiedautomation.com/DemoServer/;s=Demo.Static.Scalar.LocalizedText found in cache.

3) Now I closed the app.
4) I entered empty string to String node by using UaExpert client (just enter in the field of DataAccess view)

5) Start app again
Now in log I see it is subscribed to both nodes and listener returns data change for both:

16.11.2016 16:24:11,943 DEBUG TSubscriptionNotificationListener.onDataChange – Monitored data item ns=4;s=Demo.Static.Scalar.String has changed, new value
16.11.2016 16:24:11,943 DEBUG TSubscriptionNotificationListener.onDataChange – NodeReference nsuri=http://www.unifiedautomation.com/DemoServer/;s=Demo.Static.Scalar.String
16.11.2016 16:24:11,944 DEBUGTSubscriptionNotificationListener.onDataChange – Node element class class java.lang.String
16.11.2016 16:24:11,944 DEBUG TSubscriptionNotificationListener.onDataChange – Variable nsuri=http://www.unifiedautomation.com/DemoServer/;s=Demo.Static.Scalar.String found in cache.

16.11.2016 16:24:11,945 DEBUG TSubscriptionNotificationListener.onDataChange – Monitored data item ns=4;s=Demo.Static.Scalar.LocalizedText has changed, new value null
16.11.2016 16:24:11,945 DEBUG TSubscriptionNotificationListener.onDataChange – NodeReference nsuri=http://www.unifiedautomation.com/DemoServer/;s=Demo.Static.Scalar.LocalizedText
16.11.2016 16:24:11,945 DEBUG TSubscriptionNotificationListener.onDataChange – Node element class class org.opcfoundation.ua.builtintypes.LocalizedText
16.11.2016 16:24:11,945 DEBUG TSubscriptionNotificationListener.onDataChange – Variable nsuri=http://www.unifiedautomation.com/DemoServer/;s=Demo.Static.Scalar.LocalizedText found in cache.

It looks that some specific state of String nodes in UaAnsiC demo server cause prosys client to fail in receiving initial onDataChange() just after
subscription.

Could you please check?

BR,

gjevremovic

November 17, 2016
11:04, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

There is no checking for the data inside DataChanges in the Java SDK, so I would rather suspect that there is something on the server side affecting this.

Could you validate with WireShark, for example, that the server is actually sending the data that you are expecting?

November 17, 2016
13:06, EET
Avatar
gjevremovic
Member
Members
Forum Posts: 49
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

Hi Aro,

Thanks, I agree. I was wrong. More sense is that this doesn’t have anything with client. I wonder what might it be and hope maybe you had similar reported.
Generally it is more correct to say that UaAnsiC demo server miss initial publish in this case.
I will try with wireshark, currently I can’t (don’t know how to) monitor local opcua demo server with wireshark.
I added port to the prefernces of opcua but when I type opcua
in the filter there is nothing in the list.

BR,

gjevremovic

November 17, 2016
13:21, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yeah, unfortunately Wireshark does not work with local connections.

November 18, 2016
11:52, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

I told the Unified Automation developers about the issue and they will take a look. But please contact them directly, if you don’t hear about this or if you find more information about it.

November 21, 2016
16:38, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

I got a response that they could not reproduce the issue. So, if you can create a Wireshark or Compliance Test Tool recording of the session (in client mode – if you are OPCF member), that would help the most to analyse what is happening in practice.

And please, contact Unified Automation support directly, if possible.

Forum Timezone: Europe/Helsinki

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: 737

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6450

Newest Members:

fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1