8:48, EEST
Moderators
February 11, 2020
9:20, EEST
June 21, 2021
Hello,
the uaClient.getAddressSpace().getNode(nodeId) returns a node with type BaseObjectTypeImpl while in the server the node is defined with type CustomType.
getNode(nodeId,CustomType.class ) throw ClassCastException.
Is there any other way to retrieve a node from the server with its right TypeDefinition ?
10:07, EEST
Moderators
February 11, 2020
Hello,
Has the Server application also been made with Prosys OPC UA SDK for Java? Has CustomType class been generated from a NodeSet file with the Code Generator? If it has been generated with the Code Generator, have you registered the the Information Model with UaClient.registerModel method?
If the getNode method is returning BaseObjectTypeImpl when no class is specified, then the type of the Node on Server would seem to be BaseObjectType. Have you verified that its HasTypeDefinition Reference targets CustomType TypeDefinition Node?
Most Users Ever Online: 1919
Currently Online:
42 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: 726
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_galleryModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1