I have deployed web application that includes Vaadin Chart’s SVGGenerator using phantom JS in Linux 64-bit production environment.
Product version:
com.vaadin vaadin-charts 4.2.0Downloaded phantomjs-2.1.1-linux-x86_64.tar.bz2 and extract the content at “/opt/tomcat/webapps/myapp”
Below is my code:
System.setProperty(“phantom.exec”, “opt/tomcat/webapps/myapp/phantomjs-2.1.1-linux-x86_64/bin/phantomjs”);
I got following issue.
java.lang.NullPointerException: null
at com.vaadin.addon.charts.util.SVGGenerator.startPhantomJS(SVGGenerator.java:111) ~[vaadin-charts-4.2.0.jar:4.2.0]
at com.vaadin.addon.charts.util.SVGGenerator.getInstance(SVGGenerator.java:140) ~[vaadin-charts-4.2.0.jar:4.2.0]
I have tried downgrading the phantom JS version to 1.9.8. It is still getting issues.
Am I missing something in Linux environment to make it work?
Thanks in advance,