Jaspersoft report with graph fails while exporting to pdf/excel and attached is the log, the same used to work with Chrome 91 and stated failing with Chrome 93.
Steps to Reproduce:
Actual Result: The report fails to export and throws an error and in the Jasperserver log below errors are seen
Error message
com.github.kklisura.cdt.launch.exceptions.ChromeProcessTimeoutException: Failed while waiting for chrome to start: Timeout expired! Chrome output:
Error details
net.sf.jasperreports.engine.JRRuntimeException: com.github.kklisura.cdt.launch.exceptions.ChromeProcessTimeoutException: Failed while waiting for chrome to start: Timeout expired! Chrome output: at com.jaspersoft.jasperreports.highcharts.charts.ChartPdfHandler.exportElement(ChartPdfHandler.java:45) at net.sf.jasperreports.engine.export.JRPdfExporter.exportGenericElement(JRPdfExporter.java:4141) at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:1290) at net.sf.jasperreports.engine.export.JRPdfExporter.exportFrame(JRPdfExporter.java:4060) at
Expected Result: The report should be exported to PDF/Excel
Release : All Supported Jaspersoft release with Clarity
Component : CLARITY JASPERSOFT
The error is due to incorrect google chrome installation
Solution:
Note: If the path of chrome is changed then navigate to <tomcat>/webapps/jasperserver-pro/WEB-INF\js.config.properties and check the chrome.path and it should match with the installation path of chrome.