Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Cannot export report definition to Excel on using Docker image

SA-107260

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

  1. Navigate to Report Browser.
  2. Open any report.
  3. Export to Excel on the Action button.
OR
  1. Open any report definition in Dev Studio.
  2. Navigate to Action button.
  3. Click Run. A new window opens for the report.
  4. 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,
  1. Log in to the  Container executing the Pega application. 
  2. Run the below command and restart the Tomcat server.

    apt-get update &&  apt-get install -y --no-install-recommends fontconfig 
This feature is implemented in the following:
  • 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

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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