Timeout on Submissions?

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Timeout on Submissions?

Ryan Puddephatt

Hi all,

            Is there a time out on submissions at all, I am using an submission[@replace=”instance”] which is running acceptably slow in firefox and showing the “Stop Script” error, clicking continue a couple of times shows the results.

 

The result in IE is the Unexpected response from server message, but the logging events show my XPL is still running. I wondered if there is a timeout or something sent back from the server? Is there anyway to disable this. I’m using a fairly recent build and this page/xpl had worked with an older build!

 

Thanks

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Timeout on Submissions?

Alessandro  Vernet
Administrator
Ryan,

You can't set a timeout at this point, but it wouldn't necessarily be
very hard to do. You could imagine additional attribute, like:
<xforms:submission xxforms:timeout="10000"> that would set a timeout
to 10 seconds. If the server does not respond in 10 seconds, you would
get an xforms-submit-error event.

Would that do the trick?

Alex

On 6/5/06, Ryan Puddephatt <[hidden email]> wrote:

>
>
>
>
> Hi all,
>
>             Is there a time out on submissions at all, I am using an
> submission[@replace="instance"] which is running acceptably slow in firefox
> and showing the "Stop Script" error, clicking continue a couple of times
> shows the results.
>
>
>
> The result in IE is the Unexpected response from server message, but the
> logging events show my XPL is still running. I wondered if there is a
> timeout or something sent back from the server? Is there anyway to disable
> this. I'm using a fairly recent build and this page/xpl had worked with an
> older build!
>
>
>
> Thanks
>
>
>
> Ryan
>
>
>
> Ryan Puddephatt
>
> Software Engineer
>
> TFX Group - IT UK
>
> 1 Michaelson Square
>
> Livingston
>
> West Lothian
>
> Scotand
>
> EH54 7DP
>
>
>
> * [hidden email]
>
> ( 01506 407 110
>
> 7  01506 407 108
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Timeout on Submissions?

Ryan Puddephatt
Alex,
        I don't really want to set a timeout for the submission, the reason
I asked is that I'm having problems with a submission that doesn't seem to
wait for the XPL to finish. Any idea why this would happen?

Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

>-----Original Message-----
>From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro
>Vernet
>Sent: 05 June 2006 21:28
>To: [hidden email]
>Subject: Re: [ops-users] Timeout on Submissions?
>
>Ryan,
>
>You can't set a timeout at this point, but it wouldn't necessarily be
>very hard to do. You could imagine additional attribute, like:
><xforms:submission xxforms:timeout="10000"> that would set a timeout
>to 10 seconds. If the server does not respond in 10 seconds, you would
>get an xforms-submit-error event.
>
>Would that do the trick?
>
>Alex
>
>On 6/5/06, Ryan Puddephatt <[hidden email]> wrote:
>>
>>
>>
>>
>> Hi all,
>>
>>             Is there a time out on submissions at all, I am using an
>> submission[@replace="instance"] which is running acceptably slow in
>firefox
>> and showing the "Stop Script" error, clicking continue a couple of times
>> shows the results.
>>
>>
>>
>> The result in IE is the Unexpected response from server message, but the
>> logging events show my XPL is still running. I wondered if there is a
>> timeout or something sent back from the server? Is there anyway to
>disable
>> this. I'm using a fairly recent build and this page/xpl had worked with
>an
>> older build!
>>
>>
>>
>> Thanks
>>
>>
>>
>> Ryan
>>
>>
>>
>> Ryan Puddephatt
>>
>> Software Engineer
>>
>> TFX Group - IT UK
>>
>> 1 Michaelson Square
>>
>> Livingston
>>
>> West Lothian
>>
>> Scotand
>>
>> EH54 7DP
>>
>>
>>
>> * [hidden email]
>>
>> ( 01506 407 110
>>
>> 7  01506 407 108
>>
>>
>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email]
>> mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>>
>>
>
>
>--
>Blog (XML, Web apps, Open Source):
>http://www.orbeon.com/blog/




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Timeout on Submissions?

Erik Bruchez
Administrator
Ryan,

You mean that the browser request times out?

How long does it take for it to time out?

-Erik

Ryan Puddephatt wrote:

> Alex,
> I don't really want to set a timeout for the submission, the reason
> I asked is that I'm having problems with a submission that doesn't seem to
> wait for the XPL to finish. Any idea why this would happen?
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
> TFX Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>  
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>  
>
>> -----Original Message-----
>> From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro
>> Vernet
>> Sent: 05 June 2006 21:28
>> To: [hidden email]
>> Subject: Re: [ops-users] Timeout on Submissions?
>>
>> Ryan,
>>
>> You can't set a timeout at this point, but it wouldn't necessarily be
>> very hard to do. You could imagine additional attribute, like:
>> <xforms:submission xxforms:timeout="10000"> that would set a timeout
>> to 10 seconds. If the server does not respond in 10 seconds, you would
>> get an xforms-submit-error event.
>>
>> Would that do the trick?
>>
>> Alex
>>
>> On 6/5/06, Ryan Puddephatt <[hidden email]> wrote:
>>>
>>>
>>>
>>> Hi all,
>>>
>>>             Is there a time out on submissions at all, I am using an
>>> submission[@replace="instance"] which is running acceptably slow in
>> firefox
>>> and showing the "Stop Script" error, clicking continue a couple of times
>>> shows the results.
>>>
>>>
>>>
>>> The result in IE is the Unexpected response from server message, but the
>>> logging events show my XPL is still running. I wondered if there is a
>>> timeout or something sent back from the server? Is there anyway to
>> disable
>>> this. I'm using a fairly recent build and this page/xpl had worked with
>> an
>>> older build!
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> Ryan
>>>
>>>
>>>
>>> Ryan Puddephatt
>>>
>>> Software Engineer
>>>
>>> TFX Group - IT UK
>>>
>>> 1 Michaelson Square
>>>
>>> Livingston
>>>
>>> West Lothian
>>>
>>> Scotand
>>>
>>> EH54 7DP
>>>
>>>
>>>
>>> * [hidden email]
>>>
>>> ( 01506 407 110
>>>
>>> 7  01506 407 108
>>>
>>>
>>>
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the [hidden email]
>>> mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>>
>>>
>>>
>>
>> --
>> Blog (XML, Web apps, Open Source):
>> http://www.orbeon.com/blog/
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Timeout on Submissions?

Alessandro  Vernet
Administrator
In reply to this post by Ryan Puddephatt
Ryan,

My fault: I misread your first email. First, I am wondering if the
"Stop Script" error Firefox is showing is really related to the XPL
taking a long time to respond, because while the Ajax request runs,
there is no JavaScript code running and so Firefox should not ask you
if you want to stop the script. Is the CPU heavily used by Firefox
before you get this message? If it is the case, that is a sign that
some JavaScript is actually taking a long time to execute.

Alex

On 6/6/06, Ryan Puddephatt <[hidden email]> wrote:

> Alex,
>         I don't really want to set a timeout for the submission, the reason
> I asked is that I'm having problems with a submission that doesn't seem to
> wait for the XPL to finish. Any idea why this would happen?
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
> TFX Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>
>
> >-----Original Message-----
> >From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro
> >Vernet
> >Sent: 05 June 2006 21:28
> >To: [hidden email]
> >Subject: Re: [ops-users] Timeout on Submissions?
> >
> >Ryan,
> >
> >You can't set a timeout at this point, but it wouldn't necessarily be
> >very hard to do. You could imagine additional attribute, like:
> ><xforms:submission xxforms:timeout="10000"> that would set a timeout
> >to 10 seconds. If the server does not respond in 10 seconds, you would
> >get an xforms-submit-error event.
> >
> >Would that do the trick?
> >
> >Alex
> >
> >On 6/5/06, Ryan Puddephatt <[hidden email]> wrote:
> >>
> >>
> >>
> >>
> >> Hi all,
> >>
> >>             Is there a time out on submissions at all, I am using an
> >> submission[@replace="instance"] which is running acceptably slow in
> >firefox
> >> and showing the "Stop Script" error, clicking continue a couple of times
> >> shows the results.
> >>
> >>
> >>
> >> The result in IE is the Unexpected response from server message, but the
> >> logging events show my XPL is still running. I wondered if there is a
> >> timeout or something sent back from the server? Is there anyway to
> >disable
> >> this. I'm using a fairly recent build and this page/xpl had worked with
> >an
> >> older build!
> >>
> >>
> >>
> >> Thanks
> >>
> >>
> >>
> >> Ryan
> >>
> >>
> >>
> >> Ryan Puddephatt
> >>
> >> Software Engineer
> >>
> >> TFX Group - IT UK
> >>
> >> 1 Michaelson Square
> >>
> >> Livingston
> >>
> >> West Lothian
> >>
> >> Scotand
> >>
> >> EH54 7DP
> >>
> >>
> >>
> >> * [hidden email]
> >>
> >> ( 01506 407 110
> >>
> >> 7  01506 407 108
> >>
> >>
> >>
> >>
> >>
> >> --
> >> You receive this message as a subscriber of the [hidden email]
> >> mailing list.
> >> To unsubscribe: mailto:[hidden email]
> >> For general help: mailto:[hidden email]?subject=help
> >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >>
> >>
> >>
> >
> >
> >--
> >Blog (XML, Web apps, Open Source):
> >http://www.orbeon.com/blog/
>
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Timeout on Submissions?

Ryan Puddephatt
Alex,
        It tends to appear as the information comes back from the XPL to be
handled by the OPS javascript, normally when there is quite a bit of
information

Thanks Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

>-----Original Message-----
>From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro
>Vernet
>Sent: 13 June 2006 20:00
>To: [hidden email]
>Subject: Re: [ops-users] Timeout on Submissions?
>
>Ryan,
>
>My fault: I misread your first email. First, I am wondering if the
>"Stop Script" error Firefox is showing is really related to the XPL
>taking a long time to respond, because while the Ajax request runs,
>there is no JavaScript code running and so Firefox should not ask you
>if you want to stop the script. Is the CPU heavily used by Firefox
>before you get this message? If it is the case, that is a sign that
>some JavaScript is actually taking a long time to execute.
>
>Alex
>
>On 6/6/06, Ryan Puddephatt <[hidden email]> wrote:
>> Alex,
>>         I don't really want to set a timeout for the submission, the
>reason
>> I asked is that I'm having problems with a submission that doesn't seem
>to
>> wait for the XPL to finish. Any idea why this would happen?
>>
>> Ryan
>>
>> Ryan Puddephatt
>> Software Engineer
>> TFX Group - IT UK
>> 1 Michaelson Square
>> Livingston
>> West Lothian
>> Scotand
>> EH54 7DP
>>
>> * [hidden email]
>> ( 01506 407 110
>> 7  01506 407 108
>>
>>
>> >-----Original Message-----
>> >From: [hidden email] [mailto:[hidden email]] On Behalf Of
>Alessandro
>> >Vernet
>> >Sent: 05 June 2006 21:28
>> >To: [hidden email]
>> >Subject: Re: [ops-users] Timeout on Submissions?
>> >
>> >Ryan,
>> >
>> >You can't set a timeout at this point, but it wouldn't necessarily be
>> >very hard to do. You could imagine additional attribute, like:
>> ><xforms:submission xxforms:timeout="10000"> that would set a timeout
>> >to 10 seconds. If the server does not respond in 10 seconds, you would
>> >get an xforms-submit-error event.
>> >
>> >Would that do the trick?
>> >
>> >Alex
>> >
>> >On 6/5/06, Ryan Puddephatt <[hidden email]> wrote:
>> >>
>> >>
>> >>
>> >>
>> >> Hi all,
>> >>
>> >>             Is there a time out on submissions at all, I am using an
>> >> submission[@replace="instance"] which is running acceptably slow in
>> >firefox
>> >> and showing the "Stop Script" error, clicking continue a couple of
>times
>> >> shows the results.
>> >>
>> >>
>> >>
>> >> The result in IE is the Unexpected response from server message, but
>the
>> >> logging events show my XPL is still running. I wondered if there is a
>> >> timeout or something sent back from the server? Is there anyway to
>> >disable
>> >> this. I'm using a fairly recent build and this page/xpl had worked
>with
>> >an
>> >> older build!
>> >>
>> >>
>> >>
>> >> Thanks
>> >>
>> >>
>> >>
>> >> Ryan
>> >>
>> >>
>> >>
>> >> Ryan Puddephatt
>> >>
>> >> Software Engineer
>> >>
>> >> TFX Group - IT UK
>> >>
>> >> 1 Michaelson Square
>> >>
>> >> Livingston
>> >>
>> >> West Lothian
>> >>
>> >> Scotand
>> >>
>> >> EH54 7DP
>> >>
>> >>
>> >>
>> >> * [hidden email]
>> >>
>> >> ( 01506 407 110
>> >>
>> >> 7  01506 407 108
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> You receive this message as a subscriber of the ops-
>[hidden email]
>> >> mailing list.
>> >> To unsubscribe: mailto:[hidden email]
>> >> For general help: mailto:[hidden email]?subject=help
>> >> ObjectWeb mailing lists service home page:
>http://www.objectweb.org/wws
>> >>
>> >>
>> >>
>> >
>> >
>> >--
>> >Blog (XML, Web apps, Open Source):
>> >http://www.orbeon.com/blog/
>>
>>
>>
>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email]
>mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>>
>>
>
>
>--
>Blog (XML, Web apps, Open Source):
>http://www.orbeon.com/blog/




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Timeout on Submissions?

Alessandro  Vernet
Administrator
Ryan,

OK, so it looks like the JavaScript code takes quite a bit of time to
process this information. I am sure there is certainly room for
improvement there, and it would help to have a case we can reproduce.
Does this happen on a specific page only? Is there something
particular about that page?

Alex

On 6/14/06, Ryan Puddephatt <[hidden email]> wrote:

> Alex,
>         It tends to appear as the information comes back from the XPL to be
> handled by the OPS javascript, normally when there is quite a bit of
> information
>
> Thanks Ryan
>
> Ryan Puddephatt
> Software Engineer
> TFX Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>
> >-----Original Message-----
> >From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro
> >Vernet
> >Sent: 13 June 2006 20:00
> >To: [hidden email]
> >Subject: Re: [ops-users] Timeout on Submissions?
> >
> >Ryan,
> >
> >My fault: I misread your first email. First, I am wondering if the
> >"Stop Script" error Firefox is showing is really related to the XPL
> >taking a long time to respond, because while the Ajax request runs,
> >there is no JavaScript code running and so Firefox should not ask you
> >if you want to stop the script. Is the CPU heavily used by Firefox
> >before you get this message? If it is the case, that is a sign that
> >some JavaScript is actually taking a long time to execute.
> >
> >Alex
> >
> >On 6/6/06, Ryan Puddephatt <[hidden email]> wrote:
> >> Alex,
> >>         I don't really want to set a timeout for the submission, the
> >reason
> >> I asked is that I'm having problems with a submission that doesn't seem
> >to
> >> wait for the XPL to finish. Any idea why this would happen?
> >>
> >> Ryan
> >>
> >> Ryan Puddephatt
> >> Software Engineer
> >> TFX Group - IT UK
> >> 1 Michaelson Square
> >> Livingston
> >> West Lothian
> >> Scotand
> >> EH54 7DP
> >>
> >> * [hidden email]
> >> ( 01506 407 110
> >> 7  01506 407 108
> >>
> >>
> >> >-----Original Message-----
> >> >From: [hidden email] [mailto:[hidden email]] On Behalf Of
> >Alessandro
> >> >Vernet
> >> >Sent: 05 June 2006 21:28
> >> >To: [hidden email]
> >> >Subject: Re: [ops-users] Timeout on Submissions?
> >> >
> >> >Ryan,
> >> >
> >> >You can't set a timeout at this point, but it wouldn't necessarily be
> >> >very hard to do. You could imagine additional attribute, like:
> >> ><xforms:submission xxforms:timeout="10000"> that would set a timeout
> >> >to 10 seconds. If the server does not respond in 10 seconds, you would
> >> >get an xforms-submit-error event.
> >> >
> >> >Would that do the trick?
> >> >
> >> >Alex
> >> >
> >> >On 6/5/06, Ryan Puddephatt <[hidden email]> wrote:
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> Hi all,
> >> >>
> >> >>             Is there a time out on submissions at all, I am using an
> >> >> submission[@replace="instance"] which is running acceptably slow in
> >> >firefox
> >> >> and showing the "Stop Script" error, clicking continue a couple of
> >times
> >> >> shows the results.
> >> >>
> >> >>
> >> >>
> >> >> The result in IE is the Unexpected response from server message, but
> >the
> >> >> logging events show my XPL is still running. I wondered if there is a
> >> >> timeout or something sent back from the server? Is there anyway to
> >> >disable
> >> >> this. I'm using a fairly recent build and this page/xpl had worked
> >with
> >> >an
> >> >> older build!
> >> >>
> >> >>
> >> >>
> >> >> Thanks
> >> >>
> >> >>
> >> >>
> >> >> Ryan
> >> >>
> >> >>
> >> >>
> >> >> Ryan Puddephatt
> >> >>
> >> >> Software Engineer
> >> >>
> >> >> TFX Group - IT UK
> >> >>
> >> >> 1 Michaelson Square
> >> >>
> >> >> Livingston
> >> >>
> >> >> West Lothian
> >> >>
> >> >> Scotand
> >> >>
> >> >> EH54 7DP
> >> >>
> >> >>
> >> >>
> >> >> * [hidden email]
> >> >>
> >> >> ( 01506 407 110
> >> >>
> >> >> 7  01506 407 108
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> You receive this message as a subscriber of the ops-
> >[hidden email]
> >> >> mailing list.
> >> >> To unsubscribe: mailto:[hidden email]
> >> >> For general help: mailto:[hidden email]?subject=help
> >> >> ObjectWeb mailing lists service home page:
> >http://www.objectweb.org/wws
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >> >--
> >> >Blog (XML, Web apps, Open Source):
> >> >http://www.orbeon.com/blog/
> >>
> >>
> >>
> >>
> >>
> >>
> >> --
> >> You receive this message as a subscriber of the [hidden email]
> >mailing list.
> >> To unsubscribe: mailto:[hidden email]
> >> For general help: mailto:[hidden email]?subject=help
> >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >>
> >>
> >>
> >
> >
> >--
> >Blog (XML, Web apps, Open Source):
> >http://www.orbeon.com/blog/
>
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Timeout on Submissions?

Ryan Puddephatt
Alex,

>OK, so it looks like the JavaScript code takes quite a bit of time to
>process this information. I am sure there is certainly room for
>improvement there, and it would help to have a case we can reproduce.

I'll get something sorted

>Does this happen on a specific page only?

Well it appears on pages where a lot of information comes back

>Is there something
>particular about that page?
>

Well not that I can tell, most of my pages have nested repeats, so it could
be that? I'll get a case together and try stripping it to see if I can
improve its performance in the code

Thanks

Ryan






--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Timeout on Submissions?

Larry T. Chen
In reply to this post by Ryan Puddephatt
Ryan,

I believe this is the same issue I was seeing when I posted the thread "Slowness in Javascript XForms Initialization Code"
Sorry I didn't realize you had the same issue, otherwise I would have continued the thread.

What I've found so far is that xformsInitializeControlsUnder() in xforms.js is taking a long time to run especially when your page has a large number of controls.
xformsInitializeControlsUnder() has to go through every element on the page that's relevant to XForms, so it's run time grows linearly with the size of your form.
On a form with approx 1500 lines of XForms source, I was getting the Firefox javascript timeout message which default to 5 seconds.

I was able to improve performance dramatically by commenting out the last line that calls xformsUpdateStyle() within the main loop of xformsInitializeControlsUnder().  Just by doing that the page initialization time improved 75%.  So far what I've found is that commenting out xformsUpdateStyle() breaks only the calendar control and the <xforms:help> floating popup; everything else seems to work fine.

Another thing I tried was to rewrite the hasClass() function in dom.js to not use regular expression matching.  That cut the run-time another 5% or so.

Erik indicated that there should be lot of room for optimization in the Javascript code. A bug was entered for this in the tracker http://forge.objectweb.org/tracker/index.php?func=detail&aid=305636&group_id=168&atid=350207
I suggest we bump up the priority of this issue so that it can be fixed by the 3.1 release.

Larry T. Chen
Software Engineer
Intelenet Communications, Inc.

Ryan Puddephatt wrote:
Alex,
	It tends to appear as the information comes back from the XPL to be
handled by the OPS javascript, normally when there is quite a bit of
information

Thanks Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 
  
-----Original Message-----
From: [hidden email] [[hidden email]] On Behalf Of Alessandro
Vernet
Sent: 13 June 2006 20:00
To: [hidden email]
Subject: Re: [ops-users] Timeout on Submissions?

Ryan,

My fault: I misread your first email. First, I am wondering if the
"Stop Script" error Firefox is showing is really related to the XPL
taking a long time to respond, because while the Ajax request runs,
there is no JavaScript code running and so Firefox should not ask you
if you want to stop the script. Is the CPU heavily used by Firefox
before you get this message? If it is the case, that is a sign that
some JavaScript is actually taking a long time to execute.

Alex

On 6/6/06, Ryan Puddephatt [hidden email] wrote:
    
Alex,
        I don't really want to set a timeout for the submission, the
      
reason
    
I asked is that I'm having problems with a submission that doesn't seem
      
to
    
wait for the XPL to finish. Any idea why this would happen?

Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP

* [hidden email]
( 01506 407 110
7  01506 407 108


      
-----Original Message-----
From: [hidden email] [[hidden email]] On Behalf Of
        
Alessandro
    
Vernet
Sent: 05 June 2006 21:28
To: [hidden email]
Subject: Re: [ops-users] Timeout on Submissions?

Ryan,

You can't set a timeout at this point, but it wouldn't necessarily be
very hard to do. You could imagine additional attribute, like:
<xforms:submission xxforms:timeout="10000"> that would set a timeout
to 10 seconds. If the server does not respond in 10 seconds, you would
get an xforms-submit-error event.

Would that do the trick?

Alex

On 6/5/06, Ryan Puddephatt [hidden email] wrote:
        


Hi all,

            Is there a time out on submissions at all, I am using an
submission[@replace="instance"] which is running acceptably slow in
          
firefox
        
and showing the "Stop Script" error, clicking continue a couple of
          
times
    
shows the results.



The result in IE is the Unexpected response from server message, but
          
the
    
logging events show my XPL is still running. I wondered if there is a
timeout or something sent back from the server? Is there anyway to
          
disable
        
this. I'm using a fairly recent build and this page/xpl had worked
          
with
    
an
        
older build!



Thanks



Ryan



Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP



* [hidden email]

( 01506 407 110

7  01506 407 108





--
You receive this message as a subscriber of the ops-
          
[hidden email]
    
mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page:
          
http://www.objectweb.org/wws
    

          
--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/
        




--
You receive this message as a subscriber of the [hidden email]
      
mailing list.
    
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



      
--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/
    



  

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Timeout on Submissions?

Larry T. Chen
Ryan,

Another thing I noticed you said you were doing a lot of nested repeats. I don't know if you were (like I was) using a lot of bind statements like
<xforms:bind nodeset="foo" relevant="count(following-sibling::foo) > 0"/> to enable insertion into empty nodesets which was the recommended way to do it in the OPS 3.0 documentation.

I just changed my forms to use the new @origin and @context attributes on <xforms:insert> to enable insertion into empty nodesets, and got rid of all the bind statements to hide the last element of a nodeset, and now the page loading time has improved dramatically.  It's down to about 1.8 seconds from 5.5 seconds (which caused the Firefox slow javascript warning).  So I suspect all those bind statements caused a lot of Javascript processing overhead.

Just wanted to share my new finding with everyone in case someone should run in to the same issue.

Larry T. Chen
Software Engineer
Intelenet Communications, Inc.



Larry T. Chen wrote:
Ryan,

I believe this is the same issue I was seeing when I posted the thread "Slowness in Javascript XForms Initialization Code"
Sorry I didn't realize you had the same issue, otherwise I would have continued the thread.

What I've found so far is that xformsInitializeControlsUnder() in xforms.js is taking a long time to run especially when your page has a large number of controls.
xformsInitializeControlsUnder() has to go through every element on the page that's relevant to XForms, so it's run time grows linearly with the size of your form.
On a form with approx 1500 lines of XForms source, I was getting the Firefox javascript timeout message which default to 5 seconds.

I was able to improve performance dramatically by commenting out the last line that calls xformsUpdateStyle() within the main loop of xformsInitializeControlsUnder().  Just by doing that the page initialization time improved 75%.  So far what I've found is that commenting out xformsUpdateStyle() breaks only the calendar control and the <xforms:help> floating popup; everything else seems to work fine.

Another thing I tried was to rewrite the hasClass() function in dom.js to not use regular expression matching.  That cut the run-time another 5% or so.

Erik indicated that there should be lot of room for optimization in the Javascript code. A bug was entered for this in the tracker http://forge.objectweb.org/tracker/index.php?func=detail&aid=305636&group_id=168&atid=350207
I suggest we bump up the priority of this issue so that it can be fixed by the 3.1 release.

Larry T. Chen
Software Engineer
Intelenet Communications, Inc.

Ryan Puddephatt wrote:
Alex,
	It tends to appear as the information comes back from the XPL to be
handled by the OPS javascript, normally when there is quite a bit of
information

Thanks Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 
  
-----Original Message-----
From: [hidden email] [[hidden email]] On Behalf Of Alessandro
Vernet
Sent: 13 June 2006 20:00
To: [hidden email]
Subject: Re: [ops-users] Timeout on Submissions?

Ryan,

My fault: I misread your first email. First, I am wondering if the
"Stop Script" error Firefox is showing is really related to the XPL
taking a long time to respond, because while the Ajax request runs,
there is no JavaScript code running and so Firefox should not ask you
if you want to stop the script. Is the CPU heavily used by Firefox
before you get this message? If it is the case, that is a sign that
some JavaScript is actually taking a long time to execute.

Alex

On 6/6/06, Ryan Puddephatt [hidden email] wrote:
    
Alex,
        I don't really want to set a timeout for the submission, the
      
reason
    
I asked is that I'm having problems with a submission that doesn't seem
      
to
    
wait for the XPL to finish. Any idea why this would happen?

Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP

* [hidden email]
( 01506 407 110
7  01506 407 108


      
-----Original Message-----
From: [hidden email] [[hidden email]] On Behalf Of
        
Alessandro
    
Vernet
Sent: 05 June 2006 21:28
To: [hidden email]
Subject: Re: [ops-users] Timeout on Submissions?

Ryan,

You can't set a timeout at this point, but it wouldn't necessarily be
very hard to do. You could imagine additional attribute, like:
<xforms:submission xxforms:timeout="10000"> that would set a timeout
to 10 seconds. If the server does not respond in 10 seconds, you would
get an xforms-submit-error event.

Would that do the trick?

Alex

On 6/5/06, Ryan Puddephatt [hidden email] wrote:
        

Hi all,

            Is there a time out on submissions at all, I am using an
submission[@replace="instance"] which is running acceptably slow in
          
firefox
        
and showing the "Stop Script" error, clicking continue a couple of
          
times
    
shows the results.



The result in IE is the Unexpected response from server message, but
          
the
    
logging events show my XPL is still running. I wondered if there is a
timeout or something sent back from the server? Is there anyway to
          
disable
        
this. I'm using a fairly recent build and this page/xpl had worked
          
with
    
an
        
older build!



Thanks



Ryan



Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP



* [hidden email]

( 01506 407 110

7  01506 407 108





--
You receive this message as a subscriber of the ops-
          
[hidden email]
    
mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page:
          
http://www.objectweb.org/wws
    
          
--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/
        



--
You receive this message as a subscriber of the [hidden email]
      
mailing list.
    
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



      
--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/
    



  

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws