Support Article
Null Pointer Exception when click on Select Values in filter
SA-34064
Summary
The user included an embedded DateTime property(e.g. Pg.myDateTime) as one of the filtering column in report definition. When the user runs the report and tries to change the filtering criteria for this embedded DateTime property the calendar control isn’t being shown.
Error Messages
Below error is observed in PegaRULES log.
2017-02-08 16:10:15,695 [http-nio-7180-exec-6] [ STANDARD] [ ] [ SRB15500:01.01.01] (erty.pzDateTimeCalendar.Stream) ERROR vref72ml1rh|10.2.185.79 [email protected] - Section 'pzDateTimeCalendar' execution error on page '' of class 'Embed-ReportFilter'.
java.lang.NullPointerException
at com.pegarules.generated.html_property.ra_stream_pzdatetimecalendar_58b08588155fa617bc1c58faef99a746.execute(ra_stream_pzdatetimecalendar_58b08588155fa617bc1c58faef99a746.java:138)
at com.pega.pegarules.session.internal.mgmt.StreamBuilderTools.appendStreamKeepProperties(StreamBuilderTools.java:733)
at com.pega.pegarules.jsptags.ReferenceTag.appendFormattedProperty(ReferenceTag.java:708)
at com.pega.pegarules.jsptags.ReferenceTag.applyFormat(ReferenceTag.java:559)
at com.pega.pegarules.jsptags.ReferenceTag.doEndTag(ReferenceTag.java:408)
at com.pegarules.generated.html_section.ra_stream_pzcalendar_0a76023000557f0abde1c7e2a40f1fe5.field_pzDateTimeCalendar_1(ra_stream_pzcalendar_0a76023000557f0abde1c7e2a40f1fe5.java:262)
at com.pegarules.generated.html_section.ra_stream_pzcalendar_0a76023000557f0abde1c7e2a40f1fe5.layoutBody_1(ra_stream_pzcalendar_0a76023000557f0abde1c7e2a40f1fe5.java:279)
at com.pegarules.generated.html_section.ra_stream_pzcalendar_0a76023000557f0abde1c7e2a40f1fe5.pzLayoutBodyWrapper_1(ra_stream_pzcalendar_0a76023000557f0abde1c7e2a40f1fe5.java:229)
at com.pegarules.generated.html_section.ra_stream_pzcalendar_0a76023000557f0abde1c7e2a40f1fe5.pzLayout_1(ra_stream_pzcalendar_0a76023000557f0abde1c7e2a40f1fe5.java:293)
at com.pegarules.generated.html_section.ra_stream_pzcalendar_0a76023000557f0abde1c7e2a40f1fe5.pzSectionBody_1(ra_stream_pzcalendar_0a76023000557f0abde1c7e2a40f1fe5.java:218)
at com.pegarules.generated.html_section.ra_stream_pzcalendar_0a76023000557f0abde1c7e2a40f1fe5.execute(ra_stream_pzcalendar_0a76023000557f0abde1c7e2a40f1fe5.java:102)
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:4060)
at com.pega.pegarules.session.internal.mgmt.autostreams.AutoStreamRuleRuntime.getSectionStream(AutoStreamRuleRuntime.java:149)
at com.pegarules.generated.html_section.ra_stream_pzdatetimepopup_293ba75144b64f4db77908091a247ec0.includeSectionBody_2(ra_stream_pzdatetimepopup_293ba75144b64f4db77908091a247ec0.java:301)
at com.pegarules.generated.html_section.ra_stream_pzdatetimepopup_293ba75144b64f4db77908091a247ec0.pzLayoutBodyWrapper_2(ra_stream_pzdatetimepopup_293ba75144b64f4db77908091a247ec0.java:287)
at com.pegarules.generated.html_section.ra_stream_pzdatetimepopup_293ba75144b64f4db77908091a247ec0.pzGroup_1(ra_stream_pzdatetimepopup_293ba75144b64f4db77908091a247ec0.java:456)
at com.pegarules.generated.html_section.ra_stream_pzdatetimepopup_293ba75144b64f4db77908091a247ec0.pzSectionBody_1(ra_stream_pzdatetimepopup_293ba75144b64f4db77908091a247ec0.java:218)
at com.pegarules.generated.html_section.ra_stream_pzdatetimepopup_293ba75144b64f4db77908091a247ec0.execute(ra_stream_pzdatetimepopup_293ba75144b64f4db77908091a247ec0.java:100)
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:4060)
at com.pega.pegarules.session.internal.mgmt.autostreams.AutoStreamRuleRuntime.getSectionStream(AutoStreamRuleRuntime.java:149)
at com.pegarules.generated.html_section.ra_stream_pzpopup_pickvaluescontainer_4e3d552f1a21d09eae66ecd9db8e91e4.includeSectionBody_2(ra_stream_pzpopup_pickvaluescontainer_4e3d552f1a21d09eae66ecd9db8e91e4.java:236)
at com.pegarules.generated.html_section.ra_stream_pzpopup_pickvaluescontainer_4e3d552f1a21d09eae66ecd9db8e91e4.pzLayoutBodyWrapper_2(ra_stream_pzpopup_pickvaluescontainer_4e3d552f1a21d09eae66ecd9db8e91e4.java:225)
at com.pegarules.generated.html_section.ra_stream_pzpopup_pickvaluescontainer_4e3d552f1a21d09eae66ecd9db8e91e4.pzLayout_2(ra_stream_pzpopup_pickvaluescontainer_4e3d552f1a21d09eae66ecd9db8e91e4.java:247)
at com.pegarules.generated.html_section.ra_stream_pzpopup_pickvaluescontainer_4e3d552f1a21d09eae66ecd9db8e91e4.pzSectionBody_1(ra_stream_pzpopup_pickvaluescontainer_4e3d552f1a21d09eae66ecd9db8e91e4.java:214)
at com.pegarules.generated.html_section.ra_stream_pzpopup_pickvaluescontainer_4e3d552f1a21d09eae66ecd9db8e91e4.execute(ra_stream_pzpopup_pickvaluescontainer_4e3d552f1a21d09eae66ecd9db8e91e4.java:100)
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:4060)
at com.pega.pegarules.session.internal.mgmt.autostreams.AutoStreamRuleRuntime.getSectionStream(AutoStreamRuleRuntime.java:149)
at com.pegarules.generated.flowaction.ra_stream_pzpopup_pickvaluescontentfa_9e4ed56172992038bb0424b704b86c46.includeSectionBody_1(ra_stream_pzpopup_pickvaluescontentfa_9e4ed56172992038bb0424b704b86c46.java:239)
at com.pegarules.generated.flowaction.ra_stream_pzpopup_pickvaluescontentfa_9e4ed56172992038bb0424b704b86c46.execute(ra_stream_pzpopup_pickvaluescontentfa_9e4ed56172992038bb0424b704b86c46.java:134)
at com.pega.pegarules.session.internal.mgmt.StreamBuilderTools.appendStreamKeepProperties(StreamBuilderTools.java:733)
at com.pega.pegarules.session.internal.mgmt.autostreams.IncludeStreamRuntime.getStream(IncludeStreamRuntime.java:332)
at com.pega.pegarules.session.internal.mgmt.autostreams.IncludeStreamRuntime.emitIncludeStreamReference(IncludeStreamRuntime.java:252)
at com.pega.pegarules.session.internal.mgmt.autostreams.AutoStreamRuntimeImpl.emitIncludeStreamReference(AutoStreamRuntimeImpl.java:363)
at com.pegarules.generated.html_section.ra_stream_pzmodalaction_00190ea03ea55c8af590ccde4817fb56.execute(ra_stream_pzmodalaction_00190ea03ea55c8af590ccde4817fb56.java:247)
at com.pega.pegarules.session.internal.mgmt.StreamBuilderTools.appendStreamKeepProperties(StreamBuilderTools.java:733)
at com.pega.pegarules.session.internal.mgmt.autostreams.IncludeStreamRuntime.getStream(IncludeStreamRuntime.java:332)
at com.pega.pegarules.session.internal.mgmt.autostreams.IncludeStreamRuntime.emitIncludeStreamReference(IncludeStreamRuntime.java:252)
at com.pega.pegarules.session.internal.mgmt.autostreams.AutoStreamRuntimeImpl.emitIncludeStreamReference(AutoStreamRuntimeImpl.java:363)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_1dcdfc41f1ae6385ffc1f23b0ec0a8dd.sectionBodyIncludeInCell_1(ra_stream_pymodaltemplate_1dcdfc41f1ae6385ffc1f23b0ec0a8dd.java:1568)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_1dcdfc41f1ae6385ffc1f23b0ec0a8dd.sectionIncludeInCell_pzModalAction_1(ra_stream_pymodaltemplate_1dcdfc41f1ae6385ffc1f23b0ec0a8dd.java:1677)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_1dcdfc41f1ae6385ffc1f23b0ec0a8dd.layoutBody_1(ra_stream_pymodaltemplate_1dcdfc41f1ae6385ffc1f23b0ec0a8dd.java:1687)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_1dcdfc41f1ae6385ffc1f23b0ec0a8dd.pzLayoutBodyWrapper_1(ra_stream_pymodaltemplate_1dcdfc41f1ae6385ffc1f23b0ec0a8dd.java:1537)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_1dcdfc41f1ae6385ffc1f23b0ec0a8dd.pzLayout_1(ra_stream_pymodaltemplate_1dcdfc41f1ae6385ffc1f23b0ec0a8dd.java:1710)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_1dcdfc41f1ae6385ffc1f23b0ec0a8dd.pzSectionBody_1(ra_stream_pymodaltemplate_1dcdfc41f1ae6385ffc1f23b0ec0a8dd.java:248)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_1dcdfc41f1ae6385ffc1f23b0ec0a8dd.execute(ra_stream_pymodaltemplate_1dcdfc41f1ae6385ffc1f23b0ec0a8dd.java:103)
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:4060)
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:3888)
at com.pegarules.generated.activity.ra_action_processaction_ecfb18bfff74b732e0d3ef9acc18243a.step23_circum0(ra_action_processaction_ecfb18bfff74b732e0d3ef9acc18243a.java:2272)
at com.pegarules.generated.activity.ra_action_processaction_ecfb18bfff74b732e0d3ef9acc18243a.perform(ra_action_processaction_ecfb18bfff74b732e0d3ef9acc18243a.java:439)
Steps to Reproduce
Reference an embedded DateTime property as source for a filtering condition in report definition


Root Cause
Issue is in the out of the box pzDateTimeCalendar non-auto control. DateType is returned as null and strDataType is coming as "".
Resolution
Apply HFix-32198.
Published March 12, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.