Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
A script has executed for longer than the default timeout period of 15 seconds
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
PC  
View profile  
 More options Aug 1 2008, 7:31 am
From: PC <choudhary.prash...@gmail.com>
Date: Fri, 1 Aug 2008 04:31:49 -0700 (PDT)
Local: Fri, Aug 1 2008 7:31 am
Subject: A script has executed for longer than the default timeout period of 15 seconds
Hi,

I am getting this error "A script has executed for longer than the
default timeout period of 15 seconds" when I retrieves the data using
web service  call. The amount of data is large about 24000 records and
one record has size around 8kb.

When I tries to set this much amount of data in a chart, then also
this error  occurs.

This is the default behavior of flash player that it do not allow to
execute scripts more then 15 seconds. I have search on most of the
forums but I could not able to get the problem resolved.

Do any one have solution for this problem.

Thanks in advance.

Prashant Choudhary


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
<mx:AnandVardhan/>  
View profile  
 More options Aug 1 2008, 7:45 am
From: "<mx:AnandVardhan/>" <vardhanan...@gmail.com>
Date: Fri, 1 Aug 2008 04:45:32 -0700 (PDT)
Local: Fri, Aug 1 2008 7:45 am
Subject: Re: A script has executed for longer than the default timeout period of 15 seconds
You are doing something which went in an infinite loop. try looking on
the recent changes you made. try commenting it out and then running.

Anand
(Adobe Certified Developer)

On Aug 1, 4:31 pm, PC <choudhary.prash...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
PC  
View profile  
 More options Aug 1 2008, 7:57 am
From: PC <choudhary.prash...@gmail.com>
Date: Fri, 1 Aug 2008 04:57:57 -0700 (PDT)
Local: Fri, Aug 1 2008 7:57 am
Subject: Re: A script has executed for longer than the default timeout period of 15 seconds
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())
        }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ajay Chhaya  
View profile  
 More options Aug 1 2008, 8:36 am
From: "Ajay Chhaya" <ajay.fl...@gmail.com>
Date: Fri, 1 Aug 2008 18:06:50 +0530
Local: Fri, Aug 1 2008 8:36 am
Subject: Re: [flex_india:12494] Re: A script has executed for longer than the default timeout period of 15 seconds

I'm not sure if it works but you can set scriptTimeLimit property of
Application

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" scriptTimeLimit="60">

and see if it works, you can check more details here

http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/ww...

---------------------
Ajay Chhaya

www.ajaychhaya.com
--------------------------------

On Fri, Aug 1, 2008 at 5:15 PM, <mx:AnandVardhan/>
<vardhanan...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
PC  
View profile  
 More options Aug 1 2008, 10:01 am
From: PC <choudhary.prash...@gmail.com>
Date: Fri, 1 Aug 2008 07:01:39 -0700 (PDT)
Local: Fri, Aug 1 2008 10:01 am
Subject: Re: A script has executed for longer than the default timeout period of 15 seconds
I already tried this option (scriptTimeLimit="60") but no luck.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »