Support Article
Export to Excel fails with Null pointer Exception
SA-57848
Summary
While exporting to MS Excel or PDF, the application fails with an error while using Tomcat versions other than Tomcat:8.0.46-jre8.
Error Messages
[http-nio-8080-exec-4] [TABTHREAD2] [ ] [your_app:01.01.01] (e_Obj_Report_Definition.Stream) ERROR - Section 'pzRDExportWrapper' execution error on page 'TempReportPage' of class 'Rule-Obj-Report-Definition'.
java.lang.NullPointerException
at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264) ~[?:1.8.0_151]
at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219) ~[?:1.8.0_151]
at sun.awt.FontConfiguration.init(FontConfiguration.java:107) ~[?:1.8.0_151]
Steps to Reproduce
- Create a docker image of the Pega application with a Tomcat version other than Tomcat:8.0.46-jre8.
- Start the application.
- Run any report.
- Export to MS Excel or PDF from Actions.
Root Cause
A defect or configuration issue in the operating environment.
NullPointerExeption occurs with the OpenJDK Java library used by the docker instance.
Resolution
Make the following change to the operating environment:
Import the following packages in to the docker container.
- fontconfig
- ttf-dejavu
Published July 23, 2018 - 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.