manikantaprasad Report post Posted December 12, 2008 hi fusion charts team saveAsImage() method will be in which file iam in fusioncharts v3 enterprise version i cant find it in fusion charts.js so please help me Share this post Link to post Share on other sites
Pallav Report post Posted December 13, 2008 This method is inside the SWF file - not the FusionCharts.js file. Share this post Link to post Share on other sites
manikantaprasad Report post Posted December 15, 2008 if iam having the fla of the swf can i decode the method please tel me the procedure i have the enterprise edition of the fusion charts with the fla source please tel me how to decode this method Share this post Link to post Share on other sites
manikantaprasad Report post Posted December 15, 2008 added to that the save as image is working but the pop up block is enabled asking to download the file but if iam clicking it the page gets refreshed so i cant download please help for this too Share this post Link to post Share on other sites
srividya_sharma Report post Posted December 17, 2008 Hi I have created a sample for saving chart as image in v3. Please check the attached zip file. Add the FusionCharts folder containing the swf files and the js file. Rename the .zip to .war Deploy and test Hope this helps you. Srividya v3ImageExample.zip Share this post Link to post Share on other sites
sachin257 Report post Posted December 20, 2008 Dear Vidya, I tried it but still i am not able to save the image. Steps followed. 1. Unzipped the v3ImageExample file, renames as v3ImageExample.war 2. Transfered JSClass,Gallery & Charts folders to the server But Still i am not able to save the images. I am getting the below error. Please help me. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 34 in the jsp file: /Includes/FusionChartsRenderer.jsp Generated servlet error: The method parseBoolean(String) is undefined for the type Boolean An error occurred at line: 34 in the jsp file: /Includes/FusionChartsRenderer.jsp Generated servlet error: The method parseBoolean(String) is undefined for the type Boolean at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.ImageExample_jsp._jspService(org.apache.jsp.ImageExample_jsp:101) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:534) Share this post Link to post Share on other sites
srividya_sharma Report post Posted December 21, 2008 (edited) parseBoolean method is present only from jdk 1. 5. You seem to be using jdk version < 1.5. I am attaching FusionChartsRenderer.jsp and FusionChartsHTMLRenderer.jsp compatible for versions < 1.5 . Please replace these two files in Includes folder. FusionChartsRenderer.zip Edited January 18, 2009 by Guest Share this post Link to post Share on other sites
Fabien Petel Report post Posted January 14, 2009 Hi, I guess it's a fairly na Share this post Link to post Share on other sites
srividya_sharma Report post Posted January 14, 2009 Let me try to replicate your problem here with tomcat 4.x and jdk 1.4.2. I will get back to you soon. Share this post Link to post Share on other sites
srividya_sharma Report post Posted January 14, 2009 Your problem seems to be similar to this post: http://java.thatscripts.com/java-archive/1648/215648-7.html I have tried with j2sdk1.4.2_02 and tomcat 4.0.5 on Windows. It works fine. I would suggest that you upgrade your jdk to at least j2sdk1.4.2_02. Share this post Link to post Share on other sites
sachin257 Report post Posted January 18, 2009 Dear Sir, Please help still i am not ablt to save the images. As you said, I replaced FusionChartsRenderer.zip files in includes folder which you posted on 22-12-2008(refer the attachement). My Java Verion is : j2sdk1.4.2_05. Jboss Version : jboss-4.0.2 Console Error: 13:02:39,807 INFO [server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 19s:507ms 13:03:54,632 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 36 in the jsp file: /Includes/FusionChartsRenderer.jsp Generated servlet error: Type mismatch: cannot convert from Boolean to boolean An error occurred at line: 36 in the jsp file: /Includes/FusionChartsRenderer.jsp Generated servlet error: The method boolToNum(Boolean) in the type FusionChartsRenderer_jsp is not applicable for the arguments (boolean) An error occurred at line: 36 in the jsp file: /Includes/FusionChartsRenderer.jsp Generated servlet error: Type mismatch: cannot convert from Boolean to boolean An error occurred at line: 36 in the jsp file: /Includes/FusionChartsRenderer.jsp Generated servlet error: The method boolToNum(Boolean) in the type FusionChartsRenderer_jsp is not applicable for the arguments (boolean) at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.ImageExample_jsp._jspService(org.apache.jsp.ImageExample_jsp:101) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:534) Please guide me to solve the issues. If possible please post the complete war files. Regds, Sachin.H Share this post Link to post Share on other sites
srividya_sharma Report post Posted January 18, 2009 Please download the zip file for jdk 1.4 from this topic : http://www.fusioncharts.com/forum/Topic6497-33-2.aspx Post #11101 Share this post Link to post Share on other sites