Problem:
You may be getting the following error when trying to run a CVC component on version v7.2.0 that still uses phantomjs to generate SVG image:
net.sf.jasperreports.engine.JRRuntimeException: Error while executing the javascript file to generate the SVG image: External process did not end properly; exit value: 502; process output: SCRIPT_ERROR Script timeout producing svg within 3 seconds. Possible script error.
Solution:
a) In js.config.properties
SET net.sf.jasperreports.phantomjs.executable.path
instead of
com.jaspersoft.jasperreports.components.customvisualization.phantomjs.executable.path
b) Add net.sf.jasperreports.phantomjs.options.1=--web-security=false
If you are using one of the samples from the community that uses leaflet.css, here are some suggestions.
After SVG is generated, it might be failing to render because there might be CSS styles defined, e.g. in leaflet.css, that are not supported. You can remove them. Or, use renderAsPng=true.
For example, these are not supported:
display: inline-block; and pointer-events: auto;
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now