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
NullPointException in ReflectiveProperty Constructor
July 12, 2014
17:37, EEST
Avatar
hbrackel
Member
Members
Forum Posts: 144
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

This is probably not the right place to post this problem. Please advise a support email address if appropriate.

In the version 2.0.0 of the SDK, the constructor of a server.nodes.ReflectiveProperty throws a null pointer exception. When debugging I found, that in the constructor the ReflectiveProperty.toString() methods seems to call getDataType(), which is null at that time. The same constructor works without problems in SDK 1.5.0.

at com.prosysopc.ua.server.nodes.ReflectiveVariable.getDataType(Unknown Source)
at com.prosysopc.ua.server.nodes.UaVariableNode.getDataTypeId(Unknown Source)
at com.prosysopc.ua.server.nodes.UaVariableNode.setDataType(Unknown Source)
at com.prosysopc.ua.server.nodes.UaVariableNode.setDataTypeId(Unknown Source)
at com.prosysopc.ua.server.nodes.UaVariableNode.(Unknown Source)
at com.prosysopc.ua.server.nodes.CallbackVariable.(Unknown Source)
at com.prosysopc.ua.server.nodes.ReflectiveVariable.(Unknown Source)
at com.prosysopc.ua.server.nodes.ReflectiveProperty.(Unknown Source)

BTW The JavaDoc comments are partially out of sync with the source code (e.g. ReflectiveVariable)

July 14, 2014
6:52, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

Well this is ok too, but you can send bug reports to uajava-support@prosysopc.com.

I managed to reproduce the problem, seems to be a side-effect of an another fix. Fixing this should not take long.. if you send mail to above address, I can provide the fix when it’s ready.

Fixed the javadoc for ReflectiveVariable.

July 14, 2014
7:29, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

This is now fixed in 2.0.1-198 , send mail to uajava-support@prosysopc.com and I can provide a link.

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: 731

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

inilarythikibia, rickykennion, PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466

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

Administrators: admin: 1