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: 42
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: 695
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: 42
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: 267

Currently Online:
6 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 111

pramanj: 86

ibrahim: 74

kapsl: 57

gjevremovic: 49

Xavier: 42

TimK: 41

fred: 41

Fransua33: 39

rocket science: 36

Member Stats:

Guest Posters: 0

Members: 1590

Moderators: 17

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1192

Posts: 5057

Newest Members:

warnerfleming, Raymond23Freex, Charles1UsadY, Robertvem, albertinaduff53, wilbertrignall, Rogerbeedo, letamunn4183992, Lizazooda, Hectorner

Moderators: Jouni Aro: 914, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 695, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 24, Teppo Uimonen: 21, Markus Johansson: 36, Niklas Nurminen: 0, Matti Siponen: 161, Lusetti: 0

Administrators: admin: 1