Avatar
Please consider registering
guest
sp_LogInOut Log Insp_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 RSSsp_TopicIcon
Exception when writing DataValue of UserIdentityToken type into UaVariableNode
June 3, 2024
19:43, EEST
Avatar
hbrackel
Member
Members
Forum Posts: 144
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

Good evening.

I would like to write UserIdentityToken values (AnonymousIdentityToken, UsernameIdentityToken, …) into a server variable named userIdentityToken of DataType UserIdentityToken. All objects and nodes have been generated from nodesets.

When writing the value using myObject.setUserIdentityToken(value) or
when writing the value using myObject.getUserIdentityTokenNode().setValue(DataValue(Variant(value))), an exception is thrown

[…] c.p.ua.server.nodes.UaVariableNode : Error while trying to write structure value to up/down parts
java.lang.IllegalArgumentException: Unknown field: PolicyId

Despite the exception, the values are actually correctly updated in the addressSpace of the server.

What would be the correct approach to update the value of such UserIdentityToken variable without throwing an exception?

Prosys SDK version 5.1.0

June 4, 2024
12:13, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1045
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

Thanks for the report, seems 5.x does have an issue in the Structure synchronization system when the written type is a subtype of the DataType. Will be fixed in a future update.

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 43
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 732
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6515
Newest Members:
mood edibles, LouieWreve, daniellabdx, janessan21, sammiebeak359, gena7127517, thorstenbouldin, Brett.Rollason, steven014223542, Roberthat
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1045, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1