What is this error message: Illegal access to method getRoles in class com.glide.sys.User

Laurie Marlowe1
Kilo Sage

Hello,

Does anyone know what would cause this error?

Capture.JPG

It's only occurring on an already submitted form, and only in this custom application (not scoped).   I saw another thread on the community with this error message, but there was not enough information for me to understand what would cause this.

Thank you,

Laurie

4 REPLIES 4

oharel
Kilo Sage

Hi Laurie,



When does this happen exactly? (submitting a form, loading it, changing some value etc.)


Can you find the script in your customer app that has getRoles in it and share?


My guess is that the getRoles is trying to work on a non-reference field, or a field that cannot "relate" to getRoles.



harel


Hi Harel,



It appears when I load a form that was previously submitted.   What's weird is, I can't find the script with the 'getroles' in it.   I can't find it even with a global search.



Thanks,



Laurie


corina
ServiceNow Employee
ServiceNow Employee

Hello Laurie.



YOu maybe saw this?


Illegal access to method getName in class com.glide.sys.User



Have you tried searching as here?


error Illegal access to method getDisplayTitle() in class com.glide.script.Filter?



You would need to whitelist the method.


Hmmmm....the only items returned are KB articles.   I ran the debugger, and traced the issue to a UI Action:   sys_ui_action.35851b75eb200200fd7b4eff2206fe98


The UI Action is related to a plugin for Notify that was recently activated.   I opened a ticket with SN.