designadda / pentaho-fc-plugin

Automatically exported from code.google.com/p/pentaho-fc-plugin
GNU Lesser General Public License v3.0
0 stars 0 forks source link

When the plugin gives an error, the JavaScript does not return the proper error info #122

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make the plugin code return an error e.g. NullPointerException (only visible 
on the server logs);
2. Load a Fusion Charts chart and the JavaScript will return the following 
error: "NetworkError: 404 Not Found - 
http://ec2-46-137-143-217.eu-west-1.compute.amazonaws.com/ndinsight/content/fusi
on/swf/FCF_undefined.swf".

What is the expected output? The expected output would be the at least the 
proper error info on the JavaScript side and the JavaScript should not continue 
to parse the result chart XML like it has been properly generated. It should 
stop if the content of the result XML contains an Error message.

What do you see instead? The server log files show a much more detailed error 
info and the JavaScript gives the following output "NetworkError: 404 Not Found 
- 
http://ec2-46-137-143-217.eu-west-1.compute.amazonaws.com/ndinsight/content/fusi
on/swf/FCF_undefined.swf". This may confuse the user/developer into thinking 
that they are distinct errors, as this is a result of the JavaScript continuing 
to process the result XML like it is correct.

Original issue reported on code.google.com by bruno.fa...@xpand-it.com on 9 Jan 2014 at 10:03