Avatar
Please consider registering
guest
sp_LogInOut Log Insp_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 RSSsp_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: 1045
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: 1919
Currently Online:
Guest(s) 23
Currently Browsing this Page:
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.Rollason
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1045, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1