Bug 140620 Chart scripting errors are ignored
Write a chart with an invalid script, the execution simply ignores the script. This makes it difficult to debug scripting. The error message is also not precise and needs improvements.
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/script/ScriptHandler.java
public static final String AFTER_DRAW_DATA_POINT_LABEL = "afterDrawDataPointLabel"; 
	public static final String BEFORE_DRAW_FITTING_CURVE = "beforeDrawFittingCurve"; 
	public static final String AFTER_DRAW_FITTING_CURVE = "afterDrawFittingCurve"; 
	public static final String BEFORE_DRAW_AXIS_LABEL = "beforeDrawAxisLabel"; 
	public static final String AFTER_DRAW_AXIS_LABEL = "afterDrawAxisLabel"; 
	public static final String BEFORE_DRAW_AXIS_TITLE = "beforeDrawAxisTitle"; 
	public static final String AFTER_DRAW_AXIS_TITLE = "afterDrawAxisTitle"; 
	
	public static final String BASE_VALUE = "categoryData"; 
	public static final String ORTHOGONAL_VALUE = "valueData"; 
	public static final String SERIES_VALUE = "valueSeriesName"; 
	
	private final transient Object[] ONE_ELEMENT_ARRAY = new Object[1];
	private final transient Object[] TWO_ELEMENT_ARRAY = new Object[2];
	private final transient Object[] THREE_ELEMENT_ARRAY = new Object[3];
	private transient Scriptable scope = null;
	private transient IChartEventHandler javahandler = null;
	private transient Chart cmDesignTime = null;
	private transient Chart cmRunTime = null;
	private transient GeneratedChartState gcs = null;
	private transient ULocale lcl = null;
	private transient IScriptClassLoader iscl = null;
	private transient List javaScriptFunctionNamesCache = null;
	private static ILogger logger = Logger.getLogger( "org.eclipse.birt.chart.engine/model" ); 
	/**
	 * The constructor.
	 */
	public ScriptHandler( )
	{
		final Context cx = Context.enter( );