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: 1010
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: 1010
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: 518

Currently Online:
22 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 683

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma

Moderators: Jouni Aro: 1010, 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