search cancel

Chrome and/or PhantomJS not properly configured for server side rendering error in Jasper

book

Article ID: 255240

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

We have CABI Jaspersoft 7.9.1.1 installed and we have problems in some specific reports (Not all) to be exported to PDF or any other format

See file attached to the case with the details of only the reports that, when exported, show the following 
Error Message
net.sf.jasperreports.engine.JRRuntimeException: Chrome and/or PhantomJS not properly configured for server side rendering

This error occurs using any web browser, we tested with Google Chrome and Firefox.
the current version of Spectrum is: 21.2.10.0.48
The operating system where Jaspersof is installed is:  RedHat 7.9

Environment

Release : 21.2

Cause

There was no "chrome" folder under

<CABI_HOME>/apache-tomcat/webapps/jasperserver-pro/

That indicates that the installation was unsuccessful.

Resolution

The installation logs didn't show a clear error or problem, other than no mention of the chrome installation. Next is an example of a successful chrome installation.

2022-11-17 15:47:18 INFO  ComponentInstall.setPermissions():947 - /opt/CA/SharedComponents/CA Business Intelligence/apache-tomcat/webapps/jasperserver-pro/chrome
...
2022-11-17 15:47:18 DEBUG CABIProcessBuilder.cabiProcess():74 - Setting the processbuilder directory to /opt/CA/SharedComponents/CA Business Intelligence/apache-tomcat/webapps/jasperserver-pro/chrome
...

The customer evidenced that the failure was caused because the SSH session with the CABI server was closed due a timeout when executing the silent installation through the ."properties" file.

The Linux session closures didn't  allow the previous session to be recovered before the Timeout.

To workaround the problem the Linux server administrator disabled temporarily the SSH session timeouts.

This time the installation succeeded, and the problem could not be reproduced anymore.

Additional Information

https://community.jaspersoft.com/documentation/tibco-jasperreports-server-community-project-installation-guide/v780/selecting-0

https://docs.tibco.com/pub/js-jrs/7.9.0/doc/pdf/TIB_js-jrs_7.9_Install-Guide.pdf?id=5

Attachments