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
AddressSpaceException with UaServerCpp demo server
February 26, 2016
11:56, EET
Avatar
gjevremovic
Member
Members
Forum Posts: 49
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

Hi,

did anybody has problem with browsing tree of UaServerCpp server?
I am always receiving next error at same place while browsing through the tree::

26.02.2016 12:37:42,866 DEBUG OpcUaServerBrowser.dumpOpcUaAddressSpace – Reference Description: parent DA Profile Organizes node MultiStateValueDiscreteType
26.02.2016 12:37:42,867 DEBUG OpcUaServerBrowser.dumpOpcUaAddressSpace – Reference Description: parent MultiStateValueDiscreteType Organizes node Byte
26.02.2016 12:37:42,874 DEBUG OpcUaServerBrowser.dumpOpcUaAddressSpace – Reference Description: parent Byte HasProperty node EnumValues
Exception in thread “main” java.lang.RuntimeException: com.prosysopc.ua.client.AddressSpaceException: Cannot determine NodeClass for NodeId: i=7594 because the value is not good: DataValue(value=(null), statusCode=Bad_NodeIdUnknown (0x80340000) “The node id refers to a node that does not exist in the server address space.”, sourceTimestamp=null, sourcePicoseconds=0, serverTimestamp=02/26/16 11:37:42.8748958 GMT, serverPicoseconds=0)
at com.prosysopc.ua.client.nodes.UaVariableImpl.getDataType(Unknown Source)

I failed to find NodeId with i=7594 in the server tree by using UaExpert client.
Next node which client should read is:
parent Byte HasProperty node ValueAsText which has i=6175 and reading of it is fine in UaExpert.
Like there is some hidden node in the tree, I don’t have a clue.
Best regards,
Goran

Prosys-OPC-UA-Java-SDK-Client-Binary-2.2.0-552
Unified Automation UA SDK C++ Server Professional 1.5.0 (Binary Edition)

February 26, 2016
19:51, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

This problem is already known and fixed in the C++ SDK. The fix will be included in the version 1.5.1 that is currently in testing.

The missing node is the DataType EnumValueType.

April 5, 2016
12:50, EEST
Avatar
gjevremovic
Member
Members
Forum Posts: 49
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

Hi Aro,
maybe it is good idea to rethrow this exception by uaVariable.getDataType()?
BR,
jev

April 5, 2016
15:04, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Since getDataType is introduced in the interface level (UaValueNode), which is common to the client side and server side objects, we cannot throw AddressSpaceException, which is a client side exception only.

Instead, it is converted to RuntimeException – which hides it away from the developer, unfortunately.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
18 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: 729

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus

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

Administrators: admin: 1