Hi,
The same code works if amount of data is less (up to 15000 records).
But when the number of records are increased error occurs.
Here is the two methods which some times throw this exception when
amount of data is large
In first method I gave call to apache-cfx web service which returns
large amount of data.
I n second method I am doing nothing but setting the data provider of
chart
This is the code which I have used to retrieved data
private function getData():void{
try{
var selStation:String=station.selectedItem.toString();
var stationCaheExists:Boolean=stationCacheExist[selStation] as
Boolean
trace("stationCaheExists=="+stationCaheExists)
if(isCustomerCacheExist==true && stationCaheExists==true){
trace("Data is set from cache");
}else{
trace("calling get data from web service");
srv.addEventListener(ResultEvent.RESULT,getDataResult)
var op:AbstractOperation=srv.getOperation("getData")
op.send(station.selectedItem);
CursorManager.setBusyCursor();
}
}catch(e:Error){
trace("Error occurred :"+e.getStackTrace())
Alert.show("Error occured while retrieving data. Please try
again.","Error");
}
}
The result of above method is stored in a collection and set in a
chart later using method below
private function setDataInChart(evt:Event):void{
try{
if(resultView.lineChart!=null){
resultView.lineChart.dataProvider=null;
resultView.lineChart.dataProvider=stationAggtypeCombArray[currentStation
+aggregation.selectedItem.data] as ArrayCollection
}
}catch(e:Error){
trace("Error in setDataInChart: "+e.getStackTrace())
}
}