wonderway Report post Posted July 19, 2013 Hallo, i am new in Fusionchart forum i have a problem with FCExporter, i'm doing to export chart via server-side (Glassfish). Sometimes they doing great, but sometimes FCExporter gives me an error. the error: POST http://localhost:42086/RAFI/FCExporter 500 (Internal Server Error) pic: my question is where the error comes from? Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted July 19, 2013 Hi, Welcome to FusionCharts Forum. Could you please provide some more information on your issue? a. The server-side technology used b. Whether you are using trying to export Flash or JavaScript charts c. The version of FusionCharts is being used at your end d. Relevant code snippet of "how you are exporting the chart image/PDF to server" Awaiting your valuable inputs. Share this post Link to post Share on other sites
wonderway Report post Posted July 22, 2013 Hi, Welcome to FusionCharts Forum. Could you please provide some more information on your issue? a. The server-side technology used b. Whether you are using trying to export Flash or JavaScript charts c. The version of FusionCharts is being used at your end d. Relevant code snippet of "how you are exporting the chart image/PDF to server" Awaiting your valuable inputs. a. Well, I'm doing Batch Export Chart, image saving in server disk. When ChartId1 is done exporting, the Chart is changing with ChartId2 in the same div, and if ChartId2 is finish rendering, ChartId2 is start exporting. b. I'm trying to export Flash chart c. i'm using FusionCharts XT (v3.3.1 - Service Release 1) d. Sample Code: startExport("ChartId1"); function startExport(param){ var chart = FusionCharts.getObjectReference(param); if (chart.hasRendered()==true){ chart.exportChart(); }else{ alert("Please wait for the chart to finish rendering"); } } function FC_Exported ( statusObj ) { var area = Ext.getCmp('AreaTypeSlide').rawValue; var time = Ext.getCmp('TimeTypeSlide').rawValue; console.log(statusObj); if (statusObj.statusCode == "1" ) { if(statusObj.DOMId == "ChartId1") { var SMSPPT = new FusionCharts("../Ext-4/Charts/MSCombiDY2D.swf", 'ChartId2', "785", "538", "0", "1"); SMSPPT.setJSONUrl('./Services/SMSTrend/'+area+'/'+time+'/PPT'+'?zoom=0'); SMSPPT.render("SlideDiv"); SMSPPT.addEventListener("Rendered", function () { FusionCharts("ChartId2").exportChart(); }); chartsImg = statusObj.fileName.substring(22); } else { chartsImg = chartsImg + "|" + statusObj.fileName.substring(22); window.open("./Services/trafficRptService/"+chartsImg); } console.log(chartsImg); } else { alert("Problem"); } } hope you understand, and i'm waiting for your valuable answer Share this post Link to post Share on other sites
Sanjukta Report post Posted July 23, 2013 a. Well, I'm doing Batch Export Chart, image saving in server disk. When ChartId1 is done exporting, the Chart is changing with ChartId2 in the same div, and if ChartId2 is finish rendering, ChartId2 is start exporting. b. I'm trying to export Flash chart c. i'm using FusionCharts XT (v3.3.1 - Service Release 1) d. Sample Code: startExport("ChartId1"); function startExport(param){ var chart = FusionCharts.getObjectReference(param); if (chart.hasRendered()==true){ chart.exportChart(); }else{ alert("Please wait for the chart to finish rendering"); } } function FC_Exported ( statusObj ) { var area = Ext.getCmp('AreaTypeSlide').rawValue; var time = Ext.getCmp('TimeTypeSlide').rawValue; console.log(statusObj); if (statusObj.statusCode == "1" ) { if(statusObj.DOMId == "ChartId1") { var SMSPPT = new FusionCharts("../Ext-4/Charts/MSCombiDY2D.swf", 'ChartId2', "785", "538", "0", "1"); SMSPPT.setJSONUrl('./Services/SMSTrend/'+area+'/'+time+'/PPT'+'?zoom=0'); SMSPPT.render("SlideDiv"); SMSPPT.addEventListener("Rendered", function () { FusionCharts("ChartId2").exportChart(); }); chartsImg = statusObj.fileName.substring(22); } else { chartsImg = chartsImg + "|" + statusObj.fileName.substring(22); window.open("./Services/trafficRptService/"+chartsImg); } console.log(chartsImg); } else { alert("Problem"); } } hope you understand, and i'm waiting for your valuable answer Hi, Could you please let us know the value you are passing to the "exportHandler" attribute in the JSON data? Awaiting your reply. Share this post Link to post Share on other sites
wonderway Report post Posted July 25, 2013 Hi, Could you please let us know the value you are passing to the "exportHandler" attribute in the JSON data? Awaiting your reply. here: "exportEnabled" : "1"; "exportAtClient" : "0"; "exportHandler" : "FCExporter"; "exportFileName" : "VoiceTrafficFileName"; "exportFormat" : "JPG"; Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted July 26, 2013 (edited) Hi, Could you please try once by disposing the chart object instance, just before rendering all the charts ? Ref. JavaScript code to dispose a chart: FusionCharts("myChartId").dispose(); In case if this is what is not able to resolve your issue, please provide us the relevant scaled down sample (as ZIP file), so that we can test and replicate the issue from our end. Awaiting your valuable response. Edited July 26, 2013 by Sashibhusan Share this post Link to post Share on other sites
wonderway Report post Posted August 5, 2013 Hi, Could you please try once by disposing the chart object instance, just before rendering all the charts ? Ref. JavaScript code to dispose a chart: FusionCharts("myChartId").dispose(); In case if this is what is not able to resolve your issue, please provide us the relevant scaled down sample (as ZIP file), so that we can test and replicate the issue from our end. Awaiting your valuable response. i found the solution --> "resizing Max Post Size in Glassfish Server" thanks for all supreme being who trying to help me Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted August 6, 2013 Glad to hear that your issue has been resolved. Share this post Link to post Share on other sites