NNKL.COM
welcome to my space
X
Search:  
 HOME   1.1 -- transaction aborted loadexception
1.1 -- transaction aborted loadexception
Published by: smith 2009-01-07
Welcome to:nnkl.com

  • I'm trying to load a data store and the loadexception fires. I know the data it's trying to load takes a long time from the server, so i tried modified the timeout like below (partial code below.) Sometimes the exception fires and sometimes it doesn't, for the same ajax call (using the same parameters to call the datastore).


    // create the Data Store
    fileDs = new Ext.data.Store({
    // load using HTTP
    proxy: new Ext.data.HttpProxy({url: 'LoadData.aspx?action=test', timeout: 120000}),


    I debugged using firebug and the 3rd argument passed to the loadexception listener contains the statusText "transaction aborted."

    It's a little strange because right after the exception message appears, the console shows the expected json response for the dataset.

    I'm wondering if i'm setting the timeout correctly and what the transaction aborted message might indicate.

    thanks!


  • Thanks, I tried Jozef's suggestion

    proxy: new Ext.data.HttpProxy({url: 'LoadData.aspx?action=test', conn:{timeout: 120000}}),
    Apache/Tomcat::
    Tomcat again - load exception for jsp servlet on startup . monitor user activity and block/stop user perform transaction when we do maintenance.
    http://saloon.javaranch.com/forums/forum-056.html
    HOME
    microsoft.public.dotnet.languages.csharp::
    Different behaviour in DOtNet 1.1 and 2.0, Fabio Cannizzo; Retrieving an Image from a resource file, Re: Aborting a thread ?, Willy Denoyette [MVP]
    http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.languages.csharp/2006-01/
    HOME


    but still run into the error.

    Edit:
    I see this update, so i'll try it.
    http://extjs.com/forum/showthread.php?t=12797


  • Great, I made the change to the ext-all.js listed below

    Servlets.com Archives | struts-user::
    Can't start a cloned connection while in manual transaction mode. (4 messages) struts 1.1beta and resin - load exception, (2 messages)
    http://www.servlets.com/archive/servlet/SummarizeList?listName=struts-user&by=thread&count=148974&paged=false
    HOME
    http://extjs.com/forum/showthread.php?t=12797

    and used the original code and it works. Thanks everyone for your help.

    // create the Data Store
    fileDs = new Ext.data.Store({
    // load using HTTP
    proxy: new Ext.data.HttpProxy({url: 'LoadData.aspx?action=test', timeout: 120000
    // add other config options


  • Hi Jozef,

    I had a similar problem.... couldn't get timeout to be recognized. Can you give us a link to the docs you mention that describe a "conn" configuration option? I can't find any mention of it.

    In fact, if you look at the HttpProxy's documentation (http://extjs.com/deploy/ext/docs/output/Ext.Ajax.html), you'll see it refers you to the Ext.Ajax object to see the config options. Since Ext.Ajax inherits from Ext.data.Connection, the config options (http://extjs.com/deploy/ext/docs/output/Ext.data.Connection.html) imply that you use url: and timeout: on the same level in the object. I don't see a conn: parameter mentioned anywhere.

    - Jul

    Sorry, I've misled you. The conn is in fact argument to HttpProxy constructor, not config option.

    http://extjs.com/deploy/ext/docs/output/HttpProxy.jss.html


  • Try this:


    proxy: new Ext.data.HttpProxy({url: 'LoadData.aspx?action=test', conn:{timeout: 120000}})
    This should be correct as per doc, I haven't tried, however, I use timeout for Connection and it works.


  • Hi Jozef,

    I had a similar problem.... couldn't get timeout to be recognized. Can you give us a link to the docs you mention that describe a "conn" configuration option? I can't find any mention of it.

    In fact, if you look at the HttpProxy's documentation (http://extjs.com/deploy/ext/docs/output/Ext.Ajax.html), you'll see it refers you to the Ext.Ajax object to see the config options. Since Ext.Ajax inherits from Ext.data.Connection, the config options (http://extjs.com/deploy/ext/docs/output/Ext.data.Connection.html) imply that you use url: and timeout: on the same level in the object. I don't see a conn: parameter mentioned anywhere.

    - Jul





  • I Am a Sinner – What About You?
    Global Sourcing and Supplier Online by Dylan

    You are looking at:nnkl.com's 1.1 -- transaction aborted loadexception, click nnkl.com to home
  • pinto s suspension handed down by fifa
  • who will win the 2008 african cup of nations
  • what is your favorite soccer channel
  • who will win the english premiership
  • the 3rd place curse will it happend to turkey
  • how many times per year do you travel outside your hometown to see a game
  • who will win the 2007 mls cup
  • could a mid level team in one of the top leagues win the world cup
  • how important is population as a factor in building a world cup winning side
  • review who will win the uefa champions league 08 09
  • who will win mls cup 2006
  • forums
  • which top flight league s will you watch this season
  •  
  • defensive world cup left a sour taste
  • review best free kick takers in the world
  • which sport is your first love
  • are you a season ticket holder for your favorite soccer team
  • what teams will qualify for 2006
  • which mls team has surprised you the most so far
  • what are you most looking forward to in 2007
  • review best defender in europe
  • will chelsea win the english premiership again this season
  • review who will win the premier league 08 09
  • who s better paul scholes or deco
  • what is your preferred way of playing your game
  • which sport is your second love
  • fifa world player of the year 2002
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 nnkl.com        Site made:CFZ