Page timing

Hello,
I am having a little issue with a script that is supposed to
stop a request to my server when I enter information into a form
but the information takes more than 5 seconds to be processed by
the server.
Code:
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.controls.Text;
private function initApp():void{
this.Submit.addEventListener(MouseEvent.CLICK,onFormClick);
private function onFormClick(event:MouseEvent):void{
var timer:Timer = new Timer(1000,5);
timer.addEventListener(TimerEvent.TIMER_COMPLETE,onTimerComplete1);
timer.start();
private function onTimerComplete1(event:TimerEvent):void{
Alert.show('Invalid Request);
clearFormHandler();
]]>
</mx:Script>
Here is the data Service
<mx:HTTPService id="login_user" result="checkLogin(event)"
showBusyCursor="true" method="GET"
url="https://{customer.text}.mysite.net/interface.php"
useProxy="false"
fault="userFaultHandler(event)">
<mx:request xmlns="">
<customer>
{customer.text}
</customer>
<username>
{username.text}
</username>
<password>
{password.text}
</password>
</mx:request>
</mx:HTTPService>
and the form
<mx:Panel resizeEffect="Resize" width="582" height="354"
layout="absolute" title="Board Login" horizontalCenter="0"
verticalCenter="-2" id="panel1" color="#FF0000"
backgroundColor="#191919" cornerRadius="15" themeColor="#FFA800"
borderColor="#9FA7B7">
<mx:Label x="10" y="14" text="Customer Number"
id="customerlbl" fontSize="20" width="542" textAlign="center"/>
<mx:TextInput x="10" y="61" id="customer" width="542"
borderColor="#F90404"
backgroundColor="#D5D1D1" themeColor="#FFA800"
color="#050505" change="validateForm(event);"/>
<mx:Label x="10" y="91" text="Username" id="label1"
fontSize="20" width="542" textAlign="center"/>
<mx:TextInput x="10" y="138" id="username" width="542"
borderColor="#F90404" backgroundColor="#D5D1D1"
themeColor="#FFA800" color="#050505"
change="validateForm(event);"/>
<mx:Label x="10" y="175" text="Password" id="label2"
fontSize="20" width="542" textAlign="center"/>
<mx:TextInput x="11" y="217" id="password"
displayAsPassword="true" width="542" borderColor="#F90404"
backgroundColor="#D5D1D1" themeColor="#FFA800"
color="#050505" change="validateForm(event);"/>
<mx:Button x="10" y="282" label="Login" id="Submit"
click="login_user.send();"
fontSize="14" themeColor="#FFA800" borderColor="#FA0202"
enabled="{formIsValid}" />
<mx:Button x="85" y="282" label="Reset" id="Reset"
enabled="{!formIsEmpty}"
click="clearFormHandler();" fontSize="14"
themeColor="#FFA800" borderColor="#FA0202"/>
</mx:Panel>
There are several different functions that are going on with
this form. All other functions are working but the timer is not
timing out and resetting the form as I expect it to. Any
Ideas.

Instead of using a timer how about setting the requestTimeout
property of the HTTPService object and setting a fault handler for
the service to catch the timeout.
The faultcode of the event will have the following
Client.Error.RequestTimeout to identify the timeout.
<mx:HTTPService id="ControlNavLoadService"
url="
http://localhost:8090/flexmed/XML/ControlNav.xml"
resultFormat="xml"
showBusyCursor="true"
requestTimeout="5"/>

Similar Messages

  • Long-running BSP : Page timed out and should be reloaded.

    Hi,
    I'm a SAP Basis Administrator, so I have a poor knowledge of BSP technologies.
    I have been asked by the developement team to deal with a Z*  BSP  timeout issue.
    SAP release : 4.7 (6.20)
    We have been provided a detailled scenario by the developemnt team :
    The BSP is not launched from the portal, rather the ICM htpp port is directly called by the BSP.
    We do not use the sap web dispatcher.
    We have previously already increased the ICM htpp timeout to correct the "500 connection Timed outu2019
    On the initial screen of the BSP , we have to fill in several cells (250) then save the input.
    Afterwards, the BSP is running during a while (variable length), the user finally receives a blank screen and the timesheet does not respond ,the following error mesage occurs on IE :
    Page timed out and should be reloaded.
    However, on sap side, the user is still connected (SM04), and the work process is still running(sm66)
    Once the work process has finished its task, we can check that the BSP has correctly updated
    SAP tables.
    The timeout origin is not easy to identify, since it can occur after 3minutes, 4minutes, 8 minutes
    I 've tried to significantly increase keepalive value, rdisp/plugin_auto_logout value ... but it didn't help.
    Any help to identify this timeout would be highy appreciated.
    Thank you in advance for your attention.
    Regards.

    Hi RAOUL
    First of all , is it ok of the update occurs several times , for eg updation of custom preferences or creation of documents,
    If its the creation of documents , so u dont want multiple updates.
    Now by increasing the timeout parameter , u have just increased the time before which a timeout page is displayed , but the process (if started ) will still go on in the background,
    There is also a processing timeout which is http port specfic,
    You can set this value in youe profile by the below.
    icm/server_port_0
    PROT=HTTPS, PORT=8001, TIMEOUT=45, PROCTIMEOUT=45,
    The parameter PROCTIMEOUT is the processing timeout , i.e. after 45 secs , the ABAP process will be terminated and the timeout will be shown.
    So u dont have to worry abt orphan processes ,
    But this will apply all apps listenign on port "server_port_0",
    To be more specfic , u can code the app not to commit if the timeout has been exceeded.
    Cheers

  • One of my bookmarks i cant get into using the user name and password alli get is the page timed out but i can get into the site by using internet explorer

    When I try to get in the site all I get is session is timed out. How can i correct this

    Try to navigate to that page starting with its home page in case you are using a bookmark.
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"

  • Pages timing out

    Starting early this morning (before an update later today) every website page I am on times out (turns gray) after a minute or so. I have to refresh the page to do anything on the page. It does not matter if it is a secure page or not.

    I cleared my cache AND deleted all cookies, this seems to have stopped the problem.

  • Forum pages timed out!

    Hello Laura,
    in the last two days, i am effectively avoided access to the NI forums at certain hours of the day, especially around the Californian afternoon (corresponding to 8pm to 2am in Europe).
    All Ni forum pages  simply time out, both in  IE6, 7 and Firefox 2. and yes i have checked my internet connection is very fine.
    Most of my free time (when i have some) is when my family is asleep, and i like spending it in this forum, so i urge you to look into this.
    Thanks!
    ... And here's where I keep assorted lengths of wires...

    Just got one of these
    Ben
    PS That could make a nice "Emoticon".
    Message Edited by Ben on 12-19-2007 09:39 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Being_Processed.PNG ‏3 KB

  • Whenever i try to download something on my iphone 5 through safari it brings me to new page of itunes and after that itunes page timed out what to do in this situation

    I am not able to download anything on iphone 5

    Downloads are possible, but require a "helper" app to store and use the download. If safari detects another app has registered for downloads, you will see an "open in app's name" to indicate that mobile safari will download that file but hand it off to this app to store in that app's sandbox. An example of a "helper" app would be something like iFiles:
    https://itunes.apple.com/us/app/ifiles/id336683524?mt=8
    Mobile Safari, itself, is not capable of downloading/saving anything to the file system.

  • Safari and Firefox will not open certain web pages

    I just bought a MacBook yesterday and since then have not been able to open certain websites using firefox or safari. I have been trying to access www.recolorado.com and www.people.com and keep getting the error that the page timed out because server is not responding. I called apple support yesterday and was told to reinstall the operating system which did not help. My husband has a PC that is connected to the same internet connection and he can open these sites with no problem. I have tried resetting safari, but still can't get to these sites. Does anyone have any suggestions??

    I was having the same problem and it was driving me INSANE because every solution I found on the internet said "just use Firefox!" (my default browser). It doesn't matter whether it's Firefox, Safari, Netscape, Opera, whatever, the computer was NOT accessing these sites. It seemed to coincide with a recent OS update, but maybe that's just my imagination.
    Then my sister-in-law came over with her totally identical MacBook and complained of having the exact same problem accessing the same sites!
    On top of this, I had no problem accessing these on my iMac in Chicago last week (running the same OS and software), so I concluded it had to be our router.
    In my case, it was solved by simply rebooting the router. Have you tried this? It seems so simple, but now I can access every site that I was having trouble with. You might have to reconfigure something on your router, I don't know much about this. But my general conclusion is that something was wrong with the way the MacBook and router were communicating. Sorry I can't be more specific!

  • How do I configure port forwarding on Airport Extreme via Win 7/64?

    Hello all,
    I'm trying to forward some ports in order to correct issues with setting up servers for video games, i.e. I can connect but another can't while yet another can connect fine, etc. So far, despite thorough Google searching, I have not been able to find a solution that matches my exact problem.
    The specific ports I want to forward are 7777 and 25565. Currently, my connection is through Northstate Communications using an ADSL modem/router (Zhone Model No. 6218-I2-200-0NS) hooked up to an Airport Express + Time Capsule (Model No. A1254, version 7.5.2). As far as I know, the only reason the Airport Extreme is there is for the time capsule, but I don't know for sure whether my computer is actually connecting to the internet through one or through the other. I didn't set it up originally, unfortunately.
    I currently can't edit the settings for the Zhone. Supposedly, typing 192.0.0.1 into the address bar of my web browser should open the router configuration utility, but instead it returns "Oops! Google Chrome could not find <address>." I can, however, use the AirPort Utility for Windows to edit all of the AirPort's settings. I have followed the instructions in this YouTube video to forward the port 7777 using the AirPort Utility: http://www.youtube.com/watch?v=OFad6NvddRk but changes I make to Advanced/Port Mapping apparently do not work because www.whatsmyip.org and www.canyouseeme.org report that a test of port 7777 is either timing out or unavailable, respectively.
    I am concerned that the IP address automatically provided for me when I create a new port mapping is not the correct IP address since it is 10.x.x.x, which I can't find anywhere in any settings on the computer or online. But, when I type in the IP address I get from www.whatsmyip.org (97.x.x.x) and then go back to edit the setting I created, it has apparently reverted to 10.x.x.x without saving the address I entered.
    So, what am I doing wrong? Do I need to change some settings in the Zhone router before it will work, and if so, how can I access it? What is the 10.x.x.x address that the AirPort Utility assigns to new port mappings by default? Since I intend to use Hamachi to host the game server, do I need to use the IP address given to me by that program (5.x.x.x) instead? As far as I can determine, all my drivers are up to date. Any assistance would be much appreciated. Other system specs given below:
    CPU: AMD Phenom II X4 945 3.00 GHz
    MB: MSI 790FX-GD70 AM3 AMD
    RAM: Corsair Dominator 4GB (2 x 2GB) 240-Pin DDR3 SDRAM 1600 (PC3 12800)
    Mushkin Enhanced Blackline 4GB (2 x 2GB) 240-Pin DDR3 SDRAM 1333 (PC3 10666)
    GPU:  Sapphire 100258-1GHDMI Radeon HD 4850 1GB 256-bit GDDR3 PCI Express 2.0 x16
    Wireless: AZiO AWD102N PCI Wireless Adapter
    OS: Windows 7 64-bit
    -R

    Thanks for your response. I attempted to do that, but I couldn't find any way to access the configuration for the Zhone router. Typing the IP address into my web browser's address bar only resulted in "page could not be found" or "page timed out", etc. I called tech support at Northstate, who likewise suggested that the Zhone router should be set to bridge mode and the AEBS set to router mode since it would be easier for me to configure the AirPort. After wrangling a bit with them over my inability to change any settings for the Zhone, they sent a technician over. He messed around with the Zhone, apparently putting it in bridge mode, and we managed to get the AirPort to work without any double NAT errors. I reset the AirPort and created a new configuration file. Unfortunately, when I went to the Advanced/Port Mapping menu and repeated the original steps to forward port 7777, tests at www.whatsmyip.org still returned "timed out". The technician said he wasn't knowledgable enough about Apple products to assist me any further and suggested I call their tech support or visit the nearest Genius Bar. So that's about it. Any other ideas?

  • How do I notify Apple of a software failure:  in Win 7 64 bit, using Get Info function causes iTunes 10.5 to fail and exit?

    I have Win7 64 bit running iTunes 10.5. When I import a CD and click on the "Get Info" context menu item for the CD drive item on the left side of the window, the expected context menu and input boxes appear. When I type anything into any of the available input boxes, iTunes immediately throws a fail exit to Windows. Here are relevant screen shots:
    Right click on CD Device item to get context menu:
    Click on Get Info menu item to open CD Info window:
    Key in "A" in Artist input box, get immediate failure:
    So far Microsoft hasn't notified me of any solutions to this failure.
    This info needs to get to Apple, but I am not paying to give them information to fix their problems!
    Thanks for passing this along.
    D. V. Hirst
    PS:  As a work around, I can highlight the entire CD worth of tracks and edit the common information in the Get Info function at that level...  Still, iTunes should not be throwing program failure exceptions in any case.  It is especially annoying on such common functions.  One might have expected a more thorough testing program prior to general release.
    DVH

    Thanks for your response. I attempted to do that, but I couldn't find any way to access the configuration for the Zhone router. Typing the IP address into my web browser's address bar only resulted in "page could not be found" or "page timed out", etc. I called tech support at Northstate, who likewise suggested that the Zhone router should be set to bridge mode and the AEBS set to router mode since it would be easier for me to configure the AirPort. After wrangling a bit with them over my inability to change any settings for the Zhone, they sent a technician over. He messed around with the Zhone, apparently putting it in bridge mode, and we managed to get the AirPort to work without any double NAT errors. I reset the AirPort and created a new configuration file. Unfortunately, when I went to the Advanced/Port Mapping menu and repeated the original steps to forward port 7777, tests at www.whatsmyip.org still returned "timed out". The technician said he wasn't knowledgable enough about Apple products to assist me any further and suggested I call their tech support or visit the nearest Genius Bar. So that's about it. Any other ideas?

  • ICal won't show or print calendar in 5 day per week view

    Even though I have checked the option under preferences to view my calendar with 5 days per week, it still shows on screen and prints with 7 days per week. Anyone have any ideas to remedy this?
    Thanks-
    Stacy

    yes there is a problem with the web view formerly published pages timing out. that I need answers to myself.
    regarding losing the option to publish in ical 4, what happened is when you upgraded your mobile me calendars it took all your published "on my mac " calendars and stored them at me.com which for now has no web view associated with them-they can only be shared by subscription.look at you ical and you'll see all your calendars now under [email protected] here's the work around:make sure her availability calendar is up to date. in ical go to file>new calendar>on my mac. give it the exact name of the one you had published. now select that calendar from me.com go to file>export-export the .ics file to the desktop-now go the your newly created "on my mac" calendar and import that file.-now with the "on my mac" calendar ical will allow you once again to publish. and if you kept the name exactly the same it should have the same web address-now if will only stop timing out!

  • VS 2005 Project is Broken after trying to register CR 2008 product

    I purchased CR 2008 last October, and of course, each time I load a project that has a report in VS 2005, I'm prompted to register the product.  Since I am dealing with another CR issue, I felt it was time that I register the product, and start a support case.
    So, I opened up my VS 2005 project, and in the product registration wizard, I clicked Next.  The radio button 'I want to register Now' was checked, and I clicked Next.  This opens up IE and takes me to a registration page where I need to enter my Product Key Code.  When I do this, and click Next, I ALWAYS get a page 'Product Registration - Step 2 of 3' that says Script timed out--indicating that the page timed out.
    So I basically decided to CANCEL the registration of the product.
    NOW, HOWEVER, my VS 2005 PROJECT HANGS when opened!!!
    I have to End the Program to close the project.  The next time I open the project, I get the following message:
    "An error was encountered while opening associated documents the last time this solution was loaded.  Document load is being skipped during this solution load in order to avoid that error".
    So, trying to register CR 2008 has broken my VS 2005 project.  It simply will not load all the documents in the project without hanging.  Is there a way to reset VS 2005 to avoid this issue?  I know that I reset the environment by running a program within VS 2005 a while back, but I can't remember how to do this.
    Thanks in advance for all replies.
    domls33

    Thanks for your reply.
    I finally fixed the issue described above, but it took a while.
    My projects load OK now, but only after doing the following:
    1)  Uninstall CR SP 2
    2)  Uninstall CR SP 1
    3)  Uninstall CR 2008
    4)  A couple of restarts along the way
    5)  Install CR 2008
    6)  Install CR SP 1
    7)  Install CR SP 2
    8)  At this point, there were still issues, so I repeated all the steps (i.e. removed all CR programs and then once again re-installed them all).
    9)  I also removed the CR SP 1 runtime which at some point, had been installed (way before step 1, above).
    10)  Oh, and I also removed the Version Manager, as well.
    Now, my project loads OK, EXCEPT:
    I now get a message when the project loads each and every CR report in my project:
    Crystal Reports ActiveX Designer
    This report was created with a version of Crystal Report which is later than the version you are running.  Some features used in the report may not be supported.
    OK.
    This is a little alarming, but given the problems I've had the past two days with CR, I may just ignore it.  I double-checked my included references in my Project.  Interestingly, I get the following:
    CrystalDecisions.CrystalReports.Engine .NET 12.0.2000.0
    CrystalDecisions.Enterprise.Framework .NET 12.0.1100.0
    CrystalDecisions.Enterprise.InfoStore .NET 12.0.1100.0
    CrystalDecisions.ReportSource .NET 12.0.2000.0
    CrystalDecisions.Shared .NET 12.0.2000.0
    CrystalDecisions.Windows.Forms .NET 12.0.2000.0
    However, I then removed all CrystalDecisions references from the project, and proceeded to add the new references by browsing for the new versions.  I verified that the versions in ...Common\4.0\managed\dotnet2\ were in fact version 12.2.0.290 which is the correct version # for SP2.  Sure enough, the file versions are correct.
    But, when I then browse and add each one back into the project, the versions are once again shown AS ABOVE (i.e. 12.0.2000.0).  Very strange!
    For now, I'll just live with this issue, supposing that the VS 2005 project version list is incorrect?
    domls33

  • Flex Spark DataGrid BUG skipping rows on refresh

    I have a small one file example that demonstrates this Flex DataGrid bug.
    I tried to report it to Flex bugs and the page timed out.
    I am filling a column in a spark datagrid with checkboxes to select that row.
    In the header of that column is a checkbox to select ALL the rows.
    However, the middle row is not getting refreshed so the display is wrong.
    The checkbox looks empty when the backing value is correct.
    I have added a print to the code that sets the values in the data and it is setting everyone.
    But when I print the isSelected code it is NOT being called on ONE (the middle) visible row.
    If I move away or scroll up and down the check box shows the check mark.
    So My only conclusion is that refresh has a bug.
    Here is the example that demonstrates the problem.
    Simply select the header checkbox and the 3rd checkbox does not get updated on refresh.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
              <fx:Script>
                        <![CDATA[
                                  import mx.collections.ArrayCollection;
                                  private static var values:Array = [
                                            {selected: false, position: 1},
                                            {selected: false, position: 2},
                                            {selected: false, position: 3},
                                            {selected: false, position: 4},
                                            {selected: false, position: 5}
                                  [Bindable]
                                  public static var datalist:ArrayCollection = new ArrayCollection( values );
                                  public static function updateDataList( value:Boolean ):void
                                            for each( var item:Object in datalist ) {
                                                      trace( "updated: " + item.position );
                                                      item.selected = value;
                                            datalist.refresh();
                        ]]>
              </fx:Script>
              <s:DataGrid dataProvider="{datalist}">
                        <s:columns>
                                  <s:ArrayList>
                                            <s:GridColumn dataField="position" width="200"/>
                                            <s:GridColumn width="34" >
                                                      <s:itemRenderer>
                                                                <fx:Component>
                                                                          <s:GridItemRenderer textAlign="center">
                                                                                    <fx:Script>
                                                                                              <![CDATA[
                                                                                                        private function changeSelection( data:Object, event:MouseEvent ):void
                                                                                                                  data.selected = ! data.selected;
                                                                                                        private function isSelected( data:Object ):Boolean
                                                                                                                  trace( "isSelected: " + data.position );
                                                                                                                  return data.selected;
                                                                                              ]]>
                                                                                    </fx:Script>
                                                                                    <s:layout>
                                                                                              <s:HorizontalLayout horizontalAlign="center" verticalAlign="middle"/>
                                                                                    </s:layout>
                                                                                    <s:CheckBox id="selbox" label="" selected="{isSelected(data)}"
                                                                                                                  click="changeSelection(data, event)"/>
                                                                          </s:GridItemRenderer>
                                                                </fx:Component>
                                                      </s:itemRenderer>
                                                      <s:headerRenderer>
                                                                <fx:Component>
                                                                          <s:GridItemRenderer height="30">
                                                                                    <fx:Script>
                                                                                              <![CDATA[
                                                                                                        [Bindable]
                                                                                                        private static var selectAll:Boolean = false;
                                                                                                        private function changeAllSelection( event:MouseEvent ):void
                                                                                                                  selectAll = ! selectAll;
                                                                                                                  Main.updateDataList( selectAll );
                                                                                              ]]>
                                                                                    </fx:Script>
                                                                                    <s:layout>
                                                                                              <s:VerticalLayout horizontalAlign="center" verticalAlign="middle"/>
                                                                                    </s:layout>
                                                                                    <s:CheckBox label="" selected="{selectAll}"
                                                                                                                  click="changeAllSelection(event)"/ >
                                                                          </s:GridItemRenderer>
                                                                </fx:Component>
                                                      </s:headerRenderer>
                                            </s:GridColumn>
                                  </s:ArrayList>
                        </s:columns>
              </s:DataGrid>
    </s:Application>
    Here is an image of the failed result... after selecting the top checkbox.
    Below is an image of the output produced by the two traces.
    Notice that the refresh has not called isSelected on the 3rd element.

    I have a small one file example that demonstrates this Flex DataGrid bug.
    I tried to report it to Flex bugs and the page timed out.
    I am filling a column in a spark datagrid with checkboxes to select that row.
    In the header of that column is a checkbox to select ALL the rows.
    However, the middle row is not getting refreshed so the display is wrong.
    The checkbox looks empty when the backing value is correct.
    I have added a print to the code that sets the values in the data and it is setting everyone.
    But when I print the isSelected code it is NOT being called on ONE (the middle) visible row.
    If I move away or scroll up and down the check box shows the check mark.
    So My only conclusion is that refresh has a bug.
    Here is the example that demonstrates the problem.
    Simply select the header checkbox and the 3rd checkbox does not get updated on refresh.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
              <fx:Script>
                        <![CDATA[
                                  import mx.collections.ArrayCollection;
                                  private static var values:Array = [
                                            {selected: false, position: 1},
                                            {selected: false, position: 2},
                                            {selected: false, position: 3},
                                            {selected: false, position: 4},
                                            {selected: false, position: 5}
                                  [Bindable]
                                  public static var datalist:ArrayCollection = new ArrayCollection( values );
                                  public static function updateDataList( value:Boolean ):void
                                            for each( var item:Object in datalist ) {
                                                      trace( "updated: " + item.position );
                                                      item.selected = value;
                                            datalist.refresh();
                        ]]>
              </fx:Script>
              <s:DataGrid dataProvider="{datalist}">
                        <s:columns>
                                  <s:ArrayList>
                                            <s:GridColumn dataField="position" width="200"/>
                                            <s:GridColumn width="34" >
                                                      <s:itemRenderer>
                                                                <fx:Component>
                                                                          <s:GridItemRenderer textAlign="center">
                                                                                    <fx:Script>
                                                                                              <![CDATA[
                                                                                                        private function changeSelection( data:Object, event:MouseEvent ):void
                                                                                                                  data.selected = ! data.selected;
                                                                                                        private function isSelected( data:Object ):Boolean
                                                                                                                  trace( "isSelected: " + data.position );
                                                                                                                  return data.selected;
                                                                                              ]]>
                                                                                    </fx:Script>
                                                                                    <s:layout>
                                                                                              <s:HorizontalLayout horizontalAlign="center" verticalAlign="middle"/>
                                                                                    </s:layout>
                                                                                    <s:CheckBox id="selbox" label="" selected="{isSelected(data)}"
                                                                                                                  click="changeSelection(data, event)"/>
                                                                          </s:GridItemRenderer>
                                                                </fx:Component>
                                                      </s:itemRenderer>
                                                      <s:headerRenderer>
                                                                <fx:Component>
                                                                          <s:GridItemRenderer height="30">
                                                                                    <fx:Script>
                                                                                              <![CDATA[
                                                                                                        [Bindable]
                                                                                                        private static var selectAll:Boolean = false;
                                                                                                        private function changeAllSelection( event:MouseEvent ):void
                                                                                                                  selectAll = ! selectAll;
                                                                                                                  Main.updateDataList( selectAll );
                                                                                              ]]>
                                                                                    </fx:Script>
                                                                                    <s:layout>
                                                                                              <s:VerticalLayout horizontalAlign="center" verticalAlign="middle"/>
                                                                                    </s:layout>
                                                                                    <s:CheckBox label="" selected="{selectAll}"
                                                                                                                  click="changeAllSelection(event)"/ >
                                                                          </s:GridItemRenderer>
                                                                </fx:Component>
                                                      </s:headerRenderer>
                                            </s:GridColumn>
                                  </s:ArrayList>
                        </s:columns>
              </s:DataGrid>
    </s:Application>
    Here is an image of the failed result... after selecting the top checkbox.
    Below is an image of the output produced by the two traces.
    Notice that the refresh has not called isSelected on the 3rd element.

  • Row lock contention on WWV_FLOW_DATA

    I'm hosting an APEX app on one of my Oracle servers
    Oracle 10.1.0.4.0
    APEX 3.0.0
    The users (and APEX developer) are complaining about slow performance. One of the primary reasons seems to be as a result of row lock contention. And as this is on an APEX table, I think it is fair to think that this is not a finger-up-nose mistake from the APEX developer.
    This is what I for example just saw some minutes ago. 3 APEX sessions running for application 103 and page 1 according to V$SESSION.
    Wait status for all 3 sessions (ticking over into many minutes) is:
    enq: TX - row lock contention
    The one session shows this SQL:
    INSERT INTO WWV_FLOW_DATA ( FLOW_INSTANCE, ITEM_ID, ITEM_VALUE )
    VALUES ( :B4 , :B3 , :B2 ||':'||:B1 ||':0:0')
    The other two sessions shows this SQL:
    UPDATE WWV_FLOW_DATA SET ITEM_VALUE = NVL(NVL(:B6 ,:B5 ),1)||':'
    || NVL(NVL(:B4 ,:B3 ),15)||':0:0' WHERE ITEM_ID = :B2 AND FLOW_I
    NSTANCE = :B1
    Fair to assume that all 3 are hitting the same row? (same flow instance and item?)
    I've done some searching and it seems that a lot of dead locks have been reported on similar APEX tables. Is this potentially the same underlaying issue, but with just slightly different symptoms?
    Some speculation... tabbed browsing is very common with Firefox. I often open multiple tabs on the same APEX app for different pages. What will the back-end impact be if this is done on the same page? Could it be that APEX expects a single-HTTP-request-at-a-time-from-a-web-session?
    What does not make sense though is why the update will show row lock contention, assuming all 3 hit the same row. The INSERT should when inserting a row with the same PK as that of an uncommitted inserted row of another session. But why would the UPDATEs in this scenario show row lock enqueues? The INSERT row enqueue points that the row has not yet been committed. If so, the 3rd session's UPDATE should return "no row found" and not be stuck on a row lock enqueue.. right?
    This does not make much sense to me.
    Any comments, suggestions, and ideas to troubleshoot and resolve this will be much appreciated.

    > When you and the APEX developer say "slow performance", have you ensured
    that this is not logic in the APEX application itself?
    The "slow performance" the APEX developer and users mention are usually pages timing out all together. There are no real heavy and complex SQLs executed to my knowledge (none I see on the server side). So I do not think it is an application SQL issue - besides, the "slow performance" on the back-end side, when reported, I seen as sessions spinning on enqueue TX locks.
    Not my APEX system so I'm not that familiar with it, but I had a quick look at it. The pages are relatively simplistic as there is no custom stuff (unlike some my APEX apps ;-) ).
    Also, this problem does not occur on a specific page, but intermittently on different pages.
    > were they all for the same APEX session emanating from the same client?
    Unsure.. I kind of expect these will have to be or else the SQL statement will be hitting a different flows row all together (which is why I speculated about the tabbed browser issue). Busy investigating this closer.
    >Have statistics been computed recently on the FLOWS_030000 schema?
    No. Interesting point as I've (very stupidly) never even considered running DBMS_STATS on the flows schema...
    What is interesting btw is that SQL is not static. The latest blocks (same event, same symptoms as described in my original posting) were on this SQL:
    UPDATE WWV_FLOW_PREFERENCES$ SET ATTRIBUTE_VALUE = :B5 WHERE USE
    R_ID = NVL(:B4 ,NVL(:B3 ,USER)) AND PREFERENCE_NAME = :B2 AND SE
    CURITY_GROUP_ID = :B1
    It also could be as a result of multiple sessions from the same web browser due to clicking a button/link more than once, or refreshing the browser without waiting at least a few seconds for a response.. (also, the fact that the browser is waiting for a response is not very visual/noticeable to the user)
    Am planning to spend some time on this issue tomorrow and will try and provide better technical feedback.
    If you have anything specific I can test from my side, please just shout Joel.

  • CSM - Stcky configurations

    What are the equivalent commands for CSM from CSS:
    advanced-balance ssl
    sticky-scrip-dstport
    I need to configure layer 4 or 5 stickiness on the CSM but I can not find the commands or examples.
    Any help I will appreciate.
    Thanks
    Loizos

    Gilles,
    Thanks for the response. The current CSS was using sticky-scrip and was not working well...pages timed out. After the stickiness changed to sticky-scrip-dstport evrything was working fast.
    We tried to migrate to CSM/SSL and used the sticky netmask command but it was slow when we tried access one VIP and then click on a link to go to another VIP (From portal to student VIP). We have to use some other stickiness. Not sure which one though.We also used persistence-rebalance.
    Thanks
    Loizos

  • Website performance

    I have been a GTE/Verizon customer for 16 years, and now I'm seriously considering changing to another carrier. The reason is the atricious performance of the Verizon Wireless website. As a developer of highly scalable web applications, I am appalled that Verizon continues to invest in the appearance nd window dressing of the site, but has shown no signs of addressing the fundamental poor performance.
    Today, I tried twice to order something from the site. Both times, the "confirm order" page timed out after several minutes, and so my order was lost. Does Verizon not care about sales? Do they not understand the seriousness of the problem? If Verizon sales and technical competence are this bad, why should I trust them to provide quaiity service for my mobile devices?
    Over the years, I have complained about this problem a couple of times, and I'm sure other have, as well. It seems that nobody is home, or paying attention. Building a commerce site of this complexity is not rocket science. If it is being done by an in-house development team, I suggest that Verizon fire the whole lot and start over. If it is being developed and maintained by some consulting firm, I suggest suing them for nonperformance and starting over. This is simply unacceptable.

    We apologize for the problems you are having with the web site. We appreciate your business as long time Verizon Wireless customer. We are committed to providing every customer with the best My Verizon browser experience.  We value your feedback and would like to hear from you on your ideas for improving the website. Please copy and paste the link below to your web address browser to send your suggestions. 
    http://www.verizonwireless.com/b2c/contact/index.jsp

Maybe you are looking for