905 views

Description

On a list view, when hovering over the reference icon, the below exception is logged.

This seems to be happening for records where the Activity Formatter (Activities (filtered)) is on the form (For example, Out-Of-The-Box sysapproval_approver and sc_task tables).

2016-11-28 13:08:32 (934) Default-thread-8 AFB8BDFEDBD3A6447D8CF22EBF96190D SEVERE *** ERROR *** Table name cannot be null
java.lang.IllegalStateException: Table name cannot be null
at com.glide.db.TableDescriptor.<init>(TableDescriptor.java:73)
at com.glide.db.TableDescriptor.<init>(TableDescriptor.java:64)
at com.glide.db.TableDescriptor.get(TableDescriptor.java:86)
at com.glide.data.access.TableFactory.get(TableFactory.java:68)
at com.glide.script.GlideRecord.initTable(GlideRecord.java:9295)
at com.glide.script.GlideRecord.initTableIfNecessary(GlideRecord.java:9318)
at com.glide.script.GlideRecord.initIfNecessary(GlideRecord.java:902)
at com.glide.script.GlideRecord.getElement(GlideRecord.java:6551)
at com.glide.ui.ng.NGFilterDateUtil.fixDates(NGFilterDateUtil.java:83)
at com.glide.ui.ng.NGFilterDateUtil.fix(NGFilterDateUtil.java:49)
at com.glide.ui.ng.NGFilterDateUtil.queryFix(NGFilterDateUtil.java:38)
at com.glide.ui.ng.streams.NGListHistoryProcessor.addQuery(NGListHistoryProcessor.java:245)
at com.glide.ui.ng.streams.NGListHistoryProcessor.getGlideRecord(NGListHistoryProcessor.java:234)
at com.glide.ui.ng.streams.NGListHistoryProcessor.process(NGListHistoryProcessor.java:125)
at com.glide.ui.ng.streams.NGListHistoryProcessor.process(NGListHistoryProcessor.java:121)
at com.glide.ui.ng.streams.NGListHistoryUtil.getPreloadedFormStream(NGListHistoryUtil.java:15)
at sun.reflect.GeneratedMethodAccessor4154.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:292)
at org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2577)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at org.mozilla.javascript.gen.Phase_2_Jelly__plugin___com_glide_ui_form_presence_ui_jtemplates_doctype_activity_template_stream_xml_2_25112._c_script_0(Phase 2 Jelly: plugin://com.glide.ui.form_presence/ui.jtemplates/doctype/activity_template_stream.xml.2:1)
at org.mozilla.javascript.gen.Phase_2_Jelly__plugin___com_glide_ui_form_presence_ui_jtemplates_doctype_activity_template_stream_xml_2_25112.call(Phase 2 Jelly: plugin://com.glide.ui.form_presence/ui.jtemplates/doctype/activity_template_stream.xml.2)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:560)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3439)
at org.mozilla.javascript.gen.Phase_2_Jelly__plugin___com_glide_ui_form_presence_ui_jtemplates_doctype_activity_template_stream_xml_2_25112.call(Phase 2 Jelly: plugin://com.glide.ui.form_presence/ui.jtemplates/doctype/activity_template_stream.xml.2)
at org.mozilla.javascript.gen.Phase_2_Jelly__plugin___com_glide_ui_form_presence_ui_jtemplates_doctype_activity_template_stream_xml_2_25112.exec(Phase 2 Jelly: plugin://com.glide.ui.form_presence/ui.jtemplates/doctype/activity_template_stream.xml.2)
at com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:236)
at com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:107)
at com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:73)
at com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:322)
at com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:283)
at com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:254)
at com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:242)
at com.glide.ui.jelly.GlideJellyContext.evaluate(GlideJellyContext.java:532)
at com.glide.ui.jelly.tags.form.EvaluateTag.doTag(EvaluateTag.java:137)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:301)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:146)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at com.glide.ui.jelly.tags.BaseTag.invokeBody(BaseTag.java:267)
at com.glide.ui.jelly.tags.FileinfoTag2.doTag(FileinfoTag2.java:43)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:301)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at com.glide.ui.jelly.tags.BaseTag.invokeBody(BaseTag.java:267)
at com.glide.ui.jelly.tags.FileinfoTag2.doTag(FileinfoTag2.java:43)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:301)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:146)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at com.glide.ui.jelly.tags.BaseTag.invokeBody(BaseTag.java:267)
at com.glide.ui.jelly.tags.FileinfoTag2.doTag(FileinfoTag2.java:43)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:301)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:111)
at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:94)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:111)
at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:94)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:146)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at com.glide.ui.jelly.tags.BaseTag.invokeBody(BaseTag.java:267)
at com.glide.ui.jelly.tags.FileinfoTag2.doTag(FileinfoTag2.java:43)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:301)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:111)
at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:94)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:111)
at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:94)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at com.glide.ui.jelly.tags.BaseTag.invokeBody(BaseTag.java:267)
at com.glide.ui.jelly.tags.FileinfoTag2.doTag(FileinfoTag2.java:43)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:301)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:146)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:111)
at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:94)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:146)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:111)
at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:94)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:146)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:111)
at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:94)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:146)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at com.glide.ui.jelly.tags.BaseTag.invokeBody(BaseTag.java:267)
at com.glide.ui.jelly.tags.FileinfoTag2.doTag(FileinfoTag2.java:43)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:301)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at com.glide.ui.jelly.tags.BaseTag.invokeBody(BaseTag.java:267)
at com.glide.ui.jelly.tags.FileinfoTag2.doTag(FileinfoTag2.java:43)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:301)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at com.glide.ui.jelly.tags.BaseTag.invokeBody(BaseTag.java:267)
at com.glide.ui.jelly.tags.mergedata.WithTag2.executeBody(WithTag2.java:137)
at com.glide.ui.jelly.tags.mergedata.WithTag2.doTag(WithTag2.java:105)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:301)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:111)
at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:94)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:146)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at com.glide.ui.jelly.tags.StaticFormTag.invokeBody(StaticFormTag.java:31)
at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:111)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:301)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:146)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at com.glide.ui.jelly.tags.BaseTag.invokeBody(BaseTag.java:267)
at com.glide.ui.jelly.tags.FileinfoTag2.doTag(FileinfoTag2.java:43)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:301)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:232)
at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:84)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:301)
at com.glide.ui.jelly.GlideJellyContext.run(GlideJellyContext.java:658)
at com.glide.ui.jelly.GlideJellyContext.executeCompiledScript(GlideJellyContext.java:865)
at com.glide.ui.jelly.GlideJellyContext.runScript(GlideJellyContext.java:722)
at com.glide.ui.jelly.GlideJellyContext.runScript(GlideJellyContext.java:680)
at com.glide.ui.GlideFormPhase2.generate(GlideFormPhase2.java:49)
at com.glide.ui.GlideForm.generatePopulatedForm(GlideForm.java:697)
at com.glide.ui.GlideForm.generatePopulatedForm(GlideForm.java:683)
at com.glide.ui.GlideForm.populateForm(GlideForm.java:677)
at com.glide.ui.GlideForm.getRenderedPage(GlideForm.java:221)
at com.glide.ui.GlideForm.getRenderedPage(GlideForm.java:155)
at com.glide.ui.Popup.getPopup(Popup.java:31)
at com.glide.processors.PopupProcessor.doPopup(PopupProcessor.java:143)
at com.glide.processors.PopupProcessor.process(PopupProcessor.java:97)
at com.glide.processors.AProcessor.runProcessor(AProcessor.java:412)
at com.glide.processors.AProcessor.processTransaction(AProcessor.java:187)
at com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:165)
at com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:49)
at com.glide.sys.ServletTransaction.run(ServletTransaction.java:34)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Steps to Reproduce

  1. Navigate to nav_to.do?uri=/sysapproval_approver_list.do

  2. Hover above the reference icon (circled 'i') to generate a popup on an approval record.

  3. View application logs, note IllegalStateException as shown in the Description field.

Workaround

The issue is fixed in Istanbul Patch 6. In order to prevent the error on the affected form, create and force a sys_popup view not to have the activities (filtered):

1- Navigate to /<table name>.do?sysparm_view=sys_popup

2- Add any fields you want to preview popup to have but the activities filtered

3- Create a sys_popup view for the forms that have the Activity Formatter (Activities (filtered)) in the form layout:

https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/administer/field-administration/task/t_FieldsDisplayed.html


Related Problem: PRB729439

Seen In

Helsinki Patch 5
Helsinki Patch 6 Hot Fix 1
Helsinki Patch 7
Berlin Patch 8

Fixed In

Istanbul Patch 6

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-01-29 23:51:13
Published:2018-01-30