Notifications

50 views

Symptoms

On any list on the platform (for example incident.list), when the user tries to filter on the date field, the system was not populating the possible date values, as shown in the below screenshot,

In general, the system suppose to display the date filter values as shown in the below screenshot,

 

While reproducing the above-mentioned date field condition filter issue, observed below error on the browser console,

VM1170:1 Uncaught SyntaxError: Unexpected string in JSON at position 721
at JSON.parse (<anonymous>)
at responseFunction (js_includes_doctype.jsx?v=12-03-2019_1915&lp=Mon_Dec_16_01_34_22_PST_2019&c=28_430:16208)
at processReqChange (js_includes_doctype.jsx?v=12-03-2019_1915&lp=Mon_Dec_16_01_34_22_PST_2019&c=28_430:1065)
at XMLHttpRequest.req.onreadystatechange (js_includes_doctype.jsx?v=12-03-2019_1915&lp=Mon_Dec_16_01_34_22_PST_2019&c=28_430:16221)

On the browser network tab, observed below error,

"error":{"message":"Cannot map object","detail":"Cannot map object Check logs for error trace or enable glide.rest.debug property to verify REST request processing"},"status":"failure"

On the session debug log, observed below stack,

10:47:22.645: [0:00:00.420] InlineTag of: list2.xml
log10:47:22.645: [0:00:00.421] InlineTag of: list2_default.xml
log10:47:22.658: [0:00:00.480] getRealForm
log10:47:22.668: Evaluator: java.lang.IllegalArgumentException: FiscalType: No valid FiscalType provided Caused by error in Phase 2 Jelly:
file:/glide/nodes/qasghc003_16025/webapps/glide/itil/WEB-INF/ui.jtemplates/html_page_script_globals.xml.2 at line 1
com.glide.ui.filter.date_time.enums.FiscalType.groupOf(FiscalType.java:56)
com.glide.ui.filter.date_time.utils.FiscalScheduleUtil.getFiscalPeriodGroup(FiscalScheduleUtil.java:65)
com.glide.ui.filter.date_time.utils.DateTimeFilterUtil.getFiscalDateTimeList(DateTimeFilterUtil.java:26)
sun.reflect.GeneratedMethodAccessor751.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498) org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:292)
org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2585)
org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
org.mozilla.javascript.gen.Phase_2_Jelly__file__glide_nodes_qasghc003_16025_webapps_glide_itil_WEB_INF_ui_jtemplates_html_page_script_globals_xml_2_633._c_script_0
(Phase 2 Jelly: file:/glide/nodes/qasghc003_16025/webapps/glide/itil/WEB-INF/ui.jtemplates/html_page_script_globals.xml.2:1)
org.mozilla.javascript.gen.Phase_2_Jelly__file__glide_nodes_qasghc003_16025_webapps_glide_itil_WEB_INF_ui_jtemplates_html_page_script_globals_xml_2_633.call
(Phase 2 Jelly: file:/glide/nodes/qasghc003_16025/webapps/glide/itil/WEB-INF/ui.jtemplates/html_page_script_globals.xml.2)
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:563) org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3429)
org.mozilla.javascript.gen.Phase_2_Jelly__file__glide_nodes_qasghc003_16025_webapps_glide_itil_WEB_INF_ui_jtemplates_html_page_script_globals_xml_2_633.call
(Phase 2 Jelly: file:/glide/nodes/qasghc003_16025/webapps/glide/itil/WEB-INF/ui.jtemplates/html_page_script_globals.xml.2)
org.mozilla.javascript.gen.Phase_2_Jelly__file__glide_nodes_qasghc003_16025_webapps_glide_itil_WEB_INF_ui_jtemplates_html_page_script_globals_xml_2_633.exec
(Phase 2 Jelly: file:/glide/nodes/qasghc003_16025/webapps/glide/itil/WEB-INF/ui.jtemplates/html_page_script_globals.xml.2)
com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:279) com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:118)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:82) com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:309)
com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:214) com.glide.ui.jelly.GlideJellyContext.evaluate(GlideJellyContext.java:540)
com.glide.ui.jelly.tags.form.EvaluateTag.doTag(EvaluateTag.java:137)
org.apache.commons.jelly.impl.CustomTagScript.run(CustomTagScript.java:205)
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:146)
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:235)
com.glide.ui.jelly.tags.FileinfoTag2.doTag(FileinfoTag2.java:44)
org.apache.commons.jelly.impl.CustomTagScript.run(CustomTagScript.java:205)
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:146)
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:66)
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:146)
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:66)
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:146)
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:235) com.glide.ui.jelly.tags.FileinfoTag2.doTag(FileinfoTag2.java:44)
org.apache.commons.jelly.impl.CustomTagScript.run(CustomTagScript.java:205)
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:235)
org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:84)
org.apache.commons.jelly.impl.CustomTagScript.run(CustomTagScript.java:205)
com.glide.ui.jelly.GlideJellyContext.run(GlideJellyContext.java:668) com.glide.ui.jelly.GlideJellyContext.executeCompiledScript(GlideJellyContext.java:896)
com.glide.ui.jelly.GlideJellyContext.runScript(GlideJellyContext.java:749) com.glide.ui.jelly.GlideJellyContext.runScript(GlideJellyContext.java:707)
com.glide.ui.GlideFormPhase2.generate(GlideFormPhase2.java:49) com.glide.ui.GlideForm.generatePopulatedForm(GlideForm.java:707)
com.glide.ui.GlideForm.generatePopulatedForm(GlideForm.java:692) com.glide.ui.GlideForm.populateForm(GlideForm.java:684)
com.glide.ui.GlideForm.getRenderedPage(GlideForm.java:228) com.glide.ui.NavigationTransaction.writeOutput(NavigationTransaction.java:157)
com.glide.ui.NavigationTransaction.process(NavigationTransaction.java:128) com.glide.ui.GlideServletUITransaction.process(GlideServletUITransaction.java:110)
com.glide.processors.AProcessor.runProcessor(AProcessor.java:531) com.glide.processors.AProcessor.processTransaction(AProcessor.java:229)
com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:188) com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:177)
com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:31) com.glide.sys.Transaction.run(Transaction.java:2136)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
business rule10:47:22.672: Execute before query business rules on incident:

Release

Any supported release.

Cause

The reported issue can be caused by one of the following facts,

  • Plugins, Application menu and modules were preserved during the cloning process.  The preserver will only preserve the records on that table not any records that might extend, for example:
    Plugin table will show that the com.snc.fiscal_calendar plugin is active, and the modules will be in the instance as you have preserved the module table but the actual fiscal calendar table will not exist.
  • The cache is not updated on the nodes to reflect the existence of the fiscal_period table on the instance. 

Resolution

Based on the identified cause, perform one of the following corrective action,

  • Try to re-clone over the affected sub-production instance either as a clone with no excluders and preservers or modify your preservers to not include the Plugins, Application Menu & Modules tables.
  • Access the fiscal_period.list or navigate to "Fiscal Calendar=>Generate" on the affected instance to update the cache.

Additional Information

Activate the Fiscal Calendar

Article Information

Last Updated:2020-01-15 05:27:30
Published:2020-01-15