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
NPE on MonitoredDataItem (server)
November 25, 2021
12:46, EET
Avatar
Xavier
Member
Members
Forum Posts: 43
Member Since:
March 26, 2014
sp_UserOfflineSmall Offline

Hello,

Using SDK 4.5.8, I have a NullPointer with this stack trace sometimes (not always !) :

com.prosysopc.ua.stack.common.ServiceFaultException: ServiceFault [ResponseHeader="ResponseHeader [Timestamp="11/23/21 15:33:37.4960000 GMT", RequestHandle="null", ServiceResult="Bad_InternalError (0x80020000) "An internal error occurred as a result of a programming or configuration error."", ServiceDiagnostics="Diagnostic Info: java.lang.NullPointerException (Bad_InternalError (0x80020000) "An internal error occurred as a result of a programming or configuration error.")
at com.prosysopc.ua.server.MonitoredDataItem.isAccessible(SourceFile:966)
at com.prosysopc.ua.server.MonitoredDataItem.notifyDataChange(SourceFile:390)
at com.prosysopc.ua.server.MonitoredDataItem.notifyDataChange(SourceFile:368)
at com.prosysopc.ua.server.MonitoredDataItem$2.onDataChange(SourceFile:226)
at com.prosysopc.ua.server.nodes.ServerNode.fireDataChange(SourceFile:786)
at com.prosysopc.ua.server.nodes.ServerNode.dataChange(SourceFile:659)
at com.prosysopc.ua.server.nodes.UaVariableNode.setValue(SourceFile:462)

I don’t think I had it with a previous version but hard to be sure, and I don’t know what is different when it works and when it fails!

November 25, 2021
17:12, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

Would it happen to be that for the Session (whose item it is) the ActivateSession is called again to change the user and that a value of the node for the item would also change at the same time. We might have a race condition in the current implementation if that happens (based on a very quick look at this).

Could be something else, but in general there has not been changes in a while (we did some fixes in 4.5.4 so depends from which version you did update).

November 26, 2021
18:26, EET
Avatar
Xavier
Member
Members
Forum Posts: 43
Member Since:
March 26, 2014
sp_UserOfflineSmall Offline

Thank you, I think you are right about ActivateSession as I have a problem with a session being closed/activated non stop at the same time (issue on my side). If I fix this the NPE should not happen anymore

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
12 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: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com

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