Re: CF application ends prematurely in CFHTTP

2012-11-30 Thread Russ Michaels

If I recall there is optipn to throw error on timeout on some tags

Regards
Russ Michaels
www.michaels.me.uk
www.cfmldeveloper.com - Free CFML hosting for developers
www.cfsearch.com - CF search engine
On Nov 30, 2012 1:43 AM, Andrew Scott andr...@andyscott.id.au wrote:


 Well technically a timeout is an error, but it is ColdFusion throwing it
 because it can't run the page in the specified time, and is still not
 handled by cftry.

 --
 Regards,
 Andrew Scott
 WebSite: http://www.andyscott.id.au/
 Google+:  http://plus.google.com/113032480415921517411


 On Fri, Nov 30, 2012 at 12:30 PM, Russ Michaels r...@michaels.me.uk
 wrote:

 
  A timeout usually results in an error though.
 
  Regards
  Russ Michaels
  www.michaels.me.uk
  www.cfmldeveloper.com - Free CFML hosting for developers
  www.cfsearch.com - CF search engine
 
 


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353316
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF application ends prematurely in CFHTTP

2012-11-30 Thread Andrew Scott

I would be guessing this is a page time out, only because there seems to be
a number of cfhttp calls going on. I don't think page time outs fall into
the same category you're thinking Russ.

However I did a bit of research and found the following article by Ben
Nadel.

http://www.bennadel.com/blog/916-Graceful-ColdFusion-Timeout-Disaster-Recovery-Thanks-Barney-Boisvert-.htm

My guess is that one could reset the page time out using this method, so
for example if you know that all the cfhttp calls are going to take around
2-3 secs (Just pulling numbers here) then in theory before the loop moves
into its next iteration or at the beginning of the loop one could make sure
that the page time out is reset to 30 secs.

-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+:  http://plus.google.com/113032480415921517411


On Fri, Nov 30, 2012 at 7:17 PM, Russ Michaels r...@michaels.me.uk wrote:


 If I recall there is optipn to throw error on timeout on some tags

 Regards
 Russ Michaels
 www.michaels.me.uk
 www.cfmldeveloper.com - Free CFML hosting for developers
 www.cfsearch.com - CF search engine



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353317
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF application ends prematurely in CFHTTP

2012-11-30 Thread Claude Schnéegans

 I would be guessing this is a page time out, only because there seems to be
a number of cfhttp calls going on.

Right, the time required for the HTTP calls represents a high percentage of the 
total time in the loop, so chances the time limit occurs during the HTTP are 
high.

But I still don't see why CF cannot throw an error on a time limit in this case.
No error is catched, no error is reported and onRequestEnd is not executed.
IMO at least ONE of these three should occur.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353318
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF application ends prematurely in CFHTTP

2012-11-30 Thread Russ Michaels

Actually there is a setting in the cfadmin for a pagetodisplay on timeouts.

Regards
Russ Michaels
www.michaels.me.uk
www.cfmldeveloper.com - Free CFML hosting for developers
www.cfsearch.com - CF search engine
On Nov 30, 2012 3:51 PM,  wrote:


  I would be guessing this is a page time out, only because there seems
 to be
 a number of cfhttp calls going on.

 Right, the time required for the HTTP calls represents a high percentage
 of the total time in the loop, so chances the time limit occurs during the
 HTTP are high.

 But I still don't see why CF cannot throw an error on a time limit in this
 case.
 No error is catched, no error is reported and onRequestEnd is not executed.
 IMO at least ONE of these three should occur.


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353319
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF application ends prematurely in CFHTTP

2012-11-30 Thread Claude Schnéegans

 Actually there is a setting in the cfadmin for a pagetodisplay on timeouts.

Thanks. Didn't know that.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353320
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF application ends prematurely in CFHTTP

2012-11-30 Thread Andrew Scott

That is news to me...

-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+:  http://plus.google.com/113032480415921517411


On Sat, Dec 1, 2012 at 3:00 AM, Russ Michaels r...@michaels.me.uk wrote:


 Actually there is a setting in the cfadmin for a pagetodisplay on timeouts.

 Regards
 Russ Michaels
 www.michaels.me.uk
 www.cfmldeveloper.com - Free CFML hosting for developers
 www.cfsearch.com - CF search engine
 On Nov 30, 2012 3:51 PM,  wrote:

 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353321
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF application ends prematurely in CFHTTP

2012-11-29 Thread Claude Schnéegans

 it is because your dumping the
cfcatch which actually does contain the error that occurred.

I don't understand what you mean.
The dump never occurs, thus the error is not catched.

Anyway the problem was simply a time limit of 60 sec by default.
This is weird because exception type is Any by default, and it should catch 
timout exceptions.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353310
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF application ends prematurely in CFHTTP

2012-11-29 Thread Andrew Scott

Then that indicates that there is no error...

If it is not ending up in the catch, I think you will find that your not
thinking about this correctly.

-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+:  http://plus.google.com/113032480415921517411



On Fri, Nov 30, 2012 at 4:16 AM,  wrote:


  it is because your dumping the
 cfcatch which actually does contain the error that occurred.

 I don't understand what you mean.
 The dump never occurs, thus the error is not catched.

 Anyway the problem was simply a time limit of 60 sec by default.
 This is weird because exception type is Any by default, and it should
 catch timout exceptions.




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353311
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF application ends prematurely in CFHTTP

2012-11-29 Thread Claude Schnéegans

 Then that indicates that there is no error...

There was an error, a timeout error.
A far as I can remember, timeout errors were thrown, even while executing a 
CFHTTP request.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353312
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF application ends prematurely in CFHTTP

2012-11-29 Thread Andrew Scott

Timeout errors are ColdFusion problems, they are not captured by the cftry.

-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+:  http://plus.google.com/113032480415921517411


On Fri, Nov 30, 2012 at 11:35 AM,  wrote:


  Then that indicates that there is no error...

 There was an error, a timeout error.
 A far as I can remember, timeout errors were thrown, even while executing
 a CFHTTP request.


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353313
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF application ends prematurely in CFHTTP

2012-11-29 Thread Russ Michaels

A timeout usually results in an error though.

Regards
Russ Michaels
www.michaels.me.uk
www.cfmldeveloper.com - Free CFML hosting for developers
www.cfsearch.com - CF search engine
On Nov 30, 2012 12:42 AM, Andrew Scott andr...@andyscott.id.au wrote:


 Timeout errors are ColdFusion problems, they are not captured by the cftry.

 --
 Regards,
 Andrew Scott
 WebSite: http://www.andyscott.id.au/
 Google+:  http://plus.google.com/113032480415921517411


 On Fri, Nov 30, 2012 at 11:35 AM,  wrote:

 
   Then that indicates that there is no error...
 
  There was an error, a timeout error.
  A far as I can remember, timeout errors were thrown, even while executing
  a CFHTTP request.
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353314
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF application ends prematurely in CFHTTP

2012-11-29 Thread Andrew Scott

Well technically a timeout is an error, but it is ColdFusion throwing it
because it can't run the page in the specified time, and is still not
handled by cftry.

-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+:  http://plus.google.com/113032480415921517411


On Fri, Nov 30, 2012 at 12:30 PM, Russ Michaels r...@michaels.me.uk wrote:


 A timeout usually results in an error though.

 Regards
 Russ Michaels
 www.michaels.me.uk
 www.cfmldeveloper.com - Free CFML hosting for developers
 www.cfsearch.com - CF search engine




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353315
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF application ends prematurely in CFHTTP

2012-11-28 Thread Claude Schnéegans

Hi,
I have an application that reads pages in a loop using CFHTTP.
It works well, but when the number of pages read reaches some variable 
threshold,
the application seems to abort from inside the CFHTTP command.

Roughly, the code looks like this:

CFLOOP QUERY=getAddresses
CFTRY
CFOUTPUTOutput something 1/CFOUTPUT
CFHTTP URL=#getAddresses.address# METHOD=GET
   charset = iso8859-1 TIMEOUT=10
   CFCATCH
 CFDUMP var=#cfcatch#cfabort
   /CFCATCH
   /CFTRY
CFOUTPUTOutput something 2/CFOUTPUT
 ...
/CFLOOP


Before the loop ends, the browser receives the content of the page.
The last line shows Output something 1
so obviously the application exits from CFHTTP, but no error is thrown, and 
onRequestEnd.cfm is not called,
neither the template set in CFERROR.

It happens on differents visited sites, only when the number of requests exceed 
a couple of hundreds.
It is not an issue with the remote server deciding it gets too many requests,
if I add a sleep(2000) in the loop, the application ends after a much smaller 
number of loops, but about the same time amount.

I have other applications that take more time and work to the end with no 
problem.

Any hint ?


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353306
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF application ends prematurely in CFHTTP

2012-11-28 Thread Andrew Scott

No error will be shown, well actually it is because your dumping the
cfcatch which actually does contain the error that occurred.

-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+:  http://plus.google.com/113032480415921517411


On Thu, Nov 29, 2012 at 1:31 PM,  wrote:


 Hi,
 I have an application that reads pages in a loop using CFHTTP.
 It works well, but when the number of pages read reaches some variable
 threshold,
 the application seems to abort from inside the CFHTTP command.

 Roughly, the code looks like this:

 CFLOOP QUERY=getAddresses
 CFTRY
 CFOUTPUTOutput something 1/CFOUTPUT
 CFHTTP URL=#getAddresses.address# METHOD=GET
charset = iso8859-1 TIMEOUT=10
CFCATCH
  CFDUMP var=#cfcatch#cfabort
/CFCATCH
/CFTRY
 CFOUTPUTOutput something 2/CFOUTPUT
  ...
 /CFLOOP


 Before the loop ends, the browser receives the content of the page.
 The last line shows Output something 1
 so obviously the application exits from CFHTTP, but no error is thrown,
 and onRequestEnd.cfm is not called,
 neither the template set in CFERROR.

 It happens on differents visited sites, only when the number of requests
 exceed a couple of hundreds.
 It is not an issue with the remote server deciding it gets too many
 requests,
 if I add a sleep(2000) in the loop, the application ends after a much
 smaller number of loops, but about the same time amount.

 I have other applications that take more time and work to the end with no
 problem.

 Any hint ?


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353307
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm