uim cabi scheduled reports fail or Unable to generate PDF with embedded graph - error with phantomjs.exe - other than default installation location
search cancel

uim cabi scheduled reports fail or Unable to generate PDF with embedded graph - error with phantomjs.exe - other than default installation location

book

Article ID: 255650

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM) CA Unified Infrastructure Management On-Premise (Nimsoft / UIM)

Issue/Introduction

Created a report in CABI and that report is erroring out with the following error in the C:\Program Files (x86)\Nimsoft\probes\service\wasp\webapps\cabijs\WEB-INF\logs\jasperserver.log file:

2022-11-29T17:18:05,373 ERROR SecureExceptionHandlerImpl,pool-18-thread-1:125 - There was an error on the server. Try again or contact site administrators. (Error UID: 1ac4a3f8-7e72-4adb-ae1b-a846446c60f3) com.jaspersoft.jasperserver.remote.exception.ExportExecutionRejectedException: net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: Cannot run program "C:\Program Files (x86)\Nimsoft\probes\service\wasp\webapps\cabijs\WEB-INF\phantomjs-2.1.1\bin\phantomjs.exe" (in directory "C:\Users\ADMINI~1\AppData\Local\Temp"): CreateProcess error=2 
    at com.jaspersoft.jasperserver.remote.services.impl.ReportExecutorImpl.exportReport(ReportExecutorImpl.java:202)
    at com.jaspersoft.jasperserver.remote.services.impl.RunReportServiceImpl.generateReportOutput(RunReportServiceImpl.java:1162)
    at com.jaspersoft.jasperserver.remote.services.impl.RunReportServiceImpl.executeExport(RunReportServiceImpl.java:615)
    at com.jaspersoft.jasperserver.remote.services.impl.RunReportServiceImpl$2.run(RunReportServiceImpl.java:507)
    at com.jaspersoft.jasperserver.api.logging.util.LoggableExecutorService$1.run(LoggableExecutorService.java:84)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:750)

Environment

Release : 20.4
Component: cabi 8.0

OS: linux and windows

Cause

path to ../phantomjs.exe is not correct in the following files:

..\Nimsoft\probes\service\wasp\webapps\cabijs\WEB-INF\js.config.properties
..\Nimsoft\probes\service\wasp\webapps\cabijs\WEB-INF\classes\jasperreports.properties

Resolution

This can happen if the installation of UIM was not to a default location. Update 

..\Nimsoft\probes\service\wasp\webapps\cabijs\WEB-INF\js.config.properties
..\Nimsoft\probes\service\wasp\webapps\cabijs\WEB-INF\classes\jasperreports.properties

with the correct path to ../phantomjs.exe

 

example:

phantomjs.binary=C\:\\Nimsoft\\probes\\service\\wasp/webapps/cabijs/WEB-INF/phantomjs-2.1.1/bin/phantomjs.exe

to

phantomjs.binary=F\:\\Nimsoft\\probes\\service\\wasp/webapps/cabijs/WEB-INF/phantomjs-2.1.1/bin/phantomjs.exe

Then restart the Cabi robot

Additional Information