Category: | Bug report |
Priority: | Immediate |
Status: | New |
Project: | Severity: | Block |
Resolution: | Open |
|
Component: | Reproducibility: | Always |
Assigned to: |
This critical bug has been around for a while and I would really much appreciate this to be taken care of.
Issue: Using Studio's any version, running on macOS (High Sierra, Sierra or El Capitan), using phantomJS (v6.4 or previous with external component as well) and using Highchart's javascript components on custom visualization components there is a severe error on preview.
Error message: net.sf.jasperreports.engine.JRRuntimeException: Error while executing the javascript file to generate the SVG image: External process did not end properly; exit value 139.
The report compiles through, but the preview will give this error.
Attachment includes a small dummy report with some components and the main.jrxml file which crashes.
Br,
Ilmari Ahonen
v6.4
Custom Visualization Component
2 Comments:
Hi Ilmari,
your CVC works great, but you need to revisit the path of your script, which should be in the same directory as the report (or in general in the classpath, otherwise JasperReports will not be able to find it). The HTML version may still work, only because the browser is able to load a file which has a specific path, and then properly interpret the perfPie/demo.min.js location.
Solution:
1. move your build.js, demo.js inside the project root folder
2. adjust the component script to be just demo.min.js
Run the report.
Attached please find a screenshot with the result.
Thanks
Giulio
Hello,
Thank you for your feedback, but this solution does not work for me. I followed the steps, but that did not have any effect.
HTML version works, but it has some problems on the other components I will use for the report, so that is not sufficient solution.
The same setup works fine with Windows computers, so I'm still wondering how the OS effects on this.