Skip to main content

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

  1. Create a docker image of the Pega application with a Tomcat version other than Tomcat:8.0.46-jre8.
  2. Start the application.
  3. Run any report.
  4. 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 
Suggest Edit

Published July 23, 2018 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us