UIM/CABI - Export Dashboards to PDF files, appear blank as an empty document

Document ID : KB000074494
Last Modified Date : 22/03/2018
Show Technical Document Details
Introduction:
You are trying to export an existing dashboard in CABI (Jasper Reports Server) to PDF format but you get an empty document instead.
Environment:
- UIM 8.51 
- cabi probe (bundled) v3.20 
- uim_cabi_health_report_pack v1.20 
- uim_core_dashboard_pack v2.40 
- uim_unified_report_pack v1.02 
- ump_cabi v3.20
Instructions:
- Download PhantomJS from http://phantomjs.org/
- Extract it to C:\phantomjs-2.1.1\ on the CABI Server
- Modify the following *take a backup of the files modified*: 
     C:\Nimsoft\probes\service\wasp\webapps\cabijs\WEB-INF\classes\jasperreports.properties
         # highcharts: phantomjs's executable absolute path
         #com.jaspersoft.jasperreports.highcharts.phantomjs.executable.path=path/to/phantomjs
         com.jaspersoft.jasperreports.highcharts.phantomjs.executable.path=C:\\phantomjs-2.1.1\\bin\\phantomjs.exe 
 
         # fusioncharts: phantomjs's executable absolute path
         #com.jaspersoft.jasperreports.fusion.phantomjs.executable.path=path/to/phantomjs
         com.jaspersoft.jasperreports.fusion.phantomjs.executable.path=C:\\phantomjs-2.1.1\\bin\\phantomjs.exe         
 
- Once above is complete, also modify the following *take a backup of the files modified*: 
   C:\Nimsoft\probes\service\wasp\webapps\cabijs\WEB-INF\js.config.properties
        # Path to PhantomJS executable, required for dashboard export
        # Example: phantomjs.binary=/usr/bin/phantomjs
        #phantomjs.binary=${headless.browser}
        phantomjs.binary=C:\\phantomjs-2.1.1\\bin\\phantomjs.exe
 
- Save both files.
- Deactivate, wait a few seconds and re-activate the wasp probe on the CABI Server. 

** NOTE: If your TIBCO JasperReports Server is deployed behind a proxy or a load balancer or HTTPS. If it is, you need to configure deploy.base.local.url in js.config.properties file as well. deploy.base.local.url needs to point to the local instance of TIBCO JasperReports Server. This is going to be used by PhantomJS locally to produce a dashboard export. For example: https://localhost:8448/jasperserver-pro **
Additional Information:
Dashboard export to PDF is empty - https://community.jaspersoft.com/wiki/dashboard-export-pdf-empty