81 views

Description

The syslog table can be filled with the warnings called "Evaluator: org.mozilla.javascript.EcmaError: Cannot convert null to an object.
Caused by error in Phase 2 Jelly: file:/glide/nodes/redhat020_16048/webapps/glide/itil/WEB-INF/ui.jtemplates/ie_checker.xml.2 at line 20"


For example:


2020-01-17 00:01:28 (266) Default-thread-1 7079A78FDB9A48D43306ABC5CA9619D4 txid=b479a78fdb9a WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: Cannot convert null to an object.
Caused by error in Phase 2 Jelly: file:/glide/nodes/redhat020_16048/webapps/glide/itil/WEB-INF/ui.jtemplates/ie_checker.xml.2 at line 20

17:
18: // If IE is in compatibility mode, ignore the emulated version
19: // and report the actual version.
==> 20: if (matches = userAgent.match(/Trident\/(\d)\.0/))
21: obj.version = parseInt(matches[1]) + 4;
22: else if (matches = userAgent.match(/MSIE (\d)\.0/))
23: obj.version = parseInt(matches[1]);

2020-01-17 00:01:28 (267) Default-thread-1 7079A78FDB9A48D43306ABC5CA9619D4 txid=b479a78fdb9a WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: Cannot convert null to an object.
Caused by error in Phase 2 Jelly: file:/glide/nodes/redhat020_16048/webapps/glide/itil/WEB-INF/ui.jtemplates/ie_checker.xml.2 at line 5

2: if (typeof browser === 'undefined')
3: var browser = {};
4:
==> 5: browser = (function IEChecker(obj) {
6: // in case there is an override, we should honor it.
7: if (typeof obj.isMSIE !== 'undefined')
8: return obj;

2020-01-17 00:01:28 (269) Default-thread-1 7079A78FDB9A48D43306ABC5CA9619D4 txid=b479a78fdb9a WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: Cannot convert null to an object.
Caused by error in <refname> at line 1

==> 1: browser.userAgent.indexOf('iPad;') > -1

2020-01-17 00:01:28 (270) Default-thread-1 7079A78FDB9A48D43306ABC5CA9619D4 txid=b479a78fdb9a WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: Cannot convert null to an object.
Caused by error in <refname> at line 1

==> 1: browser.userAgent.indexOf('iPhone') > -1

2020-01-17 00:01:28 (271) Default-thread-1 7079A78FDB9A48D43306ABC5CA9619D4 txid=b479a78fdb9a WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: Cannot convert null to an object.
Caused by error in <refname> at line 1

==> 1: browser.userAgent.indexOf('Android') > -1

2020-01-17 00:01:28 (272) Default-thread-1 7079A78FDB9A48D43306ABC5CA9619D4 txid=b479a78fdb9a WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: Cannot convert null to an object.
Caused by error in <refname> at line 1

==> 1: browser.userAgent.indexOf('Edge') > -1

2020-01-17 00:01:28 (279) Default-thread-1 7079A78FDB9A48D43306ABC5CA9619D4 txid=b479a78fdb9a *** End #3705821 /auth_redirect.do, user: guest, total time: 0:00:00.043, processing time: 0:00:00.043, SQL time: 0:00:00.000 (count: 7), ACL time: 0:00:00.001, source: 35.165.59.54 null

Release or Environment

Any release.

Resolution

To avoid this the users that trigger this log need "web_service_only" tickbox ticked on their profiles":
https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/users-and-groups/concept/c_NonInteractiveSessions.html#t_CreateANonInteractiveUser

Article Information

Last Updated:2020-10-31 05:54:27
Published:2020-08-21