plepik Report post Posted April 15, 2011 Hello to everybody! this is my first post so maybe I will introduce myself: my name is Peter, I come from Poland, one year ago I finished my IT studies and now I am a programmer in small company which makes software for airlines industry. I have been developing statistics program for 2 months using FusionCharts and I am facing now with tough problem but lets get to point. My dev environment: java 6, tomcat apache 6, fusioncharts v3.2.1, local machine win7 an destination test server running on linux I implemented chart exporting as described in fusion doc with Server Side exporting and it works on my local machine with windows 7 - exporting PDF, images works correctly But images exporting doesn't work on linux server (PDF works) and I can't find solution for this. Error is: width=0 height=0 DOMId= statusMessage= Unable to encode buffered image. statusCode=0 I read this topic http://forum.fusioncharts.com/topic/8596-export-to-jpg-giving-problem-on-linux/ , http://forum.fusioncharts.com/topic/8595-fcexporter-displays-as-blank-page-during-chart-download/ , tried solutions at http://www.idautomation.com/kb/xwindow-error.html and others but nothing. Overall I read that it should work just with -DJava.awt.headless=true parameter but it doesn't. Maybe I've missed something. Does anybody know a solution to this? thanks in advance, regards Piotrek Share this post Link to post Share on other sites
plepik Report post Posted April 21, 2011 anybody can't help? still I don't find the solution Share this post Link to post Share on other sites
srividya_sharma Report post Posted April 21, 2011 Yes, for linux you would have to use -Djava.awt.headless=true. Also, I think you may have to increase the memory size using -Xmx512m. Hope this works out for you. Srividya Sharma Share this post Link to post Share on other sites
plepik Report post Posted April 22, 2011 Unfortunately it didn't help Share this post Link to post Share on other sites
srividya_sharma Report post Posted April 22, 2011 Hi Can you post the exact error from the logs? Thanks Srividya Sharma Share this post Link to post Share on other sites
HangLi Report post Posted January 3, 2013 Set -Djava.awt.headless=true did not help in my case. I had to modify the Java code to make it work. Two key changes: 1: do not use Graphics object in ImageGenerator.java 2: do not use BasicEncoder.encode(BufferedImage bufferedImage, OutputStream outputStream, float quality, String format) method, use ImageIO.write(bufferedImage, format, outputStream) instead Share this post Link to post Share on other sites