search cancel

JasperReports error - "The export to pdf was not completed" when exporting report with graphics to PDF

book

Article ID: 239171

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

CA Business Intelligence JasperServer encountered an error while generating a report with graphics (such as charts):

The jasperserver.log contains the following:

2022-03-21T22:00:20,580 ERROR SecureExceptionHandlerImpl,JasperServerScheduler_Worker-2:116 - There was an error on the server. Try again or contact site administrators

. (Error UID: fb6b10ee-9067-4075-8e01-e2278a55016d)

2022-03-21T22:00:20,580 ERROR ReportExecutionJob,JasperServerScheduler_Worker-2:327 - The export to pdf was not completed. An error interrupted the process. (Error UID:

fb6b10ee-9067-4075-8e01-e2278a55016d) org.quartz.JobExecutionException: Did not find report result for {paginated: null, maxPageHeight: null, maxPageWidth: null}

        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.InternalReportExecutor.getReportResultForOutput(InternalReportExecutor.java:504)

        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.InternalReportExecutor$InternalReportExecutionOutput.getReportOutput(InternalReportExecutor.java:166

)

        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(ReportExecutionJob.java:493)

        at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.execute(ReportExecutionJob.java:219)

        at com.jaspersoft.ji.report.options.engine.ReportOptionsExecutionJob.execute(ReportOptionsExecutionJob.java:45)

        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) 

Cause

Some of the libX graphics libraries are not installed, as per the following errors shown in the JasperServer log:

$CABI_HOME/apache-tomcat/webapps/jasperserver-pro/WEB-INF/logs/

2022-04-06T16:45:44,741 ERROR ReportExecutionJob,JasperServerScheduler_Worker-1:327 - The report was not completed. An error occurred while executing it. (Error UID: 5036f80d-3288-4619-88ea-2ab941be7884) com.github.kklisura.cdt.launch.exceptions.ChromeProcessTimeoutException: Failed while waiting for chrome to start: Timeout expired! Chrome output: /opt/CA/SharedComponents/CA_Business_Intelligence/apache-tomcat/webapps/jasperserver-pro/chrome/chrome: error while loading shared libraries: libXrandr.so.2: cannot open shared object file: No such file or directory

        at com.github.kklisura.cdt.launch.ChromeLauncher.waitForDevToolsServer(ChromeLauncher.java:368)

...

2022-03-22T13:15:04,564 ERROR ReportExecutionJob,JasperServerScheduler_Worker-1:327 - The report was not completed. An error occurred while executing it. (Error UID: 188fdd7e-547c-4d5d-9234-49449ae6d119) com.github.kklisura.cdt.launch.exceptions.ChromeProcessTimeoutException:Failed while waiting for chrome to start: Timeout expired! Chrome output: /opt/CA/SharedComponents/CA_Business_Intelligence/apache-tomcat/webapps/jasperserver-pro/chrome/chrome: error while loading shared libraries: libXcomposite.so.1: cannot open shared object file: No such file or directory

 

Environment

DX NetOps Spectrum Release : 21.2
Component : Jaspersoft for CA Spectrum

Resolution

These errors show missing Linux graphics rendering packages. The above for example show that libXcomposite.so.1 and libXrandr.so.2 are missing.

These are pre-requisites for the libraries we list under:

TechDocs : DX NetOps 21.2 Spectrum : CABI JasperServer Prerequisites

To correct this, install these packages (where it says error while loading shared libraries: in the error).For example:

yum install libXrandr.so.2

Attachments