score:1

Accepted answer

Okay, I've managed to get it to work (finally). It all stems from the fact that I'm in DEV mode (obviously because I'm still developing this bit of functionality). But while in DEV mode, I (by default) only have access to one thread. So all I had to do was uncomment the execution pool in application.conf:

play.pool=3

and then my highchart started rendering on the server and then getting inserted as part of the PDF. The additional thread was used for the request to render the chart. One thread was not enough for this scenario and therefore the call to the URL to render the image binary hung.

score:0

It seems your issue is a relative url, change the code to:

<img src="@@{ChartGenerator.go()}"> //notice double @@

to generate absolute paths


Related Query

More Query from same tag