Julian

Swf Always Requests Data.xml

Recommended Posts

Hi,

 

I have found that the swf is always calling my server for Data.xml even though I set my jsonUrl. This is wasteful of server bandwidth, CPU and also causes a log line to be written as below. Is this a known issue? Can you guys look into fixing it in the next release.

 

16:36:56,939 INFO  [sTDOUT] 5177975 [http-0.0.0.0-8080-3] WARN  org.springframework.web.servlet.PageNotFound  - No mapping found for HTTP request with URI [/mvc/reports/Data.xml] in DispatcherServlet with name 'portal'

Share this post


Link to post
Share on other sites

I've also encountered this issue and its causing us issues now too. Steps to reproduce:

 

1). Use the jsonurl in your chart.. our code looks like this:

 

var myDoughnutChart = FusionCharts.render("Doughnut3D.swf", "MyChart", "100%", "400", "MyChartDiv", "/GetJson", "jsonurl");

 

2). Return a valid json result.

3). The chart displays correctly.

4). It appears the chart will then request Data.xml (which is unexpected/wanted behavior).

 

Any advice on how to solve this issue would be greatly received.

Share this post


Link to post
Share on other sites

As a followup to this, if you don't use compact rendering the problem doesn't occur.

 

So this behaves correctly:

 

var myDoughnutChart = new FusionCharts("Doughnut3D.swf", "MyChart", "100%", "400", "0", "1");

myDoughnutChart .setJSONUrl("/GetJson");

myDoughnutChart .render("MyChartDiv");

 

This does not:

 

var myDoughnutChart = FusionCharts.render("Doughnut3D.swf", "MyChart", "100%", "400", "MyChartDiv", "/GetJson", "jsonurl");

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

According to FusionCharts architecture, it always accepts data in XML format by default.

 

If you provide data to the chart in JSON format, it will convert the data in XML format.

 

Please check the same by enabling the Debug Mode.

 

Hope this helps.smile.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