CFERROR Handler
I have an exception error handler - type=exception error=any It mostly works... see http://www.austin-williams.com/_soft_error.cfm - this a bad var name; works as it should and sends me a dump. Now look here: http://www.austin-williams.com/_hard_error.cfm - this is bad cftag name; shows the error on screen. Any idea why the second error is not working with my error handler? Thanks Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_ ~| 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:353377 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFERROR Handler
ColdFusion can only route runtime errors to an error handler (your soft error). Compile errors (such as invalid tag names) can't be interpreted by ColdFusion and cause a hard error. Not much you can do about that. -Carl V. On 12/6/2012 8:39 AM, Robert Harrison wrote: I have an exception error handler - type=exception error=any It mostly works... see http://www.austin-williams.com/_soft_error.cfm - this a bad var name; works as it should and sends me a dump. Now look here: http://www.austin-williams.com/_hard_error.cfm - this is bad cftag name; shows the error on screen. Any idea why the second error is not working with my error handler? Thanks Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_ ~| 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:353379 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFERROR Handler
Search the HOF archives. I remember there is a thread about this topic. In brief, error handlers only capture runtime exceptions. That is a compile error, which happens before the code ever executes. So standard cfm error handlers cannot capture it. -Leigh ~| 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:353380 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFERROR Handler
Thanks all. That's enough for my needs. I'm actually troubleshooting a related problem, but had to understand this problem first. Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_williams -Original Message- From: Leigh [mailto:cfsearch...@yahoo.com] Sent: Thursday, December 06, 2012 11:55 AM To: cf-talk Subject: Re: CFERROR Handler Search the HOF archives. I remember there is a thread about this topic. In brief, error handlers only capture runtime exceptions. That is a compile error, which happens before the code ever executes. So standard cfm error handlers cannot capture it. -Leigh ~| 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:353381 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFERROR Handler
Seems to me if it generates an error which looks like a ColdFusion error then we should be able to display something other than that error. That is just a common security practice to NOT have debug information go out to the public. If ColdFusion isn't displaying the error, then what is Java? Steve -Original Message- From: Leigh [mailto:cfsearch...@yahoo.com] Sent: Thursday, December 06, 2012 11:55 AM To: cf-talk Subject: Re: CFERROR Handler Search the HOF archives. I remember there is a thread about this topic. In brief, error handlers only capture runtime exceptions. That is a compile error, which happens before the code ever executes. So standard cfm error handlers cannot capture it. -Leigh ~| 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:353382 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFERROR Handler
IIRC I think site wide error handlers can catch it. However, compile errors in prod applications is not the norm, since it would mean the code was never tested. -Leigh --- On Thu, 12/6/12, DURETTE, STEVEN J sd1...@att.com wrote: From: DURETTE, STEVEN J sd1...@att.com Subject: RE: CFERROR Handler To: cf-talk cf-talk@houseoffusion.com Date: Thursday, December 6, 2012, 4:59 PM Seems to me if it generates an error which looks like a ColdFusion error then we should be able to display something other than that error. That is just a common security practice to NOT have debug information go out to the public. If ColdFusion isn't displaying the error, then what is Java? Steve -Original Message- From: Leigh [mailto:cfsearch...@yahoo.com] Sent: Thursday, December 06, 2012 11:55 AM To: cf-talk Subject: Re: CFERROR Handler Search the HOF archives. I remember there is a thread about this topic. In brief, error handlers only capture runtime exceptions. That is a compile error, which happens before the code ever executes. So standard cfm error handlers cannot capture it. -Leigh ~| 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:353383 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFERROR Handler
Seems to me if it generates an error which looks like a ColdFusion error then we should be able to display something other than that error. That is just a common security practice to NOT have debug information go out to the public. You can! This is why every application should include multiple levels of error handling. Exception handling using CFTRY and the onError event handler can only trap runtime exceptions. If the program in question can't even compile, they do not have any effect. The CFERROR tag can handle compiler errors using TYPE=REQUEST, but nobody uses that any more as a rule. The site-wide error handler can handle compiler errors and runtime exceptions. Of course, you should not have compiler errors on a production site - ever. If you do, this indicates that you have deployed code to production WITHOUT EVER TESTING IT AT ALL. But you should still use the site-wide error handler as a last level of defense against anything that can go wrong. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| 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:353384 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFERROR Handler
Thank you all for the input. This was a simulation of the actual problem I'm trying to address and your help gave me what I needed. What I'm really trying to get fixed is server error that comes up in some situations; one of which is the sample hard-error page I posted. I just needed to give my server guy something to prove to him there was some configuration error. I made the hard-error come up on purpose in the sample I sent. The server I'm trying to get fixed is not showing the hard-error, it's crashing. I'm trying to get the crash fixed but needed to show this to him on a server that doesn't crash. Thanks, Robert Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_ ~| 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:353385 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFERROR Handler
I agree about testing everything before, but I do know people who have been hacked by files being uploaded and executed on their website. That is one way that bad code can get there. I wouldn't be surprised if people didn't do it on purpose just to get at the information that can be provided by debugging output. That's why at first I was confused about this. I didn't even think that the original poster wouldn't use the site-wide error handler. I was thinking that his problem was bypassing it. Sorry I misunderstood. -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Thursday, December 06, 2012 1:19 PM To: cf-talk Subject: Re: CFERROR Handler Seems to me if it generates an error which looks like a ColdFusion error then we should be able to display something other than that error. That is just a common security practice to NOT have debug information go out to the public. You can! This is why every application should include multiple levels of error handling. !--- snip --- Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| 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:353386 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cfmail doesn't work for cferror tag
Hi, In my application.cfm I have: cferror template=error.cfm type=exception exception=any In my error.cfm page I have some friendly text for end users and plus this: cfmail to=nathan.c...@cu.edu from=nathan.c...@cu.edu subject=CF Error Occurred: type=html Text for myself here. /cfmail I haven't even placed any #error.variable# insde the cfmail yet but the result is that error.cfm gets displayed but wouldn't send out email to me, and the mail.log on Admin doesn't record it. There is nothing in the mail spool folder either. If I take the above cfmail portion and place them in a separate cfm and run it, it does send out email. That means the connection between this CF server(CF 8) and my organization's mail server is ok. Can anyone tell me if there is a syntax error here? Nathan ~| 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:346792 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfmail doesn't work for cferror tag
I think cferror may be limited as to what you can put in the error template, my memory is quite rusty but I think this is to avoid you causing an error in the error template. how about if you set error.cfm as the default error template in the cfadmin, does it work then ? I know this method has no restrictions and you can do whatever you like in the error template. On Tue, Aug 16, 2011 at 7:51 PM, Nathan Chen nathan.c...@cu.edu wrote: Hi, In my application.cfm I have: cferror template=error.cfm type=exception exception=any In my error.cfm page I have some friendly text for end users and plus this: cfmail to=nathan.c...@cu.edu from=nathan.c...@cu.edu subject=CF Error Occurred: type=html Text for myself here. /cfmail I haven't even placed any #error.variable# insde the cfmail yet but the result is that error.cfm gets displayed but wouldn't send out email to me, and the mail.log on Admin doesn't record it. There is nothing in the mail spool folder either. If I take the above cfmail portion and place them in a separate cfm and run it, it does send out email. That means the connection between this CF server(CF 8) and my organization's mail server is ok. Can anyone tell me if there is a syntax error here? Nathan ~| 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:346801 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: cfmail doesn't work for cferror tag
Russ, Thanks for taking time to reply. The only thing I see on Admin (under Settings) is Missing Template Handler and Side-wide Error Handler. I am not sure if this is the right place that you were referring to? Or were you talking about another area I don't know? Nathan -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Tuesday, August 16, 2011 2:44 PM To: cf-talk Subject: Re: cfmail doesn't work for cferror tag I think cferror may be limited as to what you can put in the error template, my memory is quite rusty but I think this is to avoid you causing an error in the error template. how about if you set error.cfm as the default error template in the cfadmin, does it work then ? I know this method has no restrictions and you can do whatever you like in the error template. On Tue, Aug 16, 2011 at 7:51 PM, Nathan Chen nathan.c...@cu.edu wrote: Hi, In my application.cfm I have: cferror template=error.cfm type=exception exception=any In my error.cfm page I have some friendly text for end users and plus this: cfmail to=nathan.c...@cu.edu from=nathan.c...@cu.edu subject=CF Error Occurred: type=html Text for myself here. /cfmail I haven't even placed any #error.variable# insde the cfmail yet but the result is that error.cfm gets displayed but wouldn't send out email to me, and the mail.log on Admin doesn't record it. There is nothing in the mail spool folder either. If I take the above cfmail portion and place them in a separate cfm and run it, it does send out email. That means the connection between this CF server(CF 8) and my organization's mail server is ok. Can anyone tell me if there is a syntax error here? Nathan ~| 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:346804 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfmail doesn't work for cferror tag
yes that is correct, set the site wide error handler to error.cfm, the file must also exist in the default website that hosts the cfadmin ot it wont save. Russ On Tue, Aug 16, 2011 at 10:26 PM, Nathan Chen nathan.c...@cu.edu wrote: Russ, Thanks for taking time to reply. The only thing I see on Admin (under Settings) is Missing Template Handler and Side-wide Error Handler. I am not sure if this is the right place that you were referring to? Or were you talking about another area I don't know? Nathan -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Tuesday, August 16, 2011 2:44 PM To: cf-talk Subject: Re: cfmail doesn't work for cferror tag I think cferror may be limited as to what you can put in the error template, my memory is quite rusty but I think this is to avoid you causing an error in the error template. how about if you set error.cfm as the default error template in the cfadmin, does it work then ? I know this method has no restrictions and you can do whatever you like in the error template. On Tue, Aug 16, 2011 at 7:51 PM, Nathan Chen nathan.c...@cu.edu wrote: Hi, In my application.cfm I have: cferror template=error.cfm type=exception exception=any In my error.cfm page I have some friendly text for end users and plus this: cfmail to=nathan.c...@cu.edu from=nathan.c...@cu.edu subject=CF Error Occurred: type=html Text for myself here. /cfmail I haven't even placed any #error.variable# insde the cfmail yet but the result is that error.cfm gets displayed but wouldn't send out email to me, and the mail.log on Admin doesn't record it. There is nothing in the mail spool folder either. If I take the above cfmail portion and place them in a separate cfm and run it, it does send out email. That means the connection between this CF server(CF 8) and my organization's mail server is ok. Can anyone tell me if there is a syntax error here? Nathan ~| 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:346807 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cferror tag with type exception not working
In my local when i am using cferror tag with type as exception then it is showing proper error message etc but in production it is not working.type as request work there.But my goal of sending email to admin when error occurs is not full filling.I have searched on Google and every forum,though i have not get any solution.CF8. Do i need to make any changes in the web-inf folder etc..Any patch need to be installed? Operating system is windows 2003 Server IIS Coldfusion Version : CF8 Any idea? Please let me know if anybody have any resolution. ~| 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:343518 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cferror tag with type exception not working
trying setting the type to any and then it will show you the error and you will be able to see what the error type is, maybe a different error is occurring and it is not an exception type. On Mon, Apr 4, 2011 at 10:35 AM, Jay Pandya jaypandy...@gmail.com wrote: In my local when i am using cferror tag with type as exception then it is showing proper error message etc but in production it is not working.type as request work there.But my goal of sending email to admin when error occurs is not full filling.I have searched on Google and every forum,though i have not get any solution.CF8. Do i need to make any changes in the web-inf folder etc..Any patch need to be installed? Operating system is windows 2003 Server IIS Coldfusion Version : CF8 Any idea? Please let me know if anybody have any resolution. ~| 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:343526 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cferror tag with type exception not working
trying setting the type to any and then it will show you the error and you will be able to see what the error type is, maybe a different error is occurring and it is not an exception type. I all ready tried those things.If i put the type as exception and exception as any though,i am not getting error handling page.It is showing normal error page only. ~| 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:343532 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cferror tag with type exception not working
trying setting the type to any and then it will show you the error and you will be able to see what the error type is, maybe a different error is occurring and it is not an exception type. All ready tried with exception as any.But when i am using type as exception it is showing normal error page only.Not exception handling page. ~| 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:343533 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cferror tag with type exception not working
are you sure the error template you are pointing to exists at the path specified in the CFERROR tag, and does not contain any errors itself ? what happens if you browse directly to the error template ? On Mon, Apr 4, 2011 at 7:06 PM, Jay Pandya jaypandy...@gmail.com wrote: trying setting the type to any and then it will show you the error and you will be able to see what the error type is, maybe a different error is occurring and it is not an exception type. All ready tried with exception as any.But when i am using type as exception it is showing normal error page only.Not exception handling page. ~| 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:343534 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cferror / cfmail issue
We just upgraded to cf9 and my error handling is no longer working the way it used to. In my application.cfm I have: cferror type=request template=errorPage.cfm mailto=webmas...@wng.com and within errorPage.cfm I have: cfmail to=webmas...@wng.com from=webmas...@wng.com subject=InSite Error Log type=HTML server=#Variables.sEmailServer# Error:br cfdump var=#error# label=Error message Session:br cfdump var=#session# label=Session scopebr Client:br cfdump var=#client# label=Client scopebr Application:br cfdump var=#application# label=Application scopebr Request:br cfdump var=#request# label=Request scopebr Form:br cfdump var=#form# label=Form scopebr Url:br cfdump var=#url# label=URL scopebr Cookie:br cfdump var=#cookie# label=Cookie scopebr /cfmail The page error shows up fine with my error notice, BUT the cfmail section it just displays : Error: Session: Client: Application: Request: Form: Url: Cookie: Without the variables, and the email does not go out. Why would it display the code inside of the cfmail tags instead of sending?? All other cfmail tags work fine throughout the site. Thanks! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330229 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cferror / cfmail issue
What CF version were you on before this recent upgrade to CF9? Try changing the TYPE attribute in the CFError tag to type=exception, and see what happens. On Thu, Jan 28, 2010 at 2:41 PM, Tim Do t...@wng.com wrote: We just upgraded to cf9 and my error handling is no longer working the way it used to. In my application.cfm I have: cferror type=request template=errorPage.cfm mailto=webmas...@wng.com and within errorPage.cfm I have: cfmail to=webmas...@wng.com from=webmas...@wng.com subject=InSite Error Log type=HTML server=#Variables.sEmailServer# Error:br cfdump var=#error# label=Error message Session:br cfdump var=#session# label=Session scopebr Client:br cfdump var=#client# label=Client scopebr Application:br cfdump var=#application# label=Application scopebr Request:br cfdump var=#request# label=Request scopebr Form:br cfdump var=#form# label=Form scopebr Url:br cfdump var=#url# label=URL scopebr Cookie:br cfdump var=#cookie# label=Cookie scopebr /cfmail The page error shows up fine with my error notice, BUT the cfmail section it just displays : Error: Session: Client: Application: Request: Form: Url: Cookie: Without the variables, and the email does not go out. Why would it display the code inside of the cfmail tags instead of sending?? All other cfmail tags work fine throughout the site. Thanks! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330235 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cferror / cfmail issue
went from 7 to 9. I have both request and exception but still doesn't work. just looking through my logs again... I haven't received an error email in a few days so not sure it's related to the upgrade. I can't say my code is that solid, usually get a couple a day, so most likely this has not sent in a few days. any other ideas?? I tried wrapping the error info into cfsavecontent and still shows the error info and doesn't send. -Original Message- From: Qing Xia [mailto:txiasum...@gmail.com] Sent: Thursday, January 28, 2010 11:53 AM To: cf-talk Subject: Re: cferror / cfmail issue What CF version were you on before this recent upgrade to CF9? Try changing the TYPE attribute in the CFError tag to type=exception, and see what happens. On Thu, Jan 28, 2010 at 2:41 PM, Tim Do t...@wng.com wrote: We just upgraded to cf9 and my error handling is no longer working the way it used to. In my application.cfm I have: cferror type=request template=errorPage.cfm mailto=webmas...@wng.com and within errorPage.cfm I have: cfmail to=webmas...@wng.com from=webmas...@wng.com subject=InSite Error Log type=HTML server=#Variables.sEmailServer# Error:br cfdump var=#error# label=Error message Session:br cfdump var=#session# label=Session scopebr Client:br cfdump var=#client# label=Client scopebr Application:br cfdump var=#application# label=Application scopebr Request:br cfdump var=#request# label=Request scopebr Form:br cfdump var=#form# label=Form scopebr Url:br cfdump var=#url# label=URL scopebr Cookie:br cfdump var=#cookie# label=Cookie scopebr /cfmail The page error shows up fine with my error notice, BUT the cfmail section it just displays : Error: Session: Client: Application: Request: Form: Url: Cookie: Without the variables, and the email does not go out. Why would it display the code inside of the cfmail tags instead of sending?? All other cfmail tags work fine throughout the site. Thanks! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330236 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cferror / cfmail issue
When type=request, the error template is not supposed to contain any CFML tags, and you may only refer to a handful of special variables in the error scope. When you said you have both and request and exception values... did you mean you have two CFError tags in application.cfm, one with type=request and the other with type=exception? Maybe the type=exception template itself contained an error and never got to the mail generation part. To be sure, in your development environment: 1. Purposefully put in some wacky code to generate errors 2. For now, comment out the cferror type=request... 3. Try cfdump and cfabort in the type=exception error template, from top down, until you get to the CFMail tag. On Thu, Jan 28, 2010 at 2:56 PM, Tim Do t...@wng.com wrote: went from 7 to 9. I have both request and exception but still doesn't work. just looking through my logs again... I haven't received an error email in a few days so not sure it's related to the upgrade. I can't say my code is that solid, usually get a couple a day, so most likely this has not sent in a few days. any other ideas?? I tried wrapping the error info into cfsavecontent and still shows the error info and doesn't send. -Original Message- From: Qing Xia [mailto:txiasum...@gmail.com] Sent: Thursday, January 28, 2010 11:53 AM To: cf-talk Subject: Re: cferror / cfmail issue What CF version were you on before this recent upgrade to CF9? Try changing the TYPE attribute in the CFError tag to type=exception, and see what happens. On Thu, Jan 28, 2010 at 2:41 PM, Tim Do t...@wng.com wrote: We just upgraded to cf9 and my error handling is no longer working the way it used to. In my application.cfm I have: cferror type=request template=errorPage.cfm mailto=webmas...@wng.com and within errorPage.cfm I have: cfmail to=webmas...@wng.com from=webmas...@wng.com subject=InSite Error Log type=HTML server=#Variables.sEmailServer# Error:br cfdump var=#error# label=Error message Session:br cfdump var=#session# label=Session scopebr Client:br cfdump var=#client# label=Client scopebr Application:br cfdump var=#application# label=Application scopebr Request:br cfdump var=#request# label=Request scopebr Form:br cfdump var=#form# label=Form scopebr Url:br cfdump var=#url# label=URL scopebr Cookie:br cfdump var=#cookie# label=Cookie scopebr /cfmail The page error shows up fine with my error notice, BUT the cfmail section it just displays : Error: Session: Client: Application: Request: Form: Url: Cookie: Without the variables, and the email does not go out. Why would it display the code inside of the cfmail tags instead of sending?? All other cfmail tags work fine throughout the site. Thanks! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330238 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cferror / cfmail issue
so I put back both cferror tags one for request and one for exception. I forced a db error and I see the dump from the sendError page, but when I wrap a cfmail around it, I get nothing but the text from the errorPage. -Original Message- From: Qing Xia [mailto:txiasum...@gmail.com] Sent: Thursday, January 28, 2010 12:21 PM To: cf-talk Subject: Re: cferror / cfmail issue When type=request, the error template is not supposed to contain any CFML tags, and you may only refer to a handful of special variables in the error scope. When you said you have both and request and exception values... did you mean you have two CFError tags in application.cfm, one with type=request and the other with type=exception? Maybe the type=exception template itself contained an error and never got to the mail generation part. To be sure, in your development environment: 1. Purposefully put in some wacky code to generate errors 2. For now, comment out the cferror type=request... 3. Try cfdump and cfabort in the type=exception error template, from top down, until you get to the CFMail tag. On Thu, Jan 28, 2010 at 2:56 PM, Tim Do t...@wng.com wrote: went from 7 to 9. I have both request and exception but still doesn't work. just looking through my logs again... I haven't received an error email in a few days so not sure it's related to the upgrade. I can't say my code is that solid, usually get a couple a day, so most likely this has not sent in a few days. any other ideas?? I tried wrapping the error info into cfsavecontent and still shows the error info and doesn't send. -Original Message- From: Qing Xia [mailto:txiasum...@gmail.com] Sent: Thursday, January 28, 2010 11:53 AM To: cf-talk Subject: Re: cferror / cfmail issue What CF version were you on before this recent upgrade to CF9? Try changing the TYPE attribute in the CFError tag to type=exception, and see what happens. On Thu, Jan 28, 2010 at 2:41 PM, Tim Do t...@wng.com wrote: We just upgraded to cf9 and my error handling is no longer working the way it used to. In my application.cfm I have: cferror type=request template=errorPage.cfm mailto=webmas...@wng.com and within errorPage.cfm I have: cfmail to=webmas...@wng.com from=webmas...@wng.com subject=InSite Error Log type=HTML server=#Variables.sEmailServer# Error:br cfdump var=#error# label=Error message Session:br cfdump var=#session# label=Session scopebr Client:br cfdump var=#client# label=Client scopebr Application:br cfdump var=#application# label=Application scopebr Request:br cfdump var=#request# label=Request scopebr Form:br cfdump var=#form# label=Form scopebr Url:br cfdump var=#url# label=URL scopebr Cookie:br cfdump var=#cookie# label=Cookie scopebr /cfmail The page error shows up fine with my error notice, BUT the cfmail section it just displays : Error: Session: Client: Application: Request: Form: Url: Cookie: Without the variables, and the email does not go out. Why would it display the code inside of the cfmail tags instead of sending?? All other cfmail tags work fine throughout the site. Thanks! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330240 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cferror / cfmail issue
so I put back both cferror tags one for request and one for exception. I forced a db error and I see the dump from the sendError page, but when I wrap a cfmail around it, I get nothing but the text from the errorPage. -Original Message- From: Qing Xia [mailto:txiasum...@gmail.com] Sent: Thursday, January 28, 2010 12:21 PM To: cf-talk Subject: Re: cferror / cfmail issue When type=request, the error template is not supposed to contain any CFML tags, and you may only refer to a handful of special variables in the error scope. When you said you have both and request and exception values... did you mean you have two CFError tags in application.cfm, one with type=request and the other with type=exception? Maybe the type=exception template itself contained an error and never got to the mail generation part. To be sure, in your development environment: 1. Purposefully put in some wacky code to generate errors 2. For now, comment out the cferror type=request... 3. Try cfdump and cfabort in the type=exception error template, from top down, until you get to the CFMail tag. On Thu, Jan 28, 2010 at 2:56 PM, Tim Do t...@wng.com wrote: went from 7 to 9. I have both request and exception but still doesn't work. just looking through my logs again... I haven't received an error email in a few days so not sure it's related to the upgrade. I can't say my code is that solid, usually get a couple a day, so most likely this has not sent in a few days. any other ideas?? I tried wrapping the error info into cfsavecontent and still shows the error info and doesn't send. -Original Message- From: Qing Xia [mailto:txiasum...@gmail.com] Sent: Thursday, January 28, 2010 11:53 AM To: cf-talk Subject: Re: cferror / cfmail issue What CF version were you on before this recent upgrade to CF9? Try changing the TYPE attribute in the CFError tag to type=exception, and see what happens. On Thu, Jan 28, 2010 at 2:41 PM, Tim Do t...@wng.com wrote: We just upgraded to cf9 and my error handling is no longer working the way it used to. In my application.cfm I have: cferror type=request template=errorPage.cfm mailto=webmas...@wng.com and within errorPage.cfm I have: cfmail to=webmas...@wng.com from=webmas...@wng.com subject=InSite Error Log type=HTML server=#Variables.sEmailServer# Error:br cfdump var=#error# label=Error message Session:br cfdump var=#session# label=Session scopebr Client:br cfdump var=#client# label=Client scopebr Application:br cfdump var=#application# label=Application scopebr Request:br cfdump var=#request# label=Request scopebr Form:br cfdump var=#form# label=Form scopebr Url:br cfdump var=#url# label=URL scopebr Cookie:br cfdump var=#cookie# label=Cookie scopebr /cfmail The page error shows up fine with my error notice, BUT the cfmail section it just displays : Error: Session: Client: Application: Request: Form: Url: Cookie: Without the variables, and the email does not go out. Why would it display the code inside of the cfmail tags instead of sending?? All other cfmail tags work fine throughout the site. Thanks! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330241 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cferror / cfmail issue
so I put back both cferror tags one for request and one for exception. I forced a db error and I see the dump from the sendError page, but when I wrap a cfmail around it, I get nothing but the text from the errorPage. -Original Message- From: Qing Xia [mailto:txiasum...@gmail.com] Sent: Thursday, January 28, 2010 12:21 PM To: cf-talk Subject: Re: cferror / cfmail issue When type=request, the error template is not supposed to contain any CFML tags, and you may only refer to a handful of special variables in the error scope. When you said you have both and request and exception values... did you mean you have two CFError tags in application.cfm, one with type=request and the other with type=exception? Maybe the type=exception template itself contained an error and never got to the mail generation part. To be sure, in your development environment: 1. Purposefully put in some wacky code to generate errors 2. For now, comment out the cferror type=request... 3. Try cfdump and cfabort in the type=exception error template, from top down, until you get to the CFMail tag. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330242 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cferror / cfmail issue
What does your sendError page look like? Same as quoted in your first email? If so, do a dump on #variables#. I wonder if CFMail is not liking the mail server attribute. Also put in a simple cfmail tag in the sendError file to generate an email to yourself. Does that email go out correctly? Oh, and check your mail spool folder--has anything got stuck there? On Thu, Jan 28, 2010 at 4:09 PM, Tim Do t...@wng.com wrote: so I put back both cferror tags one for request and one for exception. I forced a db error and I see the dump from the sendError page, but when I wrap a cfmail around it, I get nothing but the text from the errorPage. -Original Message- From: Qing Xia [mailto:txiasum...@gmail.com] Sent: Thursday, January 28, 2010 12:21 PM To: cf-talk Subject: Re: cferror / cfmail issue When type=request, the error template is not supposed to contain any CFML tags, and you may only refer to a handful of special variables in the error scope. When you said you have both and request and exception values... did you mean you have two CFError tags in application.cfm, one with type=request and the other with type=exception? Maybe the type=exception template itself contained an error and never got to the mail generation part. To be sure, in your development environment: 1. Purposefully put in some wacky code to generate errors 2. For now, comment out the cferror type=request... 3. Try cfdump and cfabort in the type=exception error template, from top down, until you get to the CFMail tag. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330243 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cferror / cfmail issue
Since you say that the E-mail does not get sent I would assume you have an error in your error handler. Try simplifying the error E-mail to send hello world to see if that works. If that works, build up the code incrementally until it breaks. Check all your log files to get hints on what the secondary error is. The suggestions made by Qing Xia seem good. -Mike Chabot On Thu, Jan 28, 2010 at 2:41 PM, Tim Do t...@wng.com wrote: We just upgraded to cf9 and my error handling is no longer working the way it used to. In my application.cfm I have: cferror type=request template=errorPage.cfm mailto=webmas...@wng.com and within errorPage.cfm I have: cfmail to=webmas...@wng.com from=webmas...@wng.com subject=InSite Error Log type=HTML server=#Variables.sEmailServer# Error:br cfdump var=#error# label=Error message Session:br cfdump var=#session# label=Session scopebr Client:br cfdump var=#client# label=Client scopebr Application:br cfdump var=#application# label=Application scopebr Request:br cfdump var=#request# label=Request scopebr Form:br cfdump var=#form# label=Form scopebr Url:br cfdump var=#url# label=URL scopebr Cookie:br cfdump var=#cookie# label=Cookie scopebr /cfmail The page error shows up fine with my error notice, BUT the cfmail section it just displays : Error: Session: Client: Application: Request: Form: Url: Cookie: Without the variables, and the email does not go out. Why would it display the code inside of the cfmail tags instead of sending?? All other cfmail tags work fine throughout the site. Thanks! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330244 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cferror / cfmail issue
thx, I'm not sure what is going on.. it started to work again after I reverted back to the original files before I started messing with it. WEIRD! Thanks guys! -Original Message- From: Mike Chabot [mailto:mcha...@gmail.com] Sent: Thursday, January 28, 2010 1:34 PM To: cf-talk Subject: Re: cferror / cfmail issue Since you say that the E-mail does not get sent I would assume you have an error in your error handler. Try simplifying the error E-mail to send hello world to see if that works. If that works, build up the code incrementally until it breaks. Check all your log files to get hints on what the secondary error is. The suggestions made by Qing Xia seem good. -Mike Chabot On Thu, Jan 28, 2010 at 2:41 PM, Tim Do t...@wng.com wrote: We just upgraded to cf9 and my error handling is no longer working the way it used to. In my application.cfm I have: cferror type=request template=errorPage.cfm mailto=webmas...@wng.com and within errorPage.cfm I have: cfmail to=webmas...@wng.com from=webmas...@wng.com subject=InSite Error Log type=HTML server=#Variables.sEmailServer# Error:br cfdump var=#error# label=Error message Session:br cfdump var=#session# label=Session scopebr Client:br cfdump var=#client# label=Client scopebr Application:br cfdump var=#application# label=Application scopebr Request:br cfdump var=#request# label=Request scopebr Form:br cfdump var=#form# label=Form scopebr Url:br cfdump var=#url# label=URL scopebr Cookie:br cfdump var=#cookie# label=Cookie scopebr /cfmail The page error shows up fine with my error notice, BUT the cfmail section it just displays : Error: Session: Client: Application: Request: Form: Url: Cookie: Without the variables, and the email does not go out. Why would it display the code inside of the cfmail tags instead of sending?? All other cfmail tags work fine throughout the site. Thanks! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330247 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cferror remove frames
Hello all! I have a custom page for errors and would like to know if it's possible to remove all frames from the page prior to displaying the error page? Currently I have an example where the error is being displayed in the header of a page (with no scrollbars, of course). I'd like to remove all frames prior to displaying the error page so it can be viewed full screen. Thanks! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324757 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cferror remove frames
You can't remove the frames without a page referesh, but you should be able to pull them all to zero width/height with JS to give the appearance of a full page. However, I'd generally recommend redirecting to a dedicated error page rather than showing errors inline. If you do that, just throw some frames busting code at the top and you're set. cheers, barneyb -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.com/ On Jul 21, 2009, at 7:00 AM, Mark McArthey wer...@hotmail.com wrote: Hello all! I have a custom page for errors and would like to know if it's possible to remove all frames from the page prior to displaying the error page? Currently I have an example where the error is being displayed in the header of a page (with no scrollbars, of course). I'd like to remove all frames prior to displaying the error page so it can be viewed full screen. Thanks! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324758 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cferror request and form.fieldnames
Hello all! I'm trying to generate a custom error page of type request and still obtain the form.fieldnames. Is it possible to get the information from the parent page once the error page has been called? Thanks! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324654 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cferror request and form.fieldnames
I'm trying to generate a custom error page of type request and still obtain the form.fieldnames. Is it possible to get the information from the parent page once the error page has been called? No, the Form scope is unavailable in an error page when you use TYPE=REQUEST. I would recommend that you reserve this for last-ditch error handling, and use TYPE=EXCEPTION and exception handling in addition; this will give you significantly more functionality. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324659 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
problem with cferror, trycatch and iis7
I have a couple issues with error trapping on our new server (CF801, x64 windows 2k8 and IIS7) Take a look at this code: cfset source = u:\classcreator\003\00700\1_5.jpg pcfoutputfile exists? #fileExists(source)#/cfoutput/p cftry cfx_imagecr3 getimageinfo=#source# cfdump var=#imagecr# cfcatch type=any cfdump var=#cfcatch# cfabort /cfcatch /cftry Pretty simple... it's not working, the cfx tag is causing an error, so it should do a dump of the cfcatch, right? Look what's happening... my error.cfm is still being run for some reason: http://www.saline1990.com/test.cfm So... #1 - why is my error.cfm being called and #2 - How did I get rid of all the crap that IIS is spewing when I *DO* want my error.cfm to run? I don't want that giant SERVER ERROR and 500 Internal Server Error banner. Thanks! -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderark ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320014 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: problem with cferror, trycatch and iis7
CF Admin - Server Settings - Settings - Enable HTTP status codes -Original Message- From: Rick Root [mailto:rick.r...@webworksllc.com] Sent: Monday, March 02, 2009 11:21 AM To: cf-talk Subject: problem with cferror, trycatch and iis7 I have a couple issues with error trapping on our new server (CF801, x64 windows 2k8 and IIS7) Take a look at this code: cfset source = u:\classcreator\003\00700\1_5.jpg pcfoutputfile exists? #fileExists(source)#/cfoutput/p cftry cfx_imagecr3 getimageinfo=#source# cfdump var=#imagecr# cfcatch type=any cfdump var=#cfcatch# cfabort /cfcatch /cftry Pretty simple... it's not working, the cfx tag is causing an error, so it should do a dump of the cfcatch, right? Look what's happening... my error.cfm is still being run for some reason: http://www.saline1990.com/test.cfm So... #1 - why is my error.cfm being called and #2 - How did I get rid of all the crap that IIS is spewing when I *DO* want my error.cfm to run? I don't want that giant SERVER ERROR and 500 Internal Server Error banner. Thanks! -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderark ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320015 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: problem with cferror, trycatch and iis7
On Mon, Mar 2, 2009 at 12:57 PM, Pat Wenke pwe...@uhlig.com wrote: CF Admin - Server Settings - Settings - Enable HTTP status codes That tells CF to send 500 errors instead of 200s. But that doesn't have anything to do with why my cftry/cfcatch is being ignored. -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderark ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320029 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: problem with cferror, trycatch and iis7
Either you don't have the tag installed / configured correctly, or it's the fact that you're running 64 bit. The com/allaire/cfx/CustomTag null gives it away. Contact efflare for the 64 bit version of imageCR3 (it now runs as a service). Don't forget to run the service under an account that has the appropriate permissions the files you'll be manipulating. -Original Message- From: Rick Root [mailto:rick.r...@webworksllc.com] Sent: Monday, March 02, 2009 11:21 AM To: cf-talk Subject: problem with cferror, trycatch and iis7 I have a couple issues with error trapping on our new server (CF801, x64 windows 2k8 and IIS7) Take a look at this code: cfset source = u:\classcreator\003\00700\1_5.jpg pcfoutputfile exists? #fileExists(source)#/cfoutput/p cftry cfx_imagecr3 getimageinfo=#source# cfdump var=#imagecr# cfcatch type=any cfdump var=#cfcatch# cfabort /cfcatch /cftry Pretty simple... it's not working, the cfx tag is causing an error, so it should do a dump of the cfcatch, right? Look what's happening... my error.cfm is still being run for some reason: http://www.saline1990.com/test.cfm So... #1 - why is my error.cfm being called and #2 - How did I get rid of all the crap that IIS is spewing when I *DO* want my error.cfm to run? I don't want that giant SERVER ERROR and 500 Internal Server Error banner. Thanks! -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderark ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320031 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: problem with cferror, trycatch and iis7
On Mon, Mar 2, 2009 at 3:40 PM, Pat Wenke pwe...@uhlig.com wrote: Either you don't have the tag installed / configured correctly, or it's the fact that you're running 64 bit. The com/allaire/cfx/CustomTag null gives it away. You seem to have misunderstood my problem. I'm not asking for help with why imagecr3 isn'tw orking (for what it's worth, I *AM* using the Java cfx_imagecr3 and the imagecr3 service, and the service is running as the local system account, which has permissions on the file in question). I've actually entered another thread about that... No, what I'm asking in this thread is why is my try/catch being ignored? Why isn't it CATCHING the error and dumping the cfcatch? Instead, it's running my error.cfm. -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderar ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320032 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: problem with cferror, trycatch and iis7
It would appear that CF is unable to catch the error generated by the cfx tag. I tried something simpler, like this: cfset source = u:\classcreator\003\00700\1_5.jpg pcfoutputfile exists? #fileExists(source)#/cfoutput/p cftry !-- bar is not defined -- cfset foo = bar cfdump var=#foo# cfcatch type=any cfdump var=#cfcatch# cfabort /cfcatch /cftry And it caught the error just fine. That makes me feel a little better, I can't have things bypassing my try/catch code! Rick ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320033 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: problem with cferror, trycatch and iis7
Two thoughts on that: 1. Because the type of error being thrown and what types of errors your error.cfm handles. 2. It's an unhandled exception in ColdFusion itself (com/allaire/cfx/CustomTag null), so CF error handling is never invoked. -Original Message- From: Rick Root [mailto:rick.r...@webworksllc.com] Sent: Monday, March 02, 2009 3:17 PM To: cf-talk Subject: Re: problem with cferror, trycatch and iis7 On Mon, Mar 2, 2009 at 3:40 PM, Pat Wenke pwe...@uhlig.com wrote: Either you don't have the tag installed / configured correctly, or it's the fact that you're running 64 bit. The com/allaire/cfx/CustomTag null gives it away. You seem to have misunderstood my problem. I'm not asking for help with why imagecr3 isn'tw orking (for what it's worth, I *AM* using the Java cfx_imagecr3 and the imagecr3 service, and the service is running as the local system account, which has permissions on the file in question). I've actually entered another thread about that... No, what I'm asking in this thread is why is my try/catch being ignored? Why isn't it CATCHING the error and dumping the cfcatch? Instead, it's running my error.cfm. -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderar ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320037 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cferror question
I'm setting up a cferror template that collects the following info. INSERT INTO Errors(HTTPReferrer, Diags, Query, Page) VALUES ('#ERROR.HTTPReferer# ', '#Error.Diagnostics#', '#Error.QueryString#', '#ERROR.Template#') I'm getting a cf error saying that httpreferrer is undefined in error. Is there a setting in the cf administrator that I'm missing. I have it working on a different server. Thanks, John ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317544 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cferror question
IIRC HTTPReferer is a CGI variable as in CGI.HTTPReferer check the docs on what vars error returns. G! On Wed, Jan 7, 2009 at 2:49 PM, John P phasereve...@gmail.com wrote: I'm setting up a cferror template that collects the following info. INSERT INTO Errors(HTTPReferrer, Diags, Query, Page) VALUES ('#ERROR.HTTPReferer# ', '#Error.Diagnostics#', '#Error.QueryString#', '#ERROR.Template#') I'm getting a cf error saying that httpreferrer is undefined in error. Is there a setting in the cf administrator that I'm missing. I have it working on a different server. Thanks, John ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317548 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cferror question
Thanks G. IIRC HTTPReferer is a CGI variable as in CGI.HTTPReferer check the docs on what vars error returns. G! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317550 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cferror wont fire on syntax problems
I have the following catch-all cferror in place on my application.cfm: cferror type=EXCEPTION exception=any template=/error/index.cfm mailto=[EMAIL PROTECTED] cferror type=REQUEST template=/error/index.cfm mailto=[EMAIL PROTECTED] However, If I run my test page with a bad cf syntax cfoutput#now(#/cfoutput, it still displays the default error display thrown by CF, and not my specified template. Any ideas, suggestions anyone? ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291118 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cferror wont fire on syntax problems
I'm not sure what version of CF you're running, however if its 7+ then I would look at moving over to Application.cfc, its far more comprehensive in a great many ways. You can then use the onError() method to handle any exceptions thrown, it's quite a bit cleaner. Rob -Original Message- From: Michael E. Carluen [mailto:[EMAIL PROTECTED] Sent: 15 October 2007 16:25 To: CF-Talk Subject: cferror wont fire on syntax problems I have the following catch-all cferror in place on my application.cfm: cferror type=EXCEPTION exception=any template=/error/index.cfm mailto=[EMAIL PROTECTED] cferror type=REQUEST template=/error/index.cfm mailto=[EMAIL PROTECTED] However, If I run my test page with a bad cf syntax cfoutput#now(#/cfoutput, it still displays the default error display thrown by CF, and not my specified template. Any ideas, suggestions anyone? ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291124 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CFERROR causing problem?
Dear all, I have a site on shared hosting at CrystalTech that I just moved from a CF7 server to CF8 server, and suddenly there have been a few dozen being thrown each day from various diverse scripts within the site when a cfquery makes a call to the MySQL database. This is all the same code throughout that was previously running with no problem on the CF7 server (there were perhaps one or two error a week, typically timeouts in a cfquery call). On those pages where the error was trapped by cfcatch, the error message is: A java.lang.NullPointerException exception occurred. The line number referred to in the cfcatch.tagcontext dump in every case was the cfquery, and, when the query had a WHERE clause, the specific line number of the WHERE clause On those pages where the error was trapped by cferror, the error.Diagnosticsreported this: null null brThe error occurred on line 17. The line number referred to in every case was the cfquery, and, when the query had a WHERE clause, the specific line number of the WHERE clause. (I think there is known bug in cferror that returns null null when there is a java Null Pointer Exception, which is of course another issue altogether). I of course don't see the error exception log, but a CrystalTech support staffer showed me one of the errors and the error was logged as jrpp-180, which I believe is a timeout error. However, one of the techs at CrystalTech is suggesting that the entire problem may be CAUSED by the presence of the cferror system. Has anyone ever heard of this? It would be very mysterious to me, because: 1. This is the same code that was working fine on the prior (CF7) server; 2. I have about 30 web sites at CrystalTech, all using cferror handling, without any similar problems; 3. The above includes one other CF8 site that gets significant traffic, has the same kind of cferror system, and is not throwing these errors. Thanks in advance for any insights into this issue, James Edmunds -- James Edmunds New Iberia, LA http://jamesedmunds.com/poorclio ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287795 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Overriding CFERROR on a Timeout
As some other developers noted, Verisign went down over the weekend and at a VERY inopportune time. While the error script I had in place notified me of the issue and I was able to address it, I want to expand the site's capabilities to handle any future timeout and non-response issues when dealing with Verisign. Currently, I use a standard error template to handle any exceptions defined via a standard call to: cferror type=EXCEPTION template=error.cfm mailto=#request.notify# The error.cfm template in turn: - Logs an entry into the application log - Does a standard CFCATCH type=Any - Sends me an email - Presents a nice error page to the user In this specific situation, ColdFusion timed out (not Verisign) so the CF error trapper caught that exception and presented the user with a nice error page. What I want to do is take it a step further so that if my Verisign call times out, I can override the handling of the ColdFusion timeout error, set a flag letting the script know that the request timed out, let the script continue processing and save the order in a Not Authorized status. This would allow the order to go through (thus not losing a sale) and our customer service team to process the transaction manually. I *only* want to do this for a CF timeout and on this specific page. Any other exceptions would still be handled by the error.cfm template. I'm not quite sure how to do it and was hoping to get some guidance. Thanks, Rey... ~| ColdFusion MX7 and Flex 2 Build sales marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270224 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Overriding CFERROR on a Timeout
In this specific situation, ColdFusion timed out (not Verisign) so the CF error trapper caught that exception and presented the user with a nice error page. What I want to do is take it a step further so that if my Verisign call times out, I can override the handling of the ColdFusion timeout error, set a flag letting the script know that the request timed out, let the script continue processing and save the order in a Not Authorized status. This would allow the order to go through (thus not losing a sale) and our customer service team to process the transaction manually. I *only* want to do this for a CF timeout and on this specific page. Any other exceptions would still be handled by the error.cfm template. I'm not quite sure how to do it and was hoping to get some guidance. Wrap the call to Verisign in CFTRY, then deal with the problem using CFCATCH. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade see new features. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270227 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Overriding CFERROR on a Timeout
Hi Dave, Thats exactly what I had before but the error.cfm template still caught the issue. What I'd like to do is somehow prevent the error.cfm page from kicking in so that the rest of the script can continue and the user is oblivious to the timeout. Perhaps I need to trap for a specific exception? Rey Dave Watts wrote: Wrap the call to Verisign in CFTRY, then deal with the problem using CFCATCH. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! In this specific situation, ColdFusion timed out (not Verisign) so the CF error trapper caught that exception and presented the user with a nice error page. What I want to do is take it a step further so that if my Verisign call times out, I can override the handling of the ColdFusion timeout error, set a flag letting the script know that the request timed out, let the script continue processing and save the order in a Not Authorized status. This would allow the order to go through (thus not losing a sale) and our customer service team to process the transaction manually. I *only* want to do this for a CF timeout and on this specific page. Any other exceptions would still be handled by the error.cfm template. I'm not quite sure how to do it and was hoping to get some guidance. ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade see new features. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270230 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Overriding CFERROR on a Timeout
Thats exactly what I had before but the error.cfm template still caught the issue. What I'd like to do is somehow prevent the error.cfm page from kicking in so that the rest of the script can continue and the user is oblivious to the timeout. Perhaps I need to trap for a specific exception? You should certainly be as specific as possible within your exception handler. That said, your exception handler should trap and dispatch your exception before the CFERROR tag anyway. If it's not doing that, you probably have a logical error in your exception handling code. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270233 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Overriding CFERROR on a Timeout
Thanks again for the reply Dave. Replies below: You should certainly be as specific as possible within your exception handler. Let me be a bit more specific. In terms of a CF timeout, do you (or anyone reading) happen to know what exception code CF spits out? The types listed for CFCatch are: Application Database Template Security Object missingInclude Expression Lock Custom_type Any (default) There's also a host of Advanced Exception types which I won't list here since its a long list. I'm currently using Any for my CFCatch but I would like to narrow that down so I can explicityly trap for the timeout. That said, your exception handler should trap and dispatch your exception before the CFERROR tag anyway. If it's not doing that, you probably have a logical error in your exception handling code. To clarify, my page level error handling (CFTRY, CFCATCH, et al) is firing before the site wide error handler. I should've mentioned that before. What I would like is to completely prevent the default site wide error handler from kicking in as well during a ColdFusion timeout exception. So to summarize: If a *timeout* occurs on this *specific* .cfm page, then bypass the site-wide error handler completely and only use the CFTRY/CFCATCH code I have in place. In any other circumstance use the site-wide error handler. Rey... ~| ColdFusion MX7 and Flex 2 Build sales marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270241 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Overriding CFERROR on a Timeout
Let me be a bit more specific. In terms of a CF timeout, do you (or anyone reading) happen to know what exception code CF spits out? Is the page itself timing out, or something specific (like a CFHTTP call) timing out? I was assuming the latter - I honestly don't know how you'd deal with a page timeout here, since that's not an exception. In the case of a CFHTTP call, you'd set a TIMEOUT attribute. By itself, I'm not sure that would generate an exception - there is a THROWONERROR attribute, but I don't remember whether it'll cause timeouts to be caught - but you could try reading the return value of your CFHTTP call and catch the resultant error there. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270244 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Overriding CFERROR on a Timeout
The error is: Error,jrpp-65,02/19/07,10:36:59,HBC,The request has exceeded the allowable time limit Tag: cfmail brThe error occurred on line 1346., /purchase.cfm But the CFMail tag specified there isn't the culprit because I received the email alerts. Its the cfmail code thats included in the cfcatch to email me. And in the server.log file, I do see this: Warning,jrpp-65,02/19/07,10:36:59,,Thread: jrpp-65, processing template: x\purchase.cfm, completed in 63 seconds, exceeding the 30 second warning limit So I'm not sure if that may give you some more info to go on. Rey... Dave Watts wrote: Let me be a bit more specific. In terms of a CF timeout, do you (or anyone reading) happen to know what exception code CF spits out? Is the page itself timing out, or something specific (like a CFHTTP call) timing out? I was assuming the latter - I honestly don't know how you'd deal with a page timeout here, since that's not an exception. In the case of a CFHTTP call, you'd set a TIMEOUT attribute. By itself, I'm not sure that would generate an exception - there is a THROWONERROR attribute, but I don't remember whether it'll cause timeouts to be caught - but you could try reading the return value of your CFHTTP call and catch the resultant error there. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270248 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Overriding CFERROR on a Timeout
The error is: Error,jrpp-65,02/19/07,10:36:59,HBC,The request has exceeded the allowable time limit Tag: cfmail brThe error occurred on line 1346., /purchase.cfm But the CFMail tag specified there isn't the culprit because I received the email alerts. Its the cfmail code thats included in the cfcatch to email me. And in the server.log file, I do see this: Warning,jrpp-65,02/19/07,10:36:59,,Thread: jrpp-65, processing template: x\purchase.cfm, completed in 63 seconds, exceeding the 30 second warning limit So I'm not sure if that may give you some more info to go on. OK, that's going to be a bit more difficult, I think. That's not really an exception. It's just taking a long time. That said, the information here might let you catch an exception this way: http://www.houseoffusion.com/groups/CF-Talk/thread.cfm/threadid:31119#187058 In the code example there, the CFERROR tag is used to catch the timeout exception, and I don't know if a similar approach will work in an exception handler, because the exception applies to the entire page, I think. However, within the CFERROR page you point to, you could grab the GeneratedContent variable, display or parse the page contents created so far, then perform whatever steps you still need to perform. Ugly, but possible. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270273 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Overriding CFERROR on a Timeout
Thanks Dave. I'll check this out tomorrow. Rey Dave Watts wrote: The error is: Error,jrpp-65,02/19/07,10:36:59,HBC,The request has exceeded the allowable time limit Tag: cfmail brThe error occurred on line 1346., /purchase.cfm But the CFMail tag specified there isn't the culprit because I received the email alerts. Its the cfmail code thats included in the cfcatch to email me. And in the server.log file, I do see this: Warning,jrpp-65,02/19/07,10:36:59,,Thread: jrpp-65, processing template: x\purchase.cfm, completed in 63 seconds, exceeding the 30 second warning limit So I'm not sure if that may give you some more info to go on. OK, that's going to be a bit more difficult, I think. That's not really an exception. It's just taking a long time. That said, the information here might let you catch an exception this way: http://www.houseoffusion.com/groups/CF-Talk/thread.cfm/threadid:31119#187058 In the code example there, the CFERROR tag is used to catch the timeout exception, and I don't know if a similar approach will work in an exception handler, because the exception applies to the entire page, I think. However, within the CFERROR page you point to, you could grab the GeneratedContent variable, display or parse the page contents created so far, then perform whatever steps you still need to perform. Ugly, but possible. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Create Web Applications With ColdFusion MX7 Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270279 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
cferror on application.cfm not working (?)
Hi everyone. I am currently adding a basic custom error page on my app with the basic tags: cfsetting showDebugOutput=No cferror type=request template=error.cfm mailto=[EMAIL PROTECTED] on the application cfm On testing it however (by using a .cfm file name that does not exists), I still see the usual debug page with Error Occurred While Processing Request message and not the error.cfm. Any suggestions? Thanks in advance. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261511 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cferror on application.cfm not working (?)
On testing it however (by using a .cfm file name that does not exists), I still see the usual debug page with Error Occurred While Processing Request message and not the error.cfm. You'd need a missing template handler for that type of error. An error request template won't catch it. You'll need to create some type of code error to generate the error. But I'd create an exception handler as well. It'll catch most errors, then the request one kicks in if it doesn't. Will ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261515 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cferror on application.cfm not working (?)
cferror is for errors that occur within cfm files. To catch a 404 you are going to need to use your web server's error handling or use CF's Missing Template Handler. On 11/22/06, Michael E. Carluen [EMAIL PROTECTED] wrote: Hi everyone. I am currently adding a basic custom error page on my app with the basic tags: cfsetting showDebugOutput=No cferror type=request template=error.cfm mailto=[EMAIL PROTECTED] on the application cfm On testing it however (by using a .cfm file name that does not exists), I still see the usual debug page with Error Occurred While Processing Request message and not the error.cfm. Any suggestions? Thanks in advance. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261517 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cferror on application.cfm not working (?)
Michael, A template error is thrown before anything else. You'll need to handle those through your missing template handler - which you can set in the CFAdmin. Jon On Nov 22, 2006, at 3:58 PM, Michael E. Carluen wrote: On testing it however (by using a .cfm file name that does not exists), I still see the usual debug page with Error Occurred While Processing Request message and not the error.cfm. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261520 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cferror on application.cfm not working (?)
Oops didn't mean to dog pile on that response :-) I see Will and Ray already got it covered... On Nov 22, 2006, at 4:33 PM, Jon Clausen wrote: Michael, A template error is thrown before anything else. You'll need to handle those through your missing template handler - which you can set in the CFAdmin. Jon On Nov 22, 2006, at 3:58 PM, Michael E. Carluen wrote: On testing it however (by using a .cfm file name that does not exists), I still see the usual debug page with Error Occurred While Processing Request message and not the error.cfm. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261522 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cferror on application.cfm not working (?)
Thanks Ray, Will, Jon, For this app, I am currently using HMS on a shared server. This means I do not have access to the CF Administrator for setting the .cfm missing template handler. And HMS's (control panel) custom error template mgt only catches .htm missing templates. Can the missing template handler be programmatically done on application.cfm or anywhere else? I figure CF finds application.cfm before executing the actual requested page. (Pls correct me if I'm wrong.) Thanks again. Michael, A template error is thrown before anything else. You'll need to handle those through your missing template handler - which you can set in the CFAdmin. Jon ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261525 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cferror on application.cfm not working (?)
Unfortunately no. At least not as far as I know. On 11/22/06, Michael E. Carluen [EMAIL PROTECTED] wrote: Thanks Ray, Will, Jon, For this app, I am currently using HMS on a shared server. This means I do not have access to the CF Administrator for setting the .cfm missing template handler. And HMS's (control panel) custom error template mgt only catches .htm missing templates. Can the missing template handler be programmatically done on application.cfm or anywhere else? I figure CF finds application.cfm before executing the actual requested page. (Pls correct me if I'm wrong.) Thanks again. Michael, A template error is thrown before anything else. You'll need to handle those through your missing template handler - which you can set in the CFAdmin. Jon ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261528 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cferror on application.cfm not working (?)
Wouldn't App.cfm have to be called *after* the requested template -- because CF looks for App.cfm based on the location of the requested page (goes up the hierarchy relative to the requested page). So if the page is missing, it couldn't find App.cfm. Also, if you are on a shared server, isn't there just one missing template handler available to all the sites on the server? (Unless they are running separate instances of CF). So I would think this would preclude you from having your own special missing template handler. -- Josh - Original Message - From: Raymond Camden [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Wednesday, November 22, 2006 2:32 PM Subject: Re: cferror on application.cfm not working (?) Unfortunately no. At least not as far as I know. On 11/22/06, Michael E. Carluen [EMAIL PROTECTED] wrote: Thanks Ray, Will, Jon, For this app, I am currently using HMS on a shared server. This means I do not have access to the CF Administrator for setting the .cfm missing template handler. And HMS's (control panel) custom error template mgt only catches .htm missing templates. Can the missing template handler be programmatically done on application.cfm or anywhere else? I figure CF finds application.cfm before executing the actual requested page. (Pls correct me if I'm wrong.) Thanks again. Michael, A template error is thrown before anything else. You'll need to handle those through your missing template handler - which you can set in the CFAdmin. Jon ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261529 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cferror on application.cfm not working (?)
Thanks for confirming Ray. Anyway, I contacted HMS, and they were able to modify the server's IIS 404 settings to include .cfm templates. -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 22, 2006 2:33 PM To: CF-Talk Subject: Re: cferror on application.cfm not working (?) Unfortunately no. At least not as far as I know. On 11/22/06, Michael E. Carluen [EMAIL PROTECTED] wrote: Thanks Ray, Will, Jon, For this app, I am currently using HMS on a shared server. This means I do not have access to the CF Administrator for setting the .cfm missing template handler. And HMS's (control panel) custom error template mgt only catches .htm missing templates. Can the missing template handler be programmatically done on application.cfm or anywhere else? I figure CF finds application.cfm before executing the actual requested page. (Pls correct me if I'm wrong.) Thanks again. Michael, A template error is thrown before anything else. You'll need to handle those through your missing template handler - which you can set in the CFAdmin. Jon ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261530 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cferror on application.cfm not working (?)
CF can only have one missing template handler, and it can be used by all sites. So if they have set it as 404.cfm then all you have to do is create a 404.cfm in the root of your site. So just ask HMS what their settings are. Russ -Original Message- From: Michael E. Carluen [mailto:[EMAIL PROTECTED] Sent: 22 November 2006 22:15 To: CF-Talk Subject: RE: cferror on application.cfm not working (?) Thanks Ray, Will, Jon, For this app, I am currently using HMS on a shared server. This means I do not have access to the CF Administrator for setting the .cfm missing template handler. And HMS's (control panel) custom error template mgt only catches .htm missing templates. Can the missing template handler be programmatically done on application.cfm or anywhere else? I figure CF finds application.cfm before executing the actual requested page. (Pls correct me if I'm wrong.) Thanks again. Michael, A template error is thrown before anything else. You'll need to handle those through your missing template handler - which you can set in the CFAdmin. Jon ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261537 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Application.CFC onError function and the cferror tag.
I'm building my first real word application using the Application.cfc framework. I have an onError function built that dumps the error structure to a file and displays that file. This works well for my development. Now I want to build a custom error page for displaying user form validation errors. In the past I would have done this with a cferror type=validation... tag. How do I combine these two error handling strategies? Where would I put a cferror... tag in the application.cfc framework? Or do I handle this in the onError function somehow? Guidance would be appreciated before I start blind trial and error development. Thank You -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252434 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Application.CFC onError function and the cferror tag.
I've never used cferror for form checking. You wouldn't think it better to handle the form checking in the same file as the form? Thats just my opinion. Anyway - if you use onError, you can check the exception type. It should contain the information there if I had to guess. On 9/7/06, Ian Skinner [EMAIL PROTECTED] wrote: I'm building my first real word application using the Application.cfc framework. I have an onError function built that dumps the error structure to a file and displays that file. This works well for my development. Now I want to build a custom error page for displaying user form validation errors. In the past I would have done this with a cferror type=validation... tag. How do I combine these two error handling strategies? Where would I put a cferror... tag in the application.cfc framework? Or do I handle this in the onError function somehow? Guidance would be appreciated before I start blind trial and error development. Thank You -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252438 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFMail Throttling for CFerror handling
Thanks for the reply Matt. There are some useful nuggets of information the site you provided. Scott On 7/17/06, Matt Robertson [EMAIL PROTECTED] wrote: You can use cffile to store the error files to disk. I have a system that stores a small mountain of diagnostic info via dumping all existing scopes, but that has security implications. So instead I store the file to disk (as either a .cfm or a .html) where it can be viewed securely. For example store the files in a folder that is only accessible after you enter a password. Then, optionally, I email myself a simple uh oh email that says nothing but tells me I'd better check the error log. You can use a variety of logic to determine what that threshold can be. Next, use the server scope to log the date/time of the last error report. If it was within the last X minutes then don't send an email. If the interval you set has expired then it can send another. This will keep the info flowing without burying your mail server and causing an additional problem. Some details -- like how to dump all the scopes, save the files etc. is here: http://mysecretbase.com/Building_A_ColdFusion_Error_Handler.cfm There's also a tutorial on how to make a mail trickler but I don't think its applicable to your situation. HtH, -- [EMAIL PROTECTED] Janitor, MSB Web Systems mysecretbase.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246973 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CFMail Throttling for CFerror handling
Thanks in advance for any assistance. I am researching away to throttle the creation of email messages used to notify system admins when ColdFusion throws an error. We have had a problem of over-loading our exchange server when there is a database failure or some other error that effects a lot of users and our current error handling solution starts sending out cfmail by the hundreds or thousands. Does any one or has anyone handled a similar problem? If so, would you mind sharing your solution? Regards, Scott Newsome The Seattle Times ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246757 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFMail Throttling for CFerror handling
You could log errors into a database table and have a scheduled task E-mail them out in a controlled way. I find it helps to send errors to a dedicated error E-mail account so my real accounts do not get flooded when something bad happens. -Mike Chabot On 7/17/06, Scott Newsome [EMAIL PROTECTED] wrote: Thanks in advance for any assistance. I am researching away to throttle the creation of email messages used to notify system admins when ColdFusion throws an error. We have had a problem of over-loading our exchange server when there is a database failure or some other error that effects a lot of users and our current error handling solution starts sending out cfmail by the hundreds or thousands. Does any one or has anyone handled a similar problem? If so, would you mind sharing your solution? Regards, Scott Newsome The Seattle Times ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246759 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFMail Throttling for CFerror handling
Mike thanks for your reply. The database option is not workable because if the database fails (which in the past has been our biggest headache). We wouldn't get any emails. I could see checking for the database first, and if it's up, doing as you said. But if it's down I still need to be able to throttle the emails. On your other point, the custom tag we are using currently for sending emails send to our sysadmin group for the application or server. That could be one or many people. Scott On 7/17/06, Mike Chabot [EMAIL PROTECTED] wrote: You could log errors into a database table and have a scheduled task E-mail them out in a controlled way. I find it helps to send errors to a dedicated error E-mail account so my real accounts do not get flooded when something bad happens. -Mike Chabot On 7/17/06, Scott Newsome [EMAIL PROTECTED] wrote: Thanks in advance for any assistance. I am researching away to throttle the creation of email messages used to notify system admins when ColdFusion throws an error. We have had a problem of over-loading our exchange server when there is a database failure or some other error that effects a lot of users and our current error handling solution starts sending out cfmail by the hundreds or thousands. Does any one or has anyone handled a similar problem? If so, would you mind sharing your solution? Regards, Scott Newsome The Seattle Times ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246763 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFMail Throttling for CFerror handling
Instead of a database, you could use a plain text file or an xml file. Mingo. Scott Newsome wrote: Mike thanks for your reply. The database option is not workable because if the database fails (which in the past has been our biggest headache). We wouldn't get any emails. I could see checking for the database first, and if it's up, doing as you said. But if it's down I still need to be able to throttle the emails. On your other point, the custom tag we are using currently for sending emails send to our sysadmin group for the application or server. That could be one or many people. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246765 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFMail Throttling for CFerror handling
You could add code to all of your error trapping that specifically traps database errors. Then in the handling for that check for the existence of a application or server scope (depending on how many applications you have on the server) variable like say server.dberrorReported. If it does not exist or is false, send the email and set server.dberrorReported to true. If server.dberrorReported is true, than just log the error. You would then have to remember to reset the variable to false when the problem is over. There are caveats to using the server scope. Which I'm sure people will chime in about. I would also recommend trying to go after the underlying issue. If losing your database server and generating enough errors to clogs your mailserver, is happening frequently enough to cause you to try and change your error handling techniques, you may need to re-evaluate your configuration, hardware or networking. Terrence Ryan Senior Systems Programmer Wharton Computing and Information Technology E-mail: [EMAIL PROTECTED] ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246769 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFMail Throttling for CFerror handling
Terrence, You are absolutely correct! This is just a stop gap measure till the larger problems with infrastructure, network or exchange can be addressed. Unfortunately, the newspaper I work for is very cash strapped and slow to a address these issues. I have reservations about using the server scope but am considering using it by creating a structure to hold approx. the last 20 errors. Getting the average time between errors and when that exceeds a certain treshhold, triggering the trottle. I'd like to know if anyone has done something similar or if in one of the CFserver monitoring packages like Fusion Reactor have this kind of feature. Scott You could add code to all of your error trapping that specifically traps database errors. Then in the handling for that check for the existence of a application or server scope (depending on how many applications you have on the server) variable like say server.dberrorReported. If it does not exist or is false, send the email and set server.dberrorReported to true. If server.dberrorReported is true, than just log the error. You would then have to remember to reset the variable to false when the problem is over. There are caveats to using the server scope. Which I'm sure people will chime in about. I would also recommend trying to go after the underlying issue. If losing your database server and generating enough errors to clogs your mailserver, is happening frequently enough to cause you to try and change your error handling techniques, you may need to re-evaluate your configuration, hardware or networking. Terrence Ryan Senior Systems Programmer Wharton Computing and Information Technology E-mail:[EMAIL PROTECTED] ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246776 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFMail Throttling for CFerror handling
You can have the error emails sent to a Gmail or Yahoo mail account, if you don't mind the security implications of doing that. Using an external monitoring probe could help address the issue of the database not being accessible, and can address the problem of other major errors that might have even knocked out your mail server. WhatsUp Gold is commercial software, but you can get by with simple programming. Just set up a page in your site that performs a database query and does some other essential checks. At the end of the page, output a string such as successful. Have a scheduled task on some external server that hits that monitoring page every five minutes and looks for the word successful. If it does not find the word, send out an E-mail. You get at most one email every five minutes. I have done this and it works well. I usually have two pages, one .cfm and one .htm. If the cfm page fails, I then check the .htm page for the same key word to see if the Web server is responsive. If you look around, you can probably find inexpensive site monitoring programs or services that perform a similar function. WhatsUp Gold is expensive, but you can configure it to perform actions when it detects that something is wrong, such as rebooting the ColdFusion service. Good luck, Mike Chabot On 7/17/06, Scott Newsome [EMAIL PROTECTED] wrote: Terrence, You are absolutely correct! This is just a stop gap measure till the larger problems with infrastructure, network or exchange can be addressed. Unfortunately, the newspaper I work for is very cash strapped and slow to a address these issues. I have reservations about using the server scope but am considering using it by creating a structure to hold approx. the last 20 errors. Getting the average time between errors and when that exceeds a certain treshhold, triggering the trottle. I'd like to know if anyone has done something similar or if in one of the CFserver monitoring packages like Fusion Reactor have this kind of feature. Scott You could add code to all of your error trapping that specifically traps database errors. Then in the handling for that check for the existence of a application or server scope (depending on how many applications you have on the server) variable like say server.dberrorReported. If it does not exist or is false, send the email and set server.dberrorReported to true. If server.dberrorReported is true, than just log the error. You would then have to remember to reset the variable to false when the problem is over. There are caveats to using the server scope. Which I'm sure people will chime in about. I would also recommend trying to go after the underlying issue. If losing your database server and generating enough errors to clogs your mailserver, is happening frequently enough to cause you to try and change your error handling techniques, you may need to re-evaluate your configuration, hardware or networking. Terrence Ryan Senior Systems Programmer Wharton Computing and Information Technology E-mail:[EMAIL PROTECTED] ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246822 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFMail Throttling for CFerror handling
You can use cffile to store the error files to disk. I have a system that stores a small mountain of diagnostic info via dumping all existing scopes, but that has security implications. So instead I store the file to disk (as either a .cfm or a .html) where it can be viewed securely. For example store the files in a folder that is only accessible after you enter a password. Then, optionally, I email myself a simple uh oh email that says nothing but tells me I'd better check the error log. You can use a variety of logic to determine what that threshold can be. Next, use the server scope to log the date/time of the last error report. If it was within the last X minutes then don't send an email. If the interval you set has expired then it can send another. This will keep the info flowing without burying your mail server and causing an additional problem. Some details -- like how to dump all the scopes, save the files etc. is here: http://mysecretbase.com/Building_A_ColdFusion_Error_Handler.cfm There's also a tutorial on how to make a mail trickler but I don't think its applicable to your situation. HtH, -- [EMAIL PROTECTED] Janitor, MSB Web Systems mysecretbase.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246838 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Cferror and the site wide handler
Thanks very much for clearing this up Matt and Dave, I was using type=request. -Original Message- From: Dave Watts Sent: Wednesday, May 10, 2006 6:21 PM To: CF-Talk Subject: RE: Cferror and the site wide handler snip If I recall correctly, this is the execution order for error handlers: 1. Exception handler (CFTRY/CFCATCH) 2. CFERROR TYPE=EXCEPTION 3. Site-wide error handler 4. CFERROR TYPE=REQUEST ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240207 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Cferror and the site wide handler
Is it possible to use both cferror and the site wide handler in MX 6.1? My tests indicate that it is not possible, which is unfortunate. It seems that the site wide will always take precedence. Is there a way around that? My guess is no, but thought I'd check anyway. I care because as server admins, we wanted to come up with a default error template that we could throw up easily as a standard security measure. But then on internal development servers, allow devs to override the template with one that gave them more information. Thanks. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240124 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Cferror and the site wide handler
I am a bit confused as to the difference? When I use CFERror, I am using it as a site-wide handler? Then, I can use CFTRY/CFCATCH on individual pages. Are you talking about 404 handlers?? ... Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 212.691.3477 fax www.nylontechnology.com You know, like nunchuck skills, bowhunting skills, computer hacking skills... Girls only want boyfriends who have great skills. - Napoleon Dynamite -Original Message- From: Plunkett, Matthew [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 2:16 PM To: CF-Talk Subject: Cferror and the site wide handler Is it possible to use both cferror and the site wide handler in MX 6.1? My tests indicate that it is not possible, which is unfortunate. It seems that the site wide will always take precedence. Is there a way around that? My guess is no, but thought I'd check anyway. I care because as server admins, we wanted to come up with a default error template that we could throw up easily as a standard security measure. But then on internal development servers, allow devs to override the template with one that gave them more information. Thanks. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240128 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Cferror and the site wide handler
No, the site wide error handler is specified in the CF Admin under the Server Settings Settings section. That will catch any error produced by your site, and the processing will never make it to a page with CFERROR on it. -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 2:35 PM To: CF-Talk Subject: RE: Cferror and the site wide handler I am a bit confused as to the difference? When I use CFERror, I am using it as a site-wide handler? Then, I can use CFTRY/CFCATCH on individual pages. Are you talking about 404 handlers?? Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 212.691.3477 fax www.nylontechnology.com You know, like nunchuck skills, bowhunting skills, computer hacking skills... Girls only want boyfriends who have great skills. - Napoleon Dynamite ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240129 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Cferror and the site wide handler
Yes, I know where it is set. Thanks for confirming the order that they are processed. Now we have to find a new way to be secure (by hiding all the junk that default errors reveal), but let the developers see what is going on. Probably we need a smarter, more robust site wide handler. Thanks. -Original Message- From: Steve Brownlee [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 2:42 PM To: CF-Talk Subject: RE: Cferror and the site wide handler No, the site wide error handler is specified in the CF Admin under the Server Settings Settings section. That will catch any error produced by your site, and the processing will never make it to a page with CFERROR on it. -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 2:35 PM To: CF-Talk Subject: RE: Cferror and the site wide handler I am a bit confused as to the difference? When I use CFERror, I am using it as a site-wide handler? Then, I can use CFTRY/CFCATCH on individual pages. Are you talking about 404 handlers?? . Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 212.691.3477 fax www.nylontechnology.com You know, like nunchuck skills, bowhunting skills, computer hacking skills... Girls only want boyfriends who have great skills. - Napoleon Dynamite ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240133 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Cferror and the site wide handler
Ahhh, gotcha... That would explain my confusion... I have never used the error handler in the Admin. Does it have any advantage to the CFError tag defined on a per-application level? ... Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 212.691.3477 fax www.nylontechnology.com You know, like nunchuck skills, bowhunting skills, computer hacking skills... Girls only want boyfriends who have great skills. - Napoleon Dynamite -Original Message- From: Steve Brownlee [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 2:42 PM To: CF-Talk Subject: RE: Cferror and the site wide handler No, the site wide error handler is specified in the CF Admin under the Server Settings Settings section. That will catch any error produced by your site, and the processing will never make it to a page with CFERROR on it. -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 2:35 PM To: CF-Talk Subject: RE: Cferror and the site wide handler I am a bit confused as to the difference? When I use CFERror, I am using it as a site-wide handler? Then, I can use CFTRY/CFCATCH on individual pages. Are you talking about 404 handlers?? . Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 212.691.3477 fax www.nylontechnology.com You know, like nunchuck skills, bowhunting skills, computer hacking skills... Girls only want boyfriends who have great skills. - Napoleon Dynamite ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240134 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Cferror and the site wide handler
It's only advantage, IMHO, is ease of deployment. It's certainly not useful for detailed error reporting like Matt needs. -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 2:50 PM To: CF-Talk Subject: RE: Cferror and the site wide handler Ahhh, gotcha... That would explain my confusion... I have never used the error handler in the Admin. Does it have any advantage to the CFError tag defined on a per-application level? Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 212.691.3477 fax www.nylontechnology.com ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240136 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Cferror and the site wide handler
Matt, I was responding to Ben there. Didn't intend to oversimplify for you since you obviously knew about it. For the level of detail you need, you'll be rolling you own exception page that you'll need to call for every error in a try-catch block. I've been through the trial of that several times before, and while it is time consuming, it certainly is not difficult and the payoffs are tremendous. For an even more advanced way of hiding secure information in errors that may not be caught correctly, you can modify the error template itself (WEB-INF\exception\detail.cfm). -Original Message- From: Plunkett, Matthew [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 2:45 PM To: CF-Talk Subject: RE: Cferror and the site wide handler Yes, I know where it is set. Thanks for confirming the order that they are processed. Now we have to find a new way to be secure (by hiding all the junk that default errors reveal), but let the developers see what is going on. Probably we need a smarter, more robust site wide handler. Thanks. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240138 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Cferror and the site wide handler
Thanks, I will look at this details.cfm. -Original Message- From: Steve Brownlee Sent: Wednesday, May 10, 2006 3:01 PM To: CF-Talk Subject: RE: Cferror and the site wide handler Matt, I was responding to Ben there. Didn't intend to oversimplify for you since you obviously knew about it. For the level of detail you need, you'll be rolling you own exception page that you'll need to call for every error in a try-catch block. I've been through the trial of that several times before, and while it is time consuming, it certainly is not difficult and the payoffs are tremendous. For an even more advanced way of hiding secure information in errors that may not be caught correctly, you can modify the error template itself (WEB-INF\exception\detail.cfm). ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240141 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Cferror and the site wide handler
Matt, Thanks for all that information. The article has good stuff in it. My problem is that I have both 2 and 3 implemented. It seems that 2 never hits unless I turn off 3. Is that expected, or is there a way around it? Thanks, Another Matt -Original Message- From: Matt Robertson Sent: Wednesday, May 10, 2006 4:23 PM To: CF-Talk Subject: Re: Cferror and the site wide handler Best way to look at error handling: 1. try/catch blocks are for situations where you have an expected potential error (i.e. a mime type failure on a file upload) and you want to handle this known likely error in a graceful fashion (i.e. Hey idiot you cannot upload an exe file. Please click here try again.). You typically surround portions of code but not entire templates in try/catch blocks, as you need a try/catch block per template otherwise. 2. The cferror tag, specifically this variant of it: cferror type=EXCEPTION template=/my/error_catcher.cfm should be used to house your application-wide error handler, which you build. The thing that kicks in to tell you when something has exploded. This can do nearly the same thing as a site-wide handler, or behave in some application-specific fashion. Its all up to you. I put my cferror statement in /Application.cfm. 3. The site-wide error handler bats cleanup in case neither of the above are in place, or they fail for some reason. I wrote a tutorial on doing a SWEH that is easily adapted to a cferror handler. It dumps all data scopes securely to disk, to screen or to email. The dumps are invaluable in problem diagnosis. You can write simple code that dumps error data to screen for a certain range of IPs or logins or whatever so the same handler works for developers or visitors. http://mysecretbase.com/Building_A_ColdFusion_Error_Handler.cfm -- [EMAIL PROTECTED] Janitor, MSB Web Systems mysecretbase.com ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240167 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Cferror and the site wide handler
Catch the errors and send an email to yourself and cfdump all scope sin the email. I have created a custom error handling component that displays a windows style error box with a button that when clicked will display all the useful error information in a hidden div, so while it looks pretty for users, there is still a way to see the error output on the site if you want to. Whether or this is enabled is a simple value I set in an XML file which also has the option to also email all errors to the webmaster. -Original Message- From: Plunkett, Matthew [mailto:[EMAIL PROTECTED] Sent: 10 May 2006 19:45 To: CF-Talk Subject: RE: Cferror and the site wide handler Yes, I know where it is set. Thanks for confirming the order that they are processed. Now we have to find a new way to be secure (by hiding all the junk that default errors reveal), but let the developers see what is going on. Probably we need a smarter, more robust site wide handler. Thanks. -Original Message- From: Steve Brownlee [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 2:42 PM To: CF-Talk Subject: RE: Cferror and the site wide handler No, the site wide error handler is specified in the CF Admin under the Server Settings Settings section. That will catch any error produced by your site, and the processing will never make it to a page with CFERROR on it. -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 2:35 PM To: CF-Talk Subject: RE: Cferror and the site wide handler I am a bit confused as to the difference? When I use CFERror, I am using it as a site-wide handler? Then, I can use CFTRY/CFCATCH on individual pages. Are you talking about 404 handlers?? .. Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 212.691.3477 fax www.nylontechnology.com You know, like nunchuck skills, bowhunting skills, computer hacking skills... Girls only want boyfriends who have great skills. - Napoleon Dynamite ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240181 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Cferror and the site wide handler
Is it possible to use both cferror and the site wide handler in MX 6.1? My tests indicate that it is not possible, which is unfortunate. It seems that the site wide will always take precedence. Is there a way around that? My guess is no, but thought I'd check anyway. I care because as server admins, we wanted to come up with a default error template that we could throw up easily as a standard security measure. But then on internal development servers, allow devs to override the template with one that gave them more information. Yes, I'm pretty sure that it's possible. However, it will depend on the TYPE attribute you specify with CFERROR. If I recall correctly, this is the execution order for error handlers: 1. Exception handler (CFTRY/CFCATCH) 2. CFERROR TYPE=EXCEPTION 3. Site-wide error handler 4. CFERROR TYPE=REQUEST Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240190 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Cferror and the site wide handler
On 5/10/06, Plunkett, Matthew wrote: My problem is that I have both 2 and 3 implemented. It seems that 2 never hits unless I turn off 3. Is that expected, or is there a way around it? That ain't right. Are you sure you are using type=EXCEPTION in the cferror statement? Dave Watts put up an order of precedence in another thread and that sounds right. I have been doing error trapping like I described with no problems. EXCEPT... One quirk I noticed recently but have not scouted out yet: If I have a root folder that has an Application.cfm in it, and then I have a subfolder (/foo/), and /foo/Application.cfm also exists AND the first line of /foo/Application.cfm is cfinclude template=../Application.cfm then the subfolder inherits all of the root folder's stuff just like I expect. EXCEPT for the cferror statement. I found on a CF7 Crystaltech server that I had to duplicate in the cferror statement to bring error handling back. I haven't investigated further. Just needed a band-aid while I worked that day. -- [EMAIL PROTECTED] Janitor, MSB Web Systems mysecretbase.com ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240192 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: query data in cferror dump
I am already doing that but it doesnt give me the stuff about the query. On 2/28/06, Michael Traher [EMAIL PROTECTED] wrote: try cfdump var=#cfcatch# On 2/28/06, Duncan [EMAIL PROTECTED] wrote: In the standard grey CF error dump on screen it contains a dump of the query that occurred with all the values in place. I have implemented a cferror page to handle these things and it doesnt show that information. Where would I find it in the context of the cferror? Usign MX 6.1 on Windows 2000 server Thanks! -- Duncan I Loxton [EMAIL PROTECTED] -- Mike T Blog http://www.socialpoints.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233625 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
query data in cferror dump
In the standard grey CF error dump on screen it contains a dump of the query that occurred with all the values in place. I have implemented a cferror page to handle these things and it doesnt show that information. Where would I find it in the context of the cferror? Usign MX 6.1 on Windows 2000 server Thanks! -- Duncan I Loxton [EMAIL PROTECTED] ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233616 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
CF performance tuning: CFTRY/CFCATCH vs CFERROR? What about excessive CFOUTPUTs?
Hello all - I've googled the heck out of this topic, and there are more opinions than I can count! Is there any definitive info on whether it is more efficient to put a CFTRY around an entire page's contents, with a CFCATCH at the end to trap errors, or to simply have a CFERROR page specified in application.cfm (and only use CFTRY/CFCATCH in specific pieces of code that might need special error handling procedures)? In other words, what is the performance cost for code that is executing within a CFTRY block? I'm interested in this because the CF server that I've just recently started working with seems to be having periodic performance problems (still trying to determine what periodic actually means), and noticed that a lot of the application's pages have a single CFTRY around them. I've also noticed excessive use of CFOUTPUT tags. Is it worth consolidating these to help performance? I've seen as many as 5 in a block of code that's only 30 lines long, where only 1 was needed. What about excessive # marks? It makes me crazy to see code like cfif #somevariable# eq yes ... But does that also make CF crazy? I'd think that this goofiness would not actually filter down to the Jrun code that actually executes, right? Any good MX7 performance/tuning papers running around? I checked on the macromedia website, and with google, but only found info on older versions. TIA for any hints! Reed ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227949 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CF performance tuning: CFTRY/CFCATCH vs CFERROR? What about excessive CFOUTPUTs?
The try/catch vs cferror page - it's really about what works best for you, what is more manageable, and what gives the best results for you. Try/catch isn't really made for wrapping whole pages, but it won't cause errors or problems. It's just not as manageable as cferror. Same with multiple cfoutputs and over-usage of #'s. When it gets translated down into java, it really doesn't matter anymore. If there is a performance benifit, it happens when the page is parsed (once per template, until it is modified next or the service restarts). The real issue is what is most readable and manageable for you, the developer. As for your servers, make sure your server is all patched up and has the latest database drivers, otherwise, it's a little hard to say from the info you gave us -nathan strutz http://www.dopefly.com/ On 12/29/05, Reed Powell [EMAIL PROTECTED] wrote: Hello all - I've googled the heck out of this topic, and there are more opinions than I can count! Is there any definitive info on whether it is more efficient to put a CFTRY around an entire page's contents, with a CFCATCH at the end to trap errors, or to simply have a CFERROR page specified in application.cfm (and only use CFTRY/CFCATCH in specific pieces of code that might need special error handling procedures)? In other words, what is the performance cost for code that is executing within a CFTRY block? I'm interested in this because the CF server that I've just recently started working with seems to be having periodic performance problems (still trying to determine what periodic actually means), and noticed that a lot of the application's pages have a single CFTRY around them. I've also noticed excessive use of CFOUTPUT tags. Is it worth consolidating these to help performance? I've seen as many as 5 in a block of code that's only 30 lines long, where only 1 was needed. What about excessive # marks? It makes me crazy to see code like cfif #somevariable# eq yes ... But does that also make CF crazy? I'd think that this goofiness would not actually filter down to the Jrun code that actually executes, right? Any good MX7 performance/tuning papers running around? I checked on the macromedia website, and with google, but only found info on older versions. TIA for any hints! Reed ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227953 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF performance tuning: CFTRY/CFCATCH vs CFERROR? What about e xcessive CFOUTPUTs?
Is there any definitive info on whether it is more efficient to put a CFTRY around an entire page's contents, with a CFCATCH at the end to trap errors, or to simply have a CFERROR page specified in application.cfm (and only use CFTRY/CFCATCH in specific pieces of code that might need special error handling procedures)? In other words, what is the performance cost for code that is executing within a CFTRY block? I'm interested in this because the CF server that I've just recently started working with seems to be having periodic performance problems (still trying to determine what periodic actually means), and noticed that a lot of the application's pages have a single CFTRY around them. I think you're asking the wrong question. I seriously doubt whether there are any significant performance implications one way or the other. However, wrapping a CFTRY around a page is bad, bad, bad! That's not what it's for - that's why we have CFERROR. Wrapping a CFTRY around a page prevents you from using CFTRY usefully within that page. The purpose of exception handling is to let you identify and trap specific problems, and provide specific solutions for those problems. When you wrap the entire page in CFTRY, your problem could be on line 2 or line 200. Plus, it means that you have to manage generalized error handling within each page, which is unnecessarily complicated. I've also noticed excessive use of CFOUTPUT tags. Is it worth consolidating these to help performance? I've seen as many as 5 in a block of code that's only 30 lines long, where only 1 was needed. I doubt you'd see any significant difference here, either. What about excessive # marks? It makes me crazy to see code like cfif #somevariable# eq yes ... But does that also make CF crazy? I'd think that this goofiness would not actually filter down to the Jrun code that actually executes, right? I don't think this makes any significant difference either. Any good MX7 performance/tuning papers running around? I checked on the macromedia website, and with google, but only found info on older versions. To the extent that those older versions address CFMX 6.1, they should still be largely valid for 7. There isn't that much difference, really. In general, you're far more likely to improve performance by examining data access and caching more closely. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227954 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CF performance tuning: CFTRY/CFCATCH vs CFERROR? What about excessive CFOUTPUTs?
On 12/29/05, Reed Powell [EMAIL PROTECTED] wrote: Hello all - I've googled the heck out of this topic, and there are more opinions than I can count! Is there any definitive info on whether it is more efficient to put a CFTRY around an entire page's contents, with a CFCATCH at the end to trap errors, or to simply have a CFERROR page specified in application.cfm (and only use CFTRY/CFCATCH in specific pieces of code that might need special error handling procedures)? In other words, what is the performance cost for code that is executing within a CFTRY block? I'd go with the CFERROR and specific CFTRY/CATCH regardless of performance details. I'm interested in this because the CF server that I've just recently started working with seems to be having periodic performance problems (still trying to determine what periodic actually means), and noticed that a lot of the application's pages have a single CFTRY around them. In general with performance optimization, you figure out what you're working on -- without a good idea about *what* the issue is, you're shooting in the dark and just as likely to cause newer/different problems. I'd start by turning on slow page logging and slow query logging (if you db supports) as well to start. If you see pages that are consistently problematic, you know where to start spending some time -- if it seems truly random, you probably want to do some process/cpu/etc monitoring to see if its *another* process (e.g. the automatic virus scanner someone installed) that's eating your performance. And of course you need to cross-index this with load. As far as noticing a lot of CFTRY around entire pages, that to me seems like it's a bad idea as a general practice -- but you should get *consistent* performance, even if it's slower. I've also noticed excessive use of CFOUTPUT tags. Is it worth consolidating these to help performance? I've seen as many as 5 in a block of code that's only 30 lines long, where only 1 was needed. What about excessive # marks? It makes me crazy to see code like cfif #somevariable# eq yes ... But does that also make CF crazy? I'd think that this goofiness would not actually filter down to the Jrun code that actually executes, right? Once you're compiled down to java classes, a lot of this stuff is irrelevant. Again, I think you're looking in the wrong place -- you don't even know for a fact that it's ColdFusion that's causing your problem. Any good MX7 performance/tuning papers running around? I checked on the macromedia website, and with google, but only found info on older versions. There are lots of things you can do to change performance -- move SQL to stored procs, cache things, tune the JVM, etc, etc. But all of it is pointless until you can narrow down *what* and *where* your problem is -- everything else is code-and-hope. In my experience, sporadic performance problems have nothing to do with cfoutput style, # marks, etc and far more with bad/poor/inefficient SQL (#1 issue with CF code imho). Or with other processes running on the server/network segment you forgot about (the massive backup that runs hourly, the automatic defragger/etc someone set up, the daily email blast that saturates your outbound pipe, etc). -- John Paul Ashenfelter CTO/Transitionpoint (blog) http://www.ashenfelter.com (email) [EMAIL PROTECTED] ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227956 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CF performance tuning: CFTRY/CFCATCH vs CFERROR? What about e xcessive CFOUTPUTs?
On 12/29/05, Dave Watts [EMAIL PROTECTED] wrote: However, wrapping a CFTRY around a page is bad, bad, bad! That's not what it's for - that's why we have CFERROR. As obsessed as I am about error handling, it unfortunately took me a long time to learn this, and I am still pulling try/catch statements out of old code I come across. I did it for years. With that in mind... Wrapping a CFTRY around a page prevents you from using CFTRY usefully within that page. Actually you can nest try/catch (wrap whole page, with individual code blocks wrapped inside of that) and its not a problem, although as you say its a dumb thing to do, once you know better. When you wrap the entire page in CFTRY, your problem could be on line 2 or line 200. Yes indeed, but cfcatch-scope variables will tell you precisely where the error occurred, and why, just like you'd get with an error-scope message. Pretty sure you even get a stack trace so you can drill down to the include or module that *really* caused the problem. -- --mattRobertson-- Janitor, MSB Web Systems mysecretbase.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227957 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CF performance tuning: CFTRY/CFCATCH vs CFERROR? What about e xcessive CFOUTPUTs?
Actually you can nest try/catch (wrap whole page, with individual code blocks wrapped inside of that) and its not a problem, although as you say its a dumb thing to do, once you know better. Sure, you can do that. But it adds unnecessary complication to error handling, and can cause some odd problems. For example, if you write an exception handler that doesn't know what to do with the exception it's caught, it should kick the exception to a higher level. If that higher level is your page-wide exception handler, it might not be able to respond in an especially useful manner, since it's written to deal with anything that happens within the entire page. Yes indeed, but cfcatch-scope variables will tell you precisely where the error occurred, and why, just like you'd get with an error-scope message. Pretty sure you even get a stack trace so you can drill down to the include or module that *really* caused the problem. Yes, the exception itself will provide descriptive information, which is good to have after the fact. But one of the primary purposes of exception handling is to deal with problems as they occur, and to do this you have to have a pretty good idea in advance of what kinds of problems you can expect. Wrapping an entire page in CFTRY indicates that you don't actually have any idea what's going to go wrong, and can't really do anything other than report the exceptions it receives. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227958 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
cferror problem
I am running CF7on windows 2003. I am trying to use CFERROR in my application.cfm file and it never calls my template I give it. here is my call. cferror template=CustomError.cfm mailto=test@test.com type=Exception exception=Any Here is the error the page has. 13:00:28.028 - Expression Exception - in D:\Inetpub\wwwroot\AgentSite\FunctionPages\AccountFunctions.cfc : line 841 Element CustomerID is undefined in a CFML structure referenced as part of an expression. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221005 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cferror problem
Most likely you have an error in CustomError.cfm. If CF can't call the error template page it gives the error of the original page. Cheers, Sam On 10/14/05, Chad McCue [EMAIL PROTECTED] wrote: I am running CF7on windows 2003. I am trying to use CFERROR in my application.cfm file and it never calls my template I give it. here is my call. cferror template=CustomError.cfm mailto=test@test.com type=Exception exception=Any Here is the error the page has. 13:00:28.028 - Expression Exception - in D:\Inetpub\wwwroot\AgentSite\FunctionPages\AccountFunctions.cfc : line 841 Element CustomerID is undefined in a CFML structure referenced as part of an expression. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221007 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
CFERROR
I am running CF7on windows 2003. I am trying to use CFERROR in my application.cfm file and it never calls my template I give it. here is my call. cferror template=CustomError.cfm mailto=test@test.com type=Exception exception=Any Here is the error the page has. 13:00:28.028 - Expression Exception - in D:\Inetpub\wwwroot\AgentSite\FunctionPages\AccountFunctions.cfc : line 841 Element CustomerID is undefined in a CFML structure referenced as part of an expression. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220923 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Using cferror
I am running CF7on windows 2003. I am trying to use CFERROR in my application.cfm file and it never calls my template I give it. here is my call. cferror template=CustomError.cfm mailto=test@test.com type=Exception exception=Any Here is the error the page has. 13:00:28.028 - Expression Exception - in D:\Inetpub\wwwroot\AgentSite\FunctionPages\AccountFunctions.cfc : line 841 Element CustomerID is undefined in a CFML structure referenced as part of an expression. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220955 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54