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

NullPointerException on exporting data to PDF



Error occurs on exporting data to PDF using any report definition.

Error Messages

Caused by: java.lang.NullPointerException 
    at sun.awt.FontConfiguration.getVersion( ~[?:?] 
    at sun.awt.FontConfiguration.readFontConfigFile( ~[?:?] 
    at sun.awt.FontConfiguration.init( ~[?:?] 
    at sun.awt.X11FontManager.createFontConfiguration( ~[?:?] 
    at sun.font.SunFontManager$ ~[?:?] 
    at Method) ~[?:?] 
    at sun.font.SunFontManager.<init>( ~[?:?] 
    at sun.awt.FcFontManager.<init>( ~[?:?] 
    at sun.awt.X11FontManager.<init>( ~[?:?] 
    at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] 
    at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance( ~[?:?] 
    at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance( ~[?:?] 
    at java.lang.reflect.Constructor.newInstance( ~[?:?] 
    at sun.font.FontManagerFactory$ ~[?:?] 
    at Method) ~[?:?] 
    at sun.font.FontManagerFactory.getInstance( ~[?:?] 
    at sun.font.SunFontManager.getInstance( ~[?:?]

Steps to Reproduce

  1. Execute any report definition.
  2. Export the data to PDF.

Root Cause

A defect in Pegasystems’ code or rules.
Issue in the Java Runtime Environment. Pega Platform 8.3.1 Docker image uses adoptopenjdk.


Perform the following local-change: 
  1. Add the below instruction in the Docker file.

    RUN apt-get update && apt-get install -y --no-install-recommends fontconfig
  2. Build a new image.

Perform the below steps if the user does not want to build a new image,

  1. Log in to the container running Pega.
  2. Run the below command,

    apt-get update && apt-get install -y --no-install-recommends fontconfig
  3. Restart the Tomcat server.

Published August 4, 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