Please consider registering

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
Forum Posts: 130
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
Bjarne Boström
Forum Posts: 941
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline


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
Bjarne Boström
Forum Posts: 941
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: 518

Currently Online:
11 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 130

pramanj: 86

ibrahim: 75

rocket science: 72

Francesco Zambon: 62

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 651

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1415

Posts: 6035

Newest Members:

u310498, ntd, francescac, yahya95, leomajoe, Gus, sdfsdfsdfsd, riatuccker

Moderators: Jouni Aro: 988, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 941, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 25, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 288, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1