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.htmlHOME | 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=falseHOME |
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
|