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: 135
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: 983
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: 983
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:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 76

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 685

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6257

Newest Members:

Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1, Flores Frederick, ellenmoss, harriettscherer

Moderators: Jouni Aro: 1009, 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: 320, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1