axe Report post Posted February 1, 2012 Hi, I have a Java app deployed on WebLogic 11g (10.3.5) using FusionCharts 3.2.1. I have configured the "Save as x" (PDF/PNG) option, however upon clicking this I get this exception, and my application falls over; ]] Root cause of ServletException. java.lang.NullPointerException at java.io.File.<init>(File.java:222) at com.fusioncharts.exporter.error.ErrorHandler.doesServerSaveFolderExist(ErrorHandler.java:200) at com.fusioncharts.exporter.servlet.FCExporter.init(FCExporter.java:248) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283) Following the readme, I have placed fusioncharts_export.properties in WEB_INF/classes and configured the values appropriately. I also have the chart xml with the arrtibute exportAction='download', as I do not want to write the file to disk at all. This same application works without fusioncharts_export.properties at all on JBoss. I am not sure what is causing this problem, so any help you can give would be appreciated. Share this post Link to post Share on other sites
axe Report post Posted February 1, 2012 I have narrowed down the problem. It only happens using the Oracle JRockit JVM, which is in use on all our WebLogic instances. Switching my development machine to use the standard edition JVM and all export/save options work as expected. Share this post Link to post Share on other sites
axe Report post Posted February 2, 2012 Solution; this came down to accidently using the java string escape character in the windows path specified for SAVEPATH. It is however a problem that occurs only when using JRockit Share this post Link to post Share on other sites
Guest Angshu Report post Posted February 2, 2012 Hi, Glad to know that you have managed to resolve your problem. Happy FusionCharting!!! Share this post Link to post Share on other sites