UMP Dashboard Designer fails to create a dashboard PDF

Document ID : KB000005407
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

Symptoms include one or more of the following:

  • UMP Dashboard Designer fails to create a dashboard PDF
  • An exception in wasp.log as shown below:

11 Jan 2017 14:55:28,173 ERROR [ReportController:88] Could not generate dashboard PDF

java.lang.NullPointerException

        at java.net.URLEncoder.encode(URLEncoder.java:204)

        at com.firehunter.dashboard.controllers.ReportController.generateReportFromResource(ReportController.java:86)

 

For additional verification, perform the following steps

  1. In the UMP window, open UMP window and navigate through the following path:
  2. Go to> Control Panel > Server > Server Administration > Log Levels tab > Add Category tab
  3. Enter “com.firehunter.dashboard.service”.
  4. Select log setting.
  5. Save.
  6. Click Update Catergory tab to verify addition.
  7. Goto>My Private Pages.
  8. In Dashboard Designer, open a dashboard and try to create a PDF; in case of failure, view the portal log file for the error: “error while loading shared libraries: libfontconfig.so.1”.
Environment:
Issue has been observed with Redhat 7 but may occur with other distributions as well.Issue has been observed in UIM 8.51 but may occur in other versions as well.
Cause:

On unregistered Redhat 7 systems, there is a missing library on that system that phantomjs expects to be there. PhantomJs is what creates the PDF. 

Resolution:
  1. Log into the Linux server that hosts UMP
  2. Run the below command that is appropriate for your distribution:

Redhat/Centos based systems:

sudo yum install fontconfig freetype libfreetype.so.6 libfontconfig.so.1 libstdc++.so.6

 

Debian/Ubuntu

sudo apt-get install libfontconfig