Notifications

14 views

Symptoms


Upgrading to London is throwing message 'Illegal access to getter method getSource in class com.glide.sys.User' for all users logging on to instance 

Release


London

Cause


The instance must be having a custom Script includes for user redirection to other pages(like Service Portal, HR Portal etc.) which would be using unsupported functions. User can identify which Script Include is causing the error by going through the node logs. The most probable cause would that the script includes might contain gs object's internal elements which is locked down in London. 

Resolution


Refer below for supported functions to directly access the GlideUser

https://docs.servicenow.com/bundle/london-application-development/page/script/server-scripting/task/t_GetAUserObject.

https://docs.servicenow.com/bundle/london-application-development/page/app-store/dev_portal/API_reference/glideUserScoped/concept/c_GlideUserScopedAPI.html

The script includes should use GlideRecord query instead of unsupported functions to evaluate the user criteria and redirect to other pages.

Additional Information


https://docs.servicenow.com/bundle/london-application-development/page/script/server-scripting/task/t_GetAUserObject.html 
https://docs.servicenow.com/bundle/london-application-development/page/app-store/dev_portal/API_reference/glideUserScoped/concept/c_GlideUserScopedAPI.html 
https://docs.servicenow.com/bundle/london-application-development/page/app-store/dev_portal/API_reference/GlideRecord/concept/c_GlideRecordAPI.html 

Article Information

Last Updated:2018-10-29 08:39:33
Published:2018-09-20