Exporting reports with graph error out - Failed while waiting for chrome to start: Timeout expired!
search cancel

Exporting reports with graph error out - Failed while waiting for chrome to start: Timeout expired!

book

Article ID: 232871

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

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: 

  1. Login to Clarity with appropriate rights
  2. Navigate to Advance reporting and run a report which has graph like Database connection Check reports
  3. Export the report to pdf/excel

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

Environment

Release : All Supported Jaspersoft release with Clarity 

Component : CLARITY JASPERSOFT

Cause

The error is due to incorrect google chrome installation 

Resolution

Solution:

  • Uninstall and reinstall the chrome 
  • Install the chrome at the same location where it was installed when Jaspersoft was installed 

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.