Highcharts - Export server not generating image -


i have setup export server highcharts following steps mentioned @ http://www.highcharts.com/docs/export-module/setting-up-the-server.

my test environment windows server, tomcat 8.0.30, phantom 2.0 , java 1.8.0_71. no problem occurred during mvn install , mvn clean package , application deployed successfully.

export server url : http://localhost:9090/highcharts-export-web/ , highcharts export server page opens when click on "preview" button, "internal server error". when @ tomcat logs, see following error:

[error] [http-nio-9090-exec-4 01:35:42] (svgconverter.java:requestserver:136) ja va.net.sockettimeoutexception: read timed out

when @ task manager, there 15 instances of phantomjs.exe running. see 2 files in c:\tomcat\webapps\highcharts-export-web\resources\js directory. these codemirror-compressed.js , jquery-1.11.0.min.js. seems js files compressed. below app-convert.properties file:

#### phantomjs properties ####    # host , port phantomjs listens  host = 127.0.0.1  port = 7777    # location of phantomjs executable, example /usr/local/bin/phantomjs  #exec = /usr/local/bin/phantomjs  exec = c:\\phantomjs-2.0.0-windows\\bin\\phantomjs.exe    # specify here alternative location (the whole path!) script starts phantomjs server. f.eks /home/bert/scripts/my-highcharts-convert.js  # leave empty if you're using script bundled export-server.  script =    #### connect properties used connect phantomjs running http-server ####  # values in milliseconds    # specifies timeout when reading phantomjs when connection established  readtimeout = 60000    # timeout used when opening communications link phantomjs server  connecttimeout = 10000    # whole request phantomjs server scheduled, max timeout can last value. because in java can't rely on above 2 timeouts.  maxtimeout = 65000    #### pool properties ####    # number of phantomjs servers can run in pool.  poolsize = 10    # pool implemented blockingqueue. when asking phantom server connection , nothing available, waits number of milliseconds defined maxwait  maxwait = 6000    # keep files in temp folder retentiontime, defined in miliseconds  retentiontime = 60000

after highcharts export server moved separate github repository, have copy highcharts javascript files export server project, before deploying.

copy files highcharts.js, highcharts-more.js, funnel.js (if want export funnel charts) folder highcharts-export-convert/src/main/resources/phantomjs

read also: paragraph 2.3. copy highcharts js maven convert module


Comments