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
Retrieving modelled instance node in java client failed
November 4, 2014
11:44, EET
Avatar
pfpmeijers
Member
Members
Forum Posts: 9
Member Since:
October 29, 2014
sp_UserOfflineSmall Offline

When I try to get the node foir an object instance via
UaNode node = addressSpace.getNode(new NodeId(3, “bps”));
I get the following exception:

Exception in thread “main” com.prosysopc.ua.client.AddressSpaceException: Cannot create node of type Object
at com.prosysopc.ua.client.AddressSpace.getNode(Unknown Source)
at Client.main(Client.java:42)
Caused by: com.prosysopc.ua.nodes.UaNodeFactoryException: Cannot create a new UaNode instance: The constructor(NodeId, QualifiedName, LocalizedText) is not found from class …
at com.prosysopc.ua.client.nodes.UaClientNodeFactory.a(Unknown Source)
at com.prosysopc.ua.client.nodes.UaClientNodeFactory.getConstructor(Unknown Source)
at com.prosysopc.ua.client.nodes.UaClientNodeFactory.getConstructor(Unknown Source)
at com.prosysopc.ua.client.nodes.UaClientNodeFactory.createNode(Unknown Source)
at com.prosysopc.ua.client.NodeCache.createNode(Unknown Source)
… 2 more

The node’s data type is custom and code for this is generated via the codegen tool. I used the same approach as is written down in the codegen ReadmeSample.md
Anyone a clue of what I am doing wrong?

Thanks, Patrick

November 4, 2014
15:28, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1044
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Sounds like an issue we had in version 2.0.0 and was fixed to 2.0.2. Which version do you have?

November 4, 2014
22:59, EET
Avatar
pfpmeijers
Member
Members
Forum Posts: 9
Member Since:
October 29, 2014
sp_UserOfflineSmall Offline

I have 2.0.0 indeed. Will retry with 2.0.2 and let you know. Grt, Patrick

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 48
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 100
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 773
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1558
Posts: 6567
Newest Members:
aracelyhaley4, raphaelschonell, Ashmag, kathyreimann56, brittanylemos, dorthycundiff76, PromotionToold, CHHinrichs, rodricklienhop, jose_Wanderlei
Moderators: Jouni Aro: 1039, Pyry: 1, Petri: 1, Bjarne Boström: 1054, Jimmy Ni: 26, Matti Siponen: 359, Lusetti: 0
Administrators: admin: 1