

NPE on MonitoredDataItem (server)
November 25, 2021
12:46, EET
12:46, EET
Xavier
Member
Members
Forum Posts: 43
Member Since:
March 26, 2014
March 26, 2014

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)
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
17:12, EET

Bjarne Boström
Moderator
Moderators
Forum Posts: 1045
Member Since:
April 3, 2012
April 3, 2012

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).
Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 23
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 734
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6516
Newest Members:
basilpullman, Richardmip, mood edibles, LouieWreve, daniellabdx, janessan21, sammiebeak359, gena7127517, thorstenbouldin, Brett.RollasonModerators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1045, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1
© Simple:Press —
