Support Article
Cannot export report definition to Excel on using Docker image
Summary
On using Pega Official Docker image, Export to Excel fails on executing any report definition.
Error Messages
[ttp-nio-8080-exec-23] [TABTHREAD2] [ ] [ ---:01.01.01] ( internal.mgmt.Executable) ERROR xx.xxx.xxx.xx|xx.xxx.xx.xxx xxxxx - Exception
com.pega.pegarules.pub.PRRuntimeException: Section 'pzRDExportWrapper' execution error on page 'pegaInternalReportTempPage' of class 'Rule-Obj-Report-Definition'. : java.lang.reflect.InvocationTargetException
Caused by: java.lang.NullPointerException
at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1262) ~[?:?]
at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:225) ~[?:?]
at sun.awt.FontConfiguration.init(FontConfiguration.java:107) ~[?:?]
at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:719) ~[?:?]
at sun.font.SunFontManager$2.run(SunFontManager.java:367) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at sun.font.SunFontManager.<init>(SunFontManager.java:312) ~[?:?]
at sun.awt.FcFontManager.<init>(FcFontManager.java:35) ~[?:?]
at sun.awt.X11FontManager.<init>(X11FontManager.java:56) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
...
Steps to Reproduce
- Navigate to Report Browser.
- Open any report.
- Export to Excel on the Action button.
- Open any report definition in Dev Studio.
- Navigate to Action button.
- Click Run. A new window opens for the report.
- Export to Excel on the Action button.
Root Cause
A defect in Pegasystems’ code or rules.
This is an issue with the JRE in use.
Resolution
Perform the following local-change:
Add the below command in the Docker file and build a new image:
RUN apt-get update && apt-get install -y --no-install-recommends fontconfig
If building a new image is not an option, perform the below steps,
- Log in to the Container executing the Pega application.
- Run the below command and restart the Tomcat server.
apt-get update && apt-get install -y --no-install-recommends fontconfig
- Pega Platform 8.4
- Pega Platform 8.3.2
- Pega Platform 8.2.6
- Pega Platform 8.1.7
Published May 30, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.