11:44, EET
October 29, 2014
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
Most Users Ever Online: 518
Currently Online:
19 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
hbrackel: 135
pramanj: 86
Francesco Zambon: 81
rocket science: 77
ibrahim: 75
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
TimK: 41
Member Stats:
Guest Posters: 0
Members: 685
Moderators: 16
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1467
Posts: 6259
Newest Members:
Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1, Flores Frederick, ellenmoss, harriettschererModerators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5
Administrators: admin: 1