What is this error message: Illegal access to method getRoles in class com.glide.sys.User
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2017 12:34 PM
Hello,
Does anyone know what would cause this error?
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
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2017 11:45 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2017 06:17 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2017 06:45 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2017 08:09 AM
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.