Sign in to follow this  
axe

Export To Png/pdf Problem

Recommended Posts

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

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

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

Hi,

 

Glad to know that you have managed to resolve your problem.

 

Happy FusionCharting!!! biggrin.gif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this