ashish.yanni Report post Posted April 21, 2010 HI, I am using FC v.3.1 and trying to implement the feature of saving the chart as image to the server side in my web application. We are using apache and tomcat in combination for running or web application. Using JSP to render and display the charts. I can render my charts as usual using the new v 3.1 package provided. Problem is when I try to save that image. When I right click on the chart and try to save it to the server, it shows the capturing status on the chart. After the capturing is over there is a pause of around 40-50 sec, and then I see a message in my logs. INFO: error=&statusMessage=Server Directory not found. I have created this directory and assigned all the permission to it. In the fusioncharts_export.properties, I have given the relative path and the http path to that directory. For testing purpose, I placed a sample image in that directory and tried using it thru the http path, whcih shows up correctly. As u can see above there is not error message but only the status message. I am not able to guess what is going wrong. I have followed the documentation on the fusioncharts site carefully for the same. Any Help is appreciated. Thanks!! Share this post Link to post Share on other sites
srividya_sharma Report post Posted April 21, 2010 (edited) Hi Ashish, Welcome to FusionCharts community! Can you please post the properties file with all the settings you are using currently as attachment? Can you please post the xml as attachment and also tell me the directory structure you are using? This will help me locate the cause of the problem. Srividya Edited April 21, 2010 by Guest Share this post Link to post Share on other sites
ashish.yanni Report post Posted April 21, 2010 HI, Please see the properties file attached (File Renamed). I am using an apache-tomcat combination on a linux box. SAVEPATH=./FusionChart_Images/ = This is a folder (event specific folder) under my application root under the apache root, . Apache root : /home/insper/www/ Complete folder path : /home/insper/www/event/subDomain.Domain/FusionChart_Images Http path : http://subDomain.Domain/FusionChart_Images/ Using apache redirects in httpd.conf, so the actual internal redirection to folder is : http://subDomain.Domain/event/subDomain.Domain/FusionChart_Images/ Apache handles requests to all the files except *.jsp. jsp requests are handled by tomcat. I took all the JSP's from the ExprotHandler/JSP package and put it under my app root (app root directory for tomcat). The chart gets rendered correctly with these settings. I added the required attributes to the chart tag while forming the xml (As mentioned in the documentation). The options for saving the chart appears on right click on the chart. After I click and select the save option, the capturing status bar is seen on the chart, after some time, on the server side, I see a message saying, Server Directory not found. FC_Properties.txt Share this post Link to post Share on other sites
srividya_sharma Report post Posted April 21, 2010 Hi Ashish, Can you please change exportAction='download' and see whether download is working? Srividya Share this post Link to post Share on other sites
ashish.yanni Report post Posted April 23, 2010 Hi, I have tried this change, it does not help. Still getting the same message. Share this post Link to post Share on other sites
srividya_sharma Report post Posted April 25, 2010 Hi Ashish, Since download itself is not working, it means, it has something to do with the path to exportHandler given in the xml. Can you please replace the FCExporter.jsp in your webapp with the one present in the attachment here and try once? This will give better error messages. Again, please verify the path given in exportHandler attribute. Thanks. Srividya FCExporterWithBetterMessages.zip Share this post Link to post Share on other sites
raakkesh.t Report post Posted July 1, 2010 Hi Srividya , My download is working properly.but save is not working its showing error message server directory does not exists. what will be problem? Thanks & regards Rakesh Share this post Link to post Share on other sites
srividya_sharma Report post Posted July 4, 2010 Hi Rakesh, Can you please post the directory structure of your application, the xml used and the export properties file? This will help in giving you further guidance. Thanks Srividya Share this post Link to post Share on other sites
raakkesh.t Report post Posted July 8, 2010 Hi Srividya Now its working fine for column2d charts but its is not working for multiaxischart. actually javascript hasRendered() method is not working for multiaxis chart below is my javascript function. function ExportMyCharts() { var chartObject1 = getChartFromId('myChartId'); if( chartObject1.hasRendered() ) chartObject1.exportChart(); var chartObject2 = getChartFromId('myChartId1'); if( chartObject2.hasRendered() ) chartObject2.exportChart(); } what will be problem? Thanks Rakesh Share this post Link to post Share on other sites
srividya_sharma Report post Posted July 10, 2010 (edited) Can you please verify that registerWithJS is turned on? Also, please check the version of swf you are using for multi series chart. You can check the version by turning on the debugMode. Hope this helps. Srividya Edited July 10, 2010 by Guest Share this post Link to post Share on other sites