How to fix a "com.glide.ui.ServletErrorListener: java.lang.NullPointerException" Error?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2019 10:59 AM
Hi All,
I have the following error (the stack trace excerpt below: emphasis mine ) when trying to insert data into a form:
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2019 12:28 AM
Hi Hamid,
that could be because of encryption of that field and value being set; you can set the value inside the field which is encrypted; system will take care of encryption
https://hi.service-now.com/kb_view.do?sysparm_article=KB0719974
regarding updateWithReferences() that should not be an issue
try adding try catch block to handle exception so as to know the exact issue
Is the script executed in scoped application?
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2019 07:03 AM
Hi Ankur,
Thanks for your reply. I don't understand when you say "you can set the value inside the field which is encrypted;" What do you mean "inside the field" ? Can you give me an example?
Yes the script is executed in a scoped application.
Thanks
Omar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2019 11:20 PM
Hi Hamid,
you can set the value in encrypted field means you can use below syntax
gr.password = 'abc';
what system does is it automatically encrypts the value abc to some other value; you need not care about this
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader