Notifications

4 views

Symptoms


Take Assessment renders blank page

Take Survey renders blank page

 

 

Cause


UI page "assessment_take2" was customised

java.lang.NullPointerException: com.snc.assessment_core.questionset.AssessmentQuestionSet

Resolution


1) Check if the UI page "assessment_take2" was customised and revert it to out-of-box (OOB)

2) If it is already OOB, do a "Debug All" as an administrator

3) Impersonate user having the blank survey issue

4) Check the debug logs when loading the assessment survey and check for 'java.lang.NullPointerException' that may cause rendering issue for the page

Sample logs :

17:38:09.863: Time: 0:00:00.000 for: testinstance_1[glide.4] SELECT ... FROM (sys_ui_message sys_ui_message0 INNER JOIN sys_metadata sys_metadata0 ON sys_ui_message0.`sys_id` = sys_metadata0.`sys_id` ) WHERE sys_ui_message0.`key` = 'Survey question 2?' AND sys_ui_message0.`language` = 'en' /*...*/ 

7:38:09.867: java.lang.NullPointerException: java.lang.NullPointerException: com.snc.assessment_core.questionset.AssessmentQuestionSet.load(AssessmentQuestionSet.java:895) com.snc.assessment_core.TakeAssessment.doTag(TakeAssessment.java:38) 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.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.StaticFormTag.invokeBody(StaticFormTag.java:25) com.glide.ui.jelly.tags.BaseStaticTag.doTag(BaseStaticTag.java:26) org.apache.commons.jelly.impl.CustomTagScript.run(CustomTagScript.java:205) 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.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.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:666) com.glide.ui.jelly.GlideJellyContext.executeCompiledScript(GlideJellyContext.java:894) com.glide.ui.jelly.GlideJellyContext.runScript(GlideJellyContext.java:747) com.glide.ui.jelly.GlideJellyContext.runScript(GlideJellyContext.java:705) com.glide.ui.GlideFormPhase2.generate(GlideFormPhase2.java:49) com.glide.ui.GlideForm.generatePopulatedForm(GlideForm.java:706) com.glide.ui.GlideForm.generatePopulatedForm(GlideForm.java:691) com.glide.ui.GlideForm.populateForm(GlideForm.java:683) com.glide.ui.GlideForm.getRenderedPage(GlideForm.java:227) com.glide.ui.NavigationTransaction.writeOutput(NavigationTransaction.java:157) com.glide.ui.NavigationTransaction.process(NavigationTransaction.java:128) com.glide.ui.GlideServletUITransaction.process(GlideServletUITransaction.java:109) com.glide.processors.AProcessor.runProcessor(AProcessor.java:483) com.glide.processors.AProcessor.processTransaction(AProcessor.java:205) com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:178) com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:167) com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:31) com.glide.sys.Transaction.run(Transaction.java:2038) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748)

 

5) Check the logs for the corresponding assessment metric before the error was encountered 

6) Check the assessment metric if it is inactive or if it is pointing to a metric on the same Assessment category

7) If it is active, check the Depends On field of the assessment metric

Check if this metric is active or it is pointing to a metric on the same Assessment category

 

Article Information

Last Updated:2018-12-05 17:17:33
Published:2018-12-06