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
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: 1026
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:
63 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: 738

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6451

Newest Members:

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

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

Administrators: admin: 1