Re: bypassing the site-wide error handler
Thanks Dave, Rodney. That really helped. It turned out our issue was the same cfscript in the application's header and the sitewide error handler's header. When the second instance of cfscript tried to run, it broke the error handler, thus presenting the raw error to the user. best, Chris On Mon, Dec 8, 2014 at 10:02 PM, Rodney Enke renk...@gmail.com wrote: The site wide error handler will not run if there is a local error handler, such as CFTRY/CFCATCH or CFERROR, unless the CFTRY/CFCATCH block rethrows the error. - Rodney On Mon, Dec 8, 2014 at 8:52 PM, Dave Watts dwa...@figleaf.com wrote: Hi, when can an application bypass the CF v9 site-wide error handler? We host an app, that uses cftry/catch, but that appears to not handle the errors correctly. The errors do not trigger the site-wide error handler, and the errors are displayed to the users. The site-wide error handler works fine for other applications, and testing. I don't think the application can, by itself, bypass the site-wide error handler. I'd take a look at the code in the site-wide error handler to see if there's anything in there that would prevent it from doing anything when an error occurs. You might also look at how you're using CFTRY/CFCATCH - maybe you are catching the error after all, and your error trapping code doesn't do anything useful. Finally, the site-wide error handler will only catch run-time exceptions, I think. I could be wrong about this, as I haven't worked with the site-wide error handler in a while, but if this is the case and you have a compile-time error in your code, it's going to be displayed. This is something that used to be handled with the CFERROR tag (type=request), but you really just shouldn't have any compile-time errors anyway. Dave Watts, CTO, Fig Leaf Software 1-202-527-9569 http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Service-Disabled Veteran-Owned Small Business (SDVOSB) 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:359797 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
bypassing the site-wide error handler
Hi, when can an application bypass the CF v9 site-wide error handler? We host an app, that uses cftry/catch, but that appears to not handle the errors correctly. The errors do not trigger the site-wide error handler, and the errors are displayed to the users. The site-wide error handler works fine for other applications, and testing. Thanks for any insight! Chris ~| 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:359774 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: bypassing the site-wide error handler
Hi, when can an application bypass the CF v9 site-wide error handler? We host an app, that uses cftry/catch, but that appears to not handle the errors correctly. The errors do not trigger the site-wide error handler, and the errors are displayed to the users. The site-wide error handler works fine for other applications, and testing. I don't think the application can, by itself, bypass the site-wide error handler. I'd take a look at the code in the site-wide error handler to see if there's anything in there that would prevent it from doing anything when an error occurs. You might also look at how you're using CFTRY/CFCATCH - maybe you are catching the error after all, and your error trapping code doesn't do anything useful. Finally, the site-wide error handler will only catch run-time exceptions, I think. I could be wrong about this, as I haven't worked with the site-wide error handler in a while, but if this is the case and you have a compile-time error in your code, it's going to be displayed. This is something that used to be handled with the CFERROR tag (type=request), but you really just shouldn't have any compile-time errors anyway. Dave Watts, CTO, Fig Leaf Software 1-202-527-9569 http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Service-Disabled Veteran-Owned Small Business (SDVOSB) 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:359775 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: bypassing the site-wide error handler
The site wide error handler will not run if there is a local error handler, such as CFTRY/CFCATCH or CFERROR, unless the CFTRY/CFCATCH block rethrows the error. - Rodney On Mon, Dec 8, 2014 at 8:52 PM, Dave Watts dwa...@figleaf.com wrote: Hi, when can an application bypass the CF v9 site-wide error handler? We host an app, that uses cftry/catch, but that appears to not handle the errors correctly. The errors do not trigger the site-wide error handler, and the errors are displayed to the users. The site-wide error handler works fine for other applications, and testing. I don't think the application can, by itself, bypass the site-wide error handler. I'd take a look at the code in the site-wide error handler to see if there's anything in there that would prevent it from doing anything when an error occurs. You might also look at how you're using CFTRY/CFCATCH - maybe you are catching the error after all, and your error trapping code doesn't do anything useful. Finally, the site-wide error handler will only catch run-time exceptions, I think. I could be wrong about this, as I haven't worked with the site-wide error handler in a while, but if this is the case and you have a compile-time error in your code, it's going to be displayed. This is something that used to be handled with the CFERROR tag (type=request), but you really just shouldn't have any compile-time errors anyway. Dave Watts, CTO, Fig Leaf Software 1-202-527-9569 http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Service-Disabled Veteran-Owned Small Business (SDVOSB) 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:359776 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: JQuery Ajax Error issue with Site-wide Error Handler
Not sure where this goes in CF5.5. Place it in your error handler. !---if the request is ajax, throw an error that can be returned to the client in a basic string and then log the error as usual--- cfset requestHeaders = getHTTPRequestData().headers cfif StructKeyExists(requestHeaders, X-Requested-With) and StructFind(requestHeaders,X-Requested-With) eq XMLHttpRequest !--- If you want to view the error in firebug dump the error here--- cfheader statusCode=500 statusText=ColdFusion Error cfabort /cfif In your js document: $.ajaxSetup({ error:function(x,e){ if(x.status == 500 x.statusText == ColdFusion Error){ //Server side code issue. Handle it gracefully! } }); You probably want to handle all server errors the same, although you can customize the messages returned to the client. For instance, if you get a SQL error you can do cfheader statusCode=500 statusText=JDBC Error instead. ~| 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:339116 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: JQuery Ajax Error issue with Site-wide Error Handler
Thanks Tony! Will the cfheader statusCode=500 work with the site-wide error handler on? I tried adding this tag to my ajax code, but it is still returning as success. Thanks, Donnie ~| 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:339117 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: JQuery Ajax Error issue with Site-wide Error Handler
Check firebug (how many times do people say this?) If you throw a 500 and abort after, the client should treat the response as an error. You need to configure the client too, not just put in cfheader statusCode=500. Use ALL of my code, not just a fragment. Thanks Tony! Will the cfheader statusCode=500 work with the site-wide error handler on? I tried adding this tag to my ajax code, but it is still returning as success. Thanks, Donnie ~| 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:339118 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: JQuery Ajax Error issue with Site-wide Error Handler
Hi Tony, Thanks again. I should mention that I want the site-wide error handler to run. It writes to log files, sends email notification as well as some other bug tracking pieces we have in place. If I put a cfabort in the code, the site-wide error handler won't run. Are you suggesting the code you sent over be placed in the site-wide error handler or should it be placed in the code that is called via AJAX? Thanks, Donnie Check firebug (how many times do people say this?) If you throw a 500 and abort after, the client should treat the response as an error. You need to configure the client too, not just put in cfheader statusCode=500. Use ALL of my code, not just a fragment. Thanks Tony! Will the cfheader statusCode=500 work with the site-wide error handler on? I tried adding this tag to my ajax code, but it is still returning as success. Thanks, Donnie ~| 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:339124 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: JQuery Ajax Error issue with Site-wide Error Handler
Hi Tony, I just realized you were intending for the code to go in the site-wide error handler and not the custom error handling of the AJAX code. I got it working. This was a great help!! Thanks again, Donnie Check firebug (how many times do people say this?) If you throw a 500 and abort after, the client should treat the response as an error. You need to configure the client too, not just put in cfheader statusCode=500. Use ALL of my code, not just a fragment. Thanks Tony! Will the cfheader statusCode=500 work with the site-wide error handler on? I tried adding this tag to my ajax code, but it is still returning as success. Thanks, Donnie ~| 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:339125 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: JQuery Ajax Error issue with Site-wide Error Handler
Nice work! - Tony Bentley (sent from iPhone) On Nov 11, 2010, at 11:06 AM, Donnie Carvajal donnie.carva...@transformyx.com wrote: Hi Tony, I just realized you were intending for the code to go in the site-wide error handler and not the custom error handling of the AJAX code. I got it working. This was a great help!! Thanks again, Donnie Check firebug (how many times do people say this?) If you throw a 500 and abort after, the client should treat the response as an error. You need to configure the client too, not just put in cfheader statusCode=500. Use ALL of my code, not just a fragment. Thanks Tony! Will the cfheader statusCode=500 work with the site-wide error handler on? I tried adding this tag to my ajax code, but it is still returning as success. Thanks, Donnie ~| 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:339127 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
JQuery Ajax Error issue with Site-wide Error Handler
I have some Ajax running via jQuery and I also have a site-wide error handler running for ColdFusion. When the coldfusion template is called via ajax and an error is thrown via cfthrow, the ajax error handler is not triggered, instead the ajax success handler is. If I remove the site-wide error handler, the ajax error handler is triggered. This particular system is on CF 5.5. What is the status code that CF sets the requests to when the site-wide error handler is triggered? I believe the ajax success handler looks for a 200 status code. Is there someway to set the status code in the site-wide error handler? Thanks, Donnie ~| 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:339084 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: JQuery Ajax Error issue with Site-wide Error Handler
What I've done to work around a similar type of issue is create a return structure that is always consistent from all ajax calls. The data returned looks like this: { data:'', err:{ errmsg:'' } , success:true } Errors are caught on the server side, (via try/catch, or site wide handler) and the data structure above is returned with an error message/object and success is set to false. No errors, then success=true and the data object holds the returned data. Client, side your application can either use the data returned, or handle the error if success == false. Brook -Original Message- From: Donnie Carvajal [mailto:donnie.carva...@transformyx.com] Sent: November-10-10 10:47 AM To: cf-talk Subject: JQuery Ajax Error issue with Site-wide Error Handler I have some Ajax running via jQuery and I also have a site-wide error handler running for ColdFusion. When the coldfusion template is called via ajax and an error is thrown via cfthrow, the ajax error handler is not triggered, instead the ajax success handler is. If I remove the site-wide error handler, the ajax error handler is triggered. This particular system is on CF 5.5. What is the status code that CF sets the requests to when the site-wide error handler is triggered? I believe the ajax success handler looks for a 200 status code. Is there someway to set the status code in the site-wide error handler? Thanks, Donnie ~| 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:339086 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Determine Site-Wide Error Handler
Is there some way to introspect settings like the Site Wide Error Handler using something like the Service factory? I don't have access to the CF Administrator on CF8 but there are times when I need to figure out basic settings. Thanks! Warren ~| 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:330136 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Determine Site-Wide Error Handler
In your applicaiton.cfc, you can do something like the following: cffunction name=OnError access=public output=true cfargument name=Exception type=any required=true / cfargument name=EventName type=string required=false default= / cftry !--- log error --- cffile action=APPEND file=/log.txt output=OnError : #Now()# - [#ARGUMENTS.Exception.Message# - #ARGUMENTS.Exception.Type#] #ARGUMENTS.Exception.Detail# #cgi.PATH_INFO# addnewline=true/ !--- dump the error and save it for output --- cfsavecontent variable=exc #now()# cfdump var=#ARGUMENTS.Exception# /cfsavecontent cffile action=write output=#exc# nameconflict=overwrite file=/error.html/ cfif cgi.REMOTE_ADDR eq ::1 !--- if the error is internal, show the message --- cfinclude template=/error.html cfelse !--- otherwise show a nice message --- cfinclude template=/error.cfm cfset application.email.sendmail(error,exc) /cfif cfcatch cfset onApplicationStart() /cfcatch /cftry /cffunction This will log the error, display it internally or send an email (using a scope collection email object). In your email you can include items that may help you in determining the error. In the error.cfm, I suggest that you output HTML only as any coldfusion could cause an infinite loop. I am doing absolute paths in this example but generally I store error stuff in a folder outside of the root. ~| 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:330144 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Determine Site-Wide Error Handler
Good idea but. I am already using the Site-wide error handler to invoke a template. Problem is I can't remember what template it was set to on various CF instances I run. Since I don't have access to CF Admin, I'd like some sort of way to introspect the instance and find out what that and other settings are. I don't want to change anything -- just read them. I work in a big company and it is a real pain to get the server admin to look this stuff up ( fill out forms, wait for days, etc.) For example, I wrote a little routine using the ServiceFactory to tell me what the datasources are. Simple, effective, and fast. ~| 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:330145 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Determine Site-Wide Error Handler
Well..I do not know how CF is installed with multiple instances (I have one instance per server, default location), but could you write a script to read the neo-runtime.xml file? -Original Message- From: Craigsell [mailto:craigs...@charter.net] Sent: Tuesday, January 26, 2010 10:55 AM To: cf-talk Subject: Re: Determine Site-Wide Error Handler Good idea but. I am already using the Site-wide error handler to invoke a template. Problem is I can't remember what template it was set to on various CF instances I run. Since I don't have access to CF Admin, I'd like some sort of way to introspect the instance and find out what that and other settings are. I don't want to change anything -- just read them. I work in a big company and it is a real pain to get the server admin to look this stuff up ( fill out forms, wait for days, etc.) For example, I wrote a little routine using the ServiceFactory to tell me what the datasources are. Simple, effective, and fast. ~| 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:330148 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Determine Site-Wide Error Handler
Sorry. I meant I have a bunch of separate CF8 installations on different physical servers. We do one cf install per base application URL here so one server can have a lot of CF installs. I guess I have a dozen different installs to keep track of. I would love to be able to read the neo-runtime.xml file but I have no access to it. All I am allowed to access is root directory of my web site. Nothing else. If I need to read a server setting I have to use something like servicefactory ~| 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:330151 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Determine Site-Wide Error Handler
How about if you customize the degugging template? C:\ColdFusion8\wwwroot\WEB-INF\debug\classic.cfm Add a cffile action=write to the classic.cfm and dump out all of the debugging somewhere. This is of course if debugging is turned on. Otherwise, I think you need a Java guy. ~| 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:330156 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Determine Site-Wide Error Handler
Assuming the language in the error template are not dynamically generated by pulling some database record, could you do a global search among your CF templates for the language used in the error template? Like, search for the phrase We are awfully sorry but you've hit an error on Orange Whip Studio; this must be the result of the attack of the clones. On Tue, Jan 26, 2010 at 5:09 PM, Tony Bentley t...@tonybentley.com wrote: How about if you customize the degugging template? C:\ColdFusion8\wwwroot\WEB-INF\debug\classic.cfm Add a cffile action=write to the classic.cfm and dump out all of the debugging somewhere. This is of course if debugging is turned on. Otherwise, I think you need a Java guy. ~| 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:330157 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Determine Site-Wide Error Handler
I can manually figure it out as suggested by sweeping for recognizeable text. I was hoping for something simpler and more powerful that would tell me that parameter and others on the Server Settings page, giving me tool for future use. I'd really thought there would be some sore of Java class I could get to. I've been digging around on the ServiceFactory class but there are a lot of methods on it. Nothing from Googling either. ~| 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:330158 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF5 Site-wide Error Handler
I wanted to repost this. See below. Any help is appreciated. I have a site-wide error handler setup for a CF 5 server. I also have one setup for an MX7 server. The MX7 server will still display the standard debug information even if the site-wide error handler is triggered. The CF 5 server will not. Is this a limitation with CF 5 or am I missing a setting? Thanks, Donnie ~| 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:329178 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CF5 Site-wide Error Handler
I have a site-wide error handler setup for a CF 5 server. I also have one setup for an MX7 server. The MX7 server will still display the standard debug information even if the site-wide error handler is triggered. The CF 5 server will not. Is this a limitation with CF 5 or am I missing a setting? Thanks, Donnie ~| 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:329074 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Site-wide error handler
At 07:35 PM 5/19/2009, you wrote: The error logging throttle needs some work (tries to prevent duplicate error emails, etc.), but overall, I'm liking this approach mucho. I gave up on emailing myself every error message. I use gmail and it was refusing mail because I was getting too many. So now I log the errors to a database, and set up a scheduled task to send me one email every morning with a listing of the errors from the previous 24 hours. It gives me a frequency distribution of the errors, so I can see which is the most important. Almost all of my errors comes from hack attempts. ~| 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:322663 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Site-wide error handler
On Wed, May 20, 2009 at 7:46 AM, Al Musella, DPM wrote: At 07:35 PM 5/19/2009, you wrote: The error logging throttle needs some work (tries to prevent duplicate error emails, etc.), but overall, I'm liking this approach mucho. I gave up on emailing myself every error message. I use gmail and it was refusing mail because I was getting too many. So now I log the errors to a database, and set up a scheduled task to send me one email every morning with a listing of the errors from the previous 24 hours. It gives me a frequency distribution of the errors, so I can see which is the most important. Almost all of my errors comes from hack attempts. I was thinking that I didn't want my database filling up either-- basically trying to cover denial of service type deals from every angle. Course, there's still the application logs themselves, which I haven't tackled yet (if ever). And there's some element of danger to letting your apps be so, um, resilient? (thinking killer robots here ;]) -- One must laugh before one is happy, or one may die without ever laughing at all. Jean de la Bru ~| 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:322684 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Site-wide error handler
I have a bit of a silly question here. I have never used the site-wide error handler before. Assuing the error template is in a folder called misc in the webroot, I should only have to enter /misc/displayerror.cfm in cf admin, right? It doesn't seem to like that. Am I doing something wrong. This is on CF8 BTW and will be implemetned in CF7. Thanks in advance! Eric ~| 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:322640 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Site-wide error handler
It's easiest to create a mapping in the CF Admin for your error template folder, make sure the template is in there, go to the settings panel, and use the mapping to reference your template in the site wide template field. Well, it was for me HTH Joe Kelly On Tue, May 19, 2009 at 3:57 PM, Eric Roberts ow...@threeravensconsulting.com wrote: I have a bit of a silly question here. I have never used the site-wide error handler before. Assuing the error template is in a folder called misc in the webroot, I should only have to enter /misc/displayerror.cfm in cf admin, right? It doesn't seem to like that. Am I doing something wrong. This is on CF8 BTW and will be implemetned in CF7. Thanks in advance! Eric ~| 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:322641 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Site-wide error handler
I just figured that out heheheh. Thanks Joe! On Tue, May 19, 2009 at 4:05 PM, Joe Kelly joekell...@gmail.com wrote: It's easiest to create a mapping in the CF Admin for your error template folder, make sure the template is in there, go to the settings panel, and use the mapping to reference your template in the site wide template field. Well, it was for me HTH Joe Kelly On Tue, May 19, 2009 at 3:57 PM, Eric Roberts ow...@threeravensconsulting.com wrote: I have a bit of a silly question here. I have never used the site-wide error handler before. Assuing the error template is in a folder called misc in the webroot, I should only have to enter /misc/displayerror.cfm in cf admin, right? It doesn't seem to like that. Am I doing something wrong. This is on CF8 BTW and will be implemetned in CF7. Thanks in advance! Eric ~| 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:322642 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Site-wide error handler
I have a bit of a silly question here. I have never used the site-wide error handler before. Assuing the error template is in a folder called misc in the webroot, I should only have to enter /misc/displayerror.cfm in cf admin, right? It doesn't seem to like that. Am I doing something wrong. This is on CF8 BTW and will be implemetned in CF7. Thanks in advance! This would require that you have a mapping of / pointing to your web root, which you may not. 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 informa ~| 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:322643 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Site-wide error handler
yeah...I have multiple sites on my laptop for testing...so i don't have / defined. I did just creat a mapping ot that directory and CF admin took the values. Is there anything else that needs to be set up? I have the files...yet to be coded...but the files are there. I try to pull up a page that doesn't exist and I still get the standard cf error page. Eric On Tue, May 19, 2009 at 4:29 PM, Dave Watts dwa...@figleaf.com wrote: I have a bit of a silly question here. I have never used the site-wide error handler before. Assuing the error template is in a folder called misc in the webroot, I should only have to enter /misc/displayerror.cfm in cf admin, right? It doesn't seem to like that. Am I doing something wrong. This is on CF8 BTW and will be implemetned in CF7. Thanks in advance! This would require that you have a mapping of / pointing to your web root, which you may not. 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 informa ~| 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:322644 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Site-wide error handler
yeah...I have multiple sites on my laptop for testing...so i don't have / defined. I did just creat a mapping ot that directory and CF admin took the values. Is there anything else that needs to be set up? I have the files...yet to be coded...but the files are there. I try to pull up a page that doesn't exist and I still get the standard cf error page. The site-wide error handler doesn't apply to pages that don't exist. There's a 404 handler for that, if I recall correctly. 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 informat ~| 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:322645 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Site-wide error handler
I recently wrote an exception handling service that uses the onError in Applicaiton.cfc (or vice-versa). I like it, because I'm trapping 404 errors the same way I would any other error (I do special stuff if it's a 404), so there's only one place to configure exception handling. The error logging throttle needs some work (tries to prevent duplicate error emails, etc.), but overall, I'm liking this approach mucho. Probably only works because of how I'm using railo and rewrites and such, so dunno if it would work on a vanilla adobe cf install, but you can do things like redirects or alternate URL suggestions and whatnot pretty easy. Bonus! - if we forget to set the site-wide error page (doesn't happen to professionals, I know ;]) or 404 handler, our app is still wrapped in it. -- Even the best intentioned of great men need a few scoundrels around them; there are some things you cannot ask an honest man to do. Jean de la Bruyere On Tue, May 19, 2009 at 5:09 PM, Dave Watts wrote: yeah...I have multiple sites on my laptop for testing...so i don't have / defined. I did just creat a mapping ot that directory and CF admin took the values. Is there anything else that needs to be set up? I have the files...yet to be coded...but the files are there. I try to pull up a page that doesn't exist and I still get the standard cf error page. The site-wide error handler doesn't apply to pages that don't exist. There's a 404 handler for that, if I recall correctly. Dave Watts, CTO, Fig Leaf Software http://www.figleaf. ~| 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:322646 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Site-wide error handler
I'll have to think about that one...thanks! Dave...I also have the missing page template set... Eric On Tue, May 19, 2009 at 6:35 PM, denstar valliants...@gmail.com wrote: I recently wrote an exception handling service that uses the onError in Applicaiton.cfc (or vice-versa). I like it, because I'm trapping 404 errors the same way I would any other error (I do special stuff if it's a 404), so there's only one place to configure exception handling. The error logging throttle needs some work (tries to prevent duplicate error emails, etc.), but overall, I'm liking this approach mucho. Probably only works because of how I'm using railo and rewrites and such, so dunno if it would work on a vanilla adobe cf install, but you can do things like redirects or alternate URL suggestions and whatnot pretty easy. Bonus! - if we forget to set the site-wide error page (doesn't happen to professionals, I know ;]) or 404 handler, our app is still wrapped in it. -- Even the best intentioned of great men need a few scoundrels around them; there are some things you cannot ask an honest man to do. Jean de la Bruyere On Tue, May 19, 2009 at 5:09 PM, Dave Watts wrote: yeah...I have multiple sites on my laptop for testing...so i don't have / defined. I did just creat a mapping ot that directory and CF admin took the values. Is there anything else that needs to be set up? I have the files...yet to be coded...but the files are there. I try to pull up a page that doesn't exist and I still get the standard cf error page. The site-wide error handler doesn't apply to pages that don't exist. There's a 404 handler for that, if I recall correctly. Dave Watts, CTO, Fig Leaf Software http://www.figleaf. ~| 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:322647 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Site-wide Error Handler
In the CFAdmin it says to put the relative path to the template. Where do I put the file and how to I format the path? I have tried many combinations and it keeps saying it cannot find the file. We use IIS if this helps. Chad ~| 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:315596 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Site-wide Error Handler
Chad Gray wrote: Where do I put the file and how to I format the path? There is a little understood weirdness to the MX generation of ColdFusion. It has two web roots in which it will look for CFM files. The first is the web root defined in the web server, IIS in your case. The second is in the Java server root. It is only in the latter that I have ever successfully used the site wide error handler. On my system this root folder is drive:\JRun4\servers\cfusion\cfusion-ear\cfusion-war, but this will very greatly depending on what version, flavor and configuration choices of ColdFusion you have installed. ~| 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:315598 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Site-wide Error Handler
Hmm ya I made a mapping to a folder called errors and put my 404 page and error page in it. Then I used /errors/404.cfm in the cfadmin and it says it found the pages, but they don't run on the web sites. The IIS 404 runs, but my custom 404.cfm page in the errors mapping does not run. Like even if I do http://localhost/errors/404.cfm i get IIS's 404 page. Shouldn't the mapping deliver the 404.cfm page? -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 3:06 PM To: cf-talk Subject: Re: Site-wide Error Handler Chad Gray wrote: Where do I put the file and how to I format the path? There is a little understood weirdness to the MX generation of ColdFusion. It has two web roots in which it will look for CFM files. The first is the web root defined in the web server, IIS in your case. The second is in the Java server root. It is only in the latter that I have ever successfully used the site wide error handler. On my system this root folder is drive:\JRun4\servers\cfusion\cfusion-ear\cfusion-war, but this will very greatly depending on what version, flavor and configuration choices of ColdFusion you have installed. ~| 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:315609 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Site-wide Error Handler
So I took the paths out for the 404 path and submitted the cfadmin page so it set back to default. Now I get the stock 404 CF error if it cannot find a CFM page. I put the path back in cfadmin and refreshed the missing page test1.cfm and my 404.cfm page ran. I tried another page test2.cfm and it displays the IIS 404. It did not try to run the CF 404 page. My 404.cfm page only runs on the first one I tried. Test1.cfm. It is like the javabyte code was created once so it is cached and now no other pages run the 404.cfm page. Strange. This is MX7. Maybe a bug? -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 3:55 PM To: cf-talk Subject: RE: Site-wide Error Handler Hmm ya I made a mapping to a folder called errors and put my 404 page and error page in it. Then I used /errors/404.cfm in the cfadmin and it says it found the pages, but they don't run on the web sites. The IIS 404 runs, but my custom 404.cfm page in the errors mapping does not run. Like even if I do http://localhost/errors/404.cfm i get IIS's 404 page. Shouldn't the mapping deliver the 404.cfm page? -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 3:06 PM To: cf-talk Subject: Re: Site-wide Error Handler Chad Gray wrote: Where do I put the file and how to I format the path? There is a little understood weirdness to the MX generation of ColdFusion. It has two web roots in which it will look for CFM files. The first is the web root defined in the web server, IIS in your case. The second is in the Java server root. It is only in the latter that I have ever successfully used the site wide error handler. On my system this root folder is drive:\JRun4\servers\cfusion\cfusion-ear\cfusion-war, but this will very greatly depending on what version, flavor and configuration choices of ColdFusion you have installed. ~| 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:315612 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Site-wide Error Handler
iirc, there is a setting in IIS somewhere to check that file exists or not - if you have that checked (as in, yes, IIS, check that the file exists before doing anything), then IIS will show its 404 page even for ..cfm pages... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Chad Gray wrote: So I took the paths out for the 404 path and submitted the cfadmin page so it set back to default. Now I get the stock 404 CF error if it cannot find a CFM page. I put the path back in cfadmin and refreshed the missing page test1.cfm and my 404.cfm page ran. I tried another page test2.cfm and it displays the IIS 404. It did not try to run the CF 404 page. My 404.cfm page only runs on the first one I tried. Test1.cfm. It is like the javabyte code was created once so it is cached and now no other pages run the 404.cfm page. Strange. This is MX7. Maybe a bug? -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 3:55 PM To: cf-talk Subject: RE: Site-wide Error Handler Hmm ya I made a mapping to a folder called errors and put my 404 page and error page in it. Then I used /errors/404.cfm in the cfadmin and it says it found the pages, but they don't run on the web sites. The IIS 404 runs, but my custom 404.cfm page in the errors mapping does not run. Like even if I do http://localhost/errors/404.cfm i get IIS's 404 page. Shouldn't the mapping deliver the 404.cfm page? -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 3:06 PM To: cf-talk Subject: Re: Site-wide Error Handler Chad Gray wrote: Where do I put the file and how to I format the path? There is a little understood weirdness to the MX generation of ColdFusion. It has two web roots in which it will look for CFM files. The first is the web root defined in the web server, IIS in your case. The second is in the Java server root. It is only in the latter that I have ever successfully used the site wide error handler. On my system this root folder is drive:\JRun4\servers\cfusion\cfusion-ear\cfusion-war, but this will very greatly depending on what version, flavor and configuration choices of ColdFusion you have installed. ~| 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:315652 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
post limit and site wide error handler
Can anyone verify for me that CF *does* or *does not* handle POST size errors with a site wide error handler? Mine does not. instead of a normal CF error I get one of them ugly jrun 500 errors that looks like this: 500 coldfusion.filter.RequestThrottleFilter$PostSizeLimitExceededException: Post Size exceeds the maximum limit. at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:112) at coldfusion.CfmServlet.service(CfmServlet.java:175) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at com.intergral.fusionreactor.filter.FusionReactorFilter.G(Unknown Source) at com.intergral.fusionreactor.filter.FusionReactorFilter.B(Unknown Source) at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(Unknown Source) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) -- 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;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308368 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: post limit and site wide error handler
(oh ... 8.0.1 with the latest cumulative hot fix, on windows.. cf standard) On Tue, Jul 1, 2008 at 10:17 AM, Rick Root [EMAIL PROTECTED] wrote: Can anyone verify for me that CF *does* or *does not* handle POST size errors with a site wide error handler? Mine does not. instead of a normal CF error I get one of them ugly jrun 500 errors that looks like this: 500 coldfusion.filter.RequestThrottleFilter$PostSizeLimitExceededException: Post Size exceeds the maximum limit. at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:112) at coldfusion.CfmServlet.service(CfmServlet.java:175) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at com.intergral.fusionreactor.filter.FusionReactorFilter.G(Unknown Source) at com.intergral.fusionreactor.filter.FusionReactorFilter.B(Unknown Source) at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(Unknown Source) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderark -- 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;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308370 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: post limit and site wide error handler
Can anyone verify for me that CF *does* or *does not* handle POST size errors with a site wide error handler? It does not. I think you can use the JRun web server error handler for this; with IIS, you'd specify an errorurl entry in wsconfig\1\jrun.ini (assuming that IIS is the first web server configured for use with CF). 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! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308382 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: post limit and site wide error handler
On Tue, Jul 1, 2008 at 11:32 AM, Dave Watts [EMAIL PROTECTED] wrote: Can anyone verify for me that CF *does* or *does not* handle POST size errors with a site wide error handler? It does not. I think you can use the JRun web server error handler for this; with IIS, you'd specify an errorurl entry in wsconfig\1\jrun.ini (assuming that IIS is the first web server configured for use with CF). as instructed here? http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19300 But that would have to be a very generic error page for any jrun error right, I couldn't perform CF processing and display a friendly error message based on the actual error that occurred (presumably, other errors SHOULD NOT occur but you never know!) I found this blog comment: http://coldfused.blogspot.com/2007/08/coldfusion-8-changes-with-file-upload.html Down on the page, a guy named rupesh kumar said: Let the post size be there in the server and set an error page for this in the web.xml. Thats because your site error handler and application error handler will also not get a chance to handle it. but goes into no further detail... Rick ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308385 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: post limit and site wide error handler
as instructed here? http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19300 Yes. But that would have to be a very generic error page for any jrun error right, I couldn't perform CF processing and display a friendly error message based on the actual error that occurred (presumably, other errors SHOULD NOT occur but you never know!) Yes, that's correct. That page wouldn't receive any error variables, and should be a static file. Other errors may well occur, and if those errors occur CF pages may not be available at all. In fact, I don't even know if a CF page will work there at all. I found this blog comment: http://coldfused.blogspot.com/2007/08/coldfusion-8-changes-wit h-file-upload.html Down on the page, a guy named rupesh kumar said: Let the post size be there in the server and set an error page for this in the web.xml. Thats because your site error handler and application error handler will also not get a chance to handle it. but goes into no further detail... Rupesh is the author of the blog, and is (or was) on the CF 8 development team. Here's what this means, generally: http://www.jguru.com/faq/view.jsp?EID=318806 That said, I haven't tried it. I assumed that the connector would handle file upload throttle errors. I might be wrong about that, though. 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! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308396 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Site-wide Error Handler
Is there a way to override the Site-wide Error Handler for a specific template? I ask because I need to test some code on our production server due to some third party licensing issues but my errors are of course obscured by our error handler. I don't want to turn it off globally as that would interfere with the actual web site I just want something to avoid it on this one template. -- Jay No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.17/1179 - Release Date: 09/12/2007 11:06 ~| 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:294445 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
re: Site-wide Error Handler
I support a site where we do this based on client IP: cfset unblockedIPs = 'xx.xx.xxx.xx,yy.yy.yyy.yy' cfif NOT ListFind(unblockedIPs, cgi.remote_addr) cferror... /cfif So, it makes sense to me that you could override the site-wide error handler in the same way by changing the if to cfif ListFind(unblockedIPs, cgi.remote_addr) Then in the template specified in the cferror tag you could dump out certain structures to help yourself find any errors. -- Jake Churchill Team Leader 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: James Smith [EMAIL PROTECTED] Sent: Monday, December 10, 2007 4:46 AM To: CF-Talk cf-talk@houseoffusion.com Subject: Site-wide Error Handler Is there a way to override the Site-wide Error Handler for a specific template? I ask because I need to test some code on our production server due to some third party licensing issues but my errors are of course obscured by our error handler. I don't want to turn it off globally as that would interfere with the actual web site I just want something to avoid it on this one template. -- Jay No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.17/1179 - Release Date: 09/12/2007 11:06 ~| 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:294447 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Site-wide Error Handler
How could I use this to disable the Site-wide Error Handler (set in the administrator) though? -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: 10 December 2007 13:28 To: CF-Talk Subject: re: Site-wide Error Handler I support a site where we do this based on client IP: cfset unblockedIPs = 'xx.xx.xxx.xx,yy.yy.yyy.yy' cfif NOT ListFind(unblockedIPs, cgi.remote_addr) cferror... /cfif So, it makes sense to me that you could override the site-wide error handler in the same way by changing the if to cfif ListFind(unblockedIPs, cgi.remote_addr) Then in the template specified in the cferror tag you could dump out certain structures to help yourself find any errors. -- Jake Churchill Team Leader 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: James Smith [EMAIL PROTECTED] Sent: Monday, December 10, 2007 4:46 AM To: CF-Talk cf-talk@houseoffusion.com Subject: Site-wide Error Handler Is there a way to override the Site-wide Error Handler for a specific template? I ask because I need to test some code on our production server due to some third party licensing issues but my errors are of course obscured by our error handler. I don't want to turn it off globally as that would interfere with the actual web site I just want something to avoid it on this one template. -- Jay No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.17/1179 - Release Date: 09/12/2007 11:06 ~| 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:294448 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Site-wide Error Handler
Using CFERROR tags inside the application.cfm file should override the sitewide error handler. So, you'd create a custom error handler and implement it for your IP only and just dump out whatever you want to see. I admit this is a bit of a hacky solution, but it's the first thing that came to mind. _ Jake Churchill Team Leader 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 -Original Message- From: James Smith [mailto:[EMAIL PROTECTED] Sent: Monday, December 10, 2007 8:03 AM To: CF-Talk Subject: RE: Site-wide Error Handler How could I use this to disable the Site-wide Error Handler (set in the administrator) though? -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: 10 December 2007 13:28 To: CF-Talk Subject: re: Site-wide Error Handler I support a site where we do this based on client IP: cfset unblockedIPs = 'xx.xx.xxx.xx,yy.yy.yyy.yy' cfif NOT ListFind(unblockedIPs, cgi.remote_addr) cferror... /cfif So, it makes sense to me that you could override the site-wide error handler in the same way by changing the if to cfif ListFind(unblockedIPs, cgi.remote_addr) Then in the template specified in the cferror tag you could dump out certain structures to help yourself find any errors. -- Jake Churchill Team Leader 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: James Smith [EMAIL PROTECTED] Sent: Monday, December 10, 2007 4:46 AM To: CF-Talk cf-talk@houseoffusion.com Subject: Site-wide Error Handler Is there a way to override the Site-wide Error Handler for a specific template? I ask because I need to test some code on our production server due to some third party licensing issues but my errors are of course obscured by our error handler. I don't want to turn it off globally as that would interfere with the actual web site I just want something to avoid it on this one template. -- Jay No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.17/1179 - Release Date: 09/12/2007 11:06 ~| 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:294451 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Site-wide Error Handler
I was unaware of that, just setting a couple of cferror tags worked a treat, cheers. -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: 10 December 2007 14:25 To: CF-Talk Subject: RE: Site-wide Error Handler Using CFERROR tags inside the application.cfm file should override the sitewide error handler. So, you'd create a custom error handler and implement it for your IP only and just dump out whatever you want to see. I admit this is a bit of a hacky solution, but it's the first thing that came to mind. _ Jake Churchill Team Leader 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 -Original Message- From: James Smith [mailto:[EMAIL PROTECTED] Sent: Monday, December 10, 2007 8:03 AM To: CF-Talk Subject: RE: Site-wide Error Handler How could I use this to disable the Site-wide Error Handler (set in the administrator) though? -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: 10 December 2007 13:28 To: CF-Talk Subject: re: Site-wide Error Handler I support a site where we do this based on client IP: cfset unblockedIPs = 'xx.xx.xxx.xx,yy.yy.yyy.yy' cfif NOT ListFind(unblockedIPs, cgi.remote_addr) cferror... /cfif So, it makes sense to me that you could override the site-wide error handler in the same way by changing the if to cfif ListFind(unblockedIPs, cgi.remote_addr) Then in the template specified in the cferror tag you could dump out certain structures to help yourself find any errors. -- Jake Churchill Team Leader 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: James Smith [EMAIL PROTECTED] Sent: Monday, December 10, 2007 4:46 AM To: CF-Talk cf-talk@houseoffusion.com Subject: Site-wide Error Handler Is there a way to override the Site-wide Error Handler for a specific template? I ask because I need to test some code on our production server due to some third party licensing issues but my errors are of course obscured by our error handler. I don't want to turn it off globally as that would interfere with the actual web site I just want something to avoid it on this one template. -- Jay No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.17/1179 - Release Date: 09/12/2007 11:06 ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294458 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Site-wide error handler?
Thanks for sharing that code Matt, it is exactly what I have been looking for so I will continue to search for what I have done wrong to stop it working. I do have the other templates inside of the same directory so I think that I must be triggering another error apart from my intended one and so I will try to locate that. -Original Message- From: Matt Robertson [mailto:[EMAIL PROTECTED] Sent: 16 September 2005 21:59 To: CF-Talk Subject: Re: Site-wide error handler? Hi Andy, I wrote that handler, and it runs on a bunch of CF 6.1 servers and on some others I manage that are on CF5. I just looked at my own server's code and it follows that model pretty much exactly. Are you putting your included display pages in the same folder as the site-wide error handler? Or are you putting them in with the domain? If the site-wide handler is in c:/cfusionmx/wwwroot/myerrors/ then all of your include files have to be there as well if you are calling them as you are in that code. There's no problem with cfsavecontent. I've been using it in this context for ages. -- --mattRobertson-- Janitor, MSB Web Systems mysecretbase.com http://mysecretbase.com ~| 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:218591 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: Site-wide error handler?
Good call, I will try that also. -Original Message- From: Mary Jo Sminkey [mailto:[EMAIL PROTECTED] Sent: 19 September 2005 00:49 To: CF-Talk Subject: Re: Site-wide error handler? The problem is my pretty error page does not get display, the egenric ugly coldfusion page always appears and I do not know why. Have you tried using a cferror tag in your application.cfm page? That will also help isolate whether the problem is the error handler, or the call to it. ~| 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:218592 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: Site-wide error handler?
OK, a follow-up. This just confuses me even more. Did I mention that I was using Coldfusion 7? Anyway, trying to debug DumpMonger as you suggested. Do not understand why this is happening but if I comment out the cfsavecontent tags then all of the relevant structures are output to the screen and the ugly standard coldfusion error message is displayed at the bottom of the page still. If I leave the cfsavecontent tags in and then try to dump the cfsavecontent variable nothing is displayed except the ugly standard coldfusion error. I cannot see what I am doing wrong here, using those immortal words that we all use at somepoint 'this code should work!'. Does anyone know of any problem with Coldfusion 7 and site-wide error handling, I do not have a development CFMX box to try it on at the moment? -Original Message- From: Andy McShane [mailto:[EMAIL PROTECTED] Sent: 19 September 2005 10:10 To: CF-Talk Subject: RE: Site-wide error handler? Thanks for sharing that code Matt, it is exactly what I have been looking for so I will continue to search for what I have done wrong to stop it working. I do have the other templates inside of the same directory so I think that I must be triggering another error apart from my intended one and so I will try to locate that. -Original Message- From: Matt Robertson [mailto:[EMAIL PROTECTED] Sent: 16 September 2005 21:59 To: CF-Talk Subject: Re: Site-wide error handler? Hi Andy, I wrote that handler, and it runs on a bunch of CF 6.1 servers and on some others I manage that are on CF5. I just looked at my own server's code and it follows that model pretty much exactly. Are you putting your included display pages in the same folder as the site-wide error handler? Or are you putting them in with the domain? If the site-wide handler is in c:/cfusionmx/wwwroot/myerrors/ then all of your include files have to be there as well if you are calling them as you are in that code. There's no problem with cfsavecontent. I've been using it in this context for ages. -- --mattRobertson-- Janitor, MSB Web Systems mysecretbase.com http://mysecretbase.com ~| 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:218593 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: Site-wide error handler?
More info, tries it on an MX server, same result. I am forcing an error by trying to output a variable from a query that does not exist. If my only have my standard error page that I use now in the ErrorHandler directory everything is displayed correctly, it only goes wrong when I try to use the DataMonger page, go figure? ~| 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:218595 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: Site-wide error handler?
Since you can reproduce the problem on different servers and vers it sounds very much like you have something funky in the code. If CF detects an error in your error handler it will default to raw handling. I've never thought to try it before, but maybe you can wrap your error handler in the code below to make it try/catch (i.e. an error handler for the error handler). I don't have a clue if that would work in that context. Mary Jo brought up the cferror issue and that reminds me: I use a single-domain version of the error handler in the cferror statement. Then the s/w handler is just a backup. May be overkill if portability isn't your thing and you just want your hosted stuff to work right on your own server. An abbreviated version of the dump template is below. You can actually install this for temp debugging and it will toss data out to screen (although it scrubs any value for form.password... something you may want to look into for apps supplying stuff like that and ''form.creditcardnumber''. You don't want your error dumps handing out stuff like that no matter how you store them. -your error template- cftry cfset pop goes the weasel = DOH! cfcatch type=anycfinclude template=errcatch.cfm/cfcatch/cftry -errcatch.cfm- cfsavecontent variable=variables.dataDump cfinclude template=dumpmonger.cfm /cfsavecontent cfoutput#variables.datadump#/cfoutput -dumpmonger.cfm-- cfif isdefined(form.password)cfset form.password=[SCRUBBED]/cfif cflock scope=SERVER type=READONLY timeout=10 cfset variables.CFVer=Left(server.coldfusion.ProductVersion,1) /cflock cfloop list=CFCATCH,ERROR,APPLICATION,ATTRIBUTES,CALLER,CGI,CLIENT,FORM,REQUEST,SESSION,SERVER,THIS,THISTAG,URL,VARIABLES index=loopItem cfif IsDefined(#loopItem#) cfif variables.CFVer lt 6 brbrcfoutputb#loopItem#/b/cfoutput cfdump var=#Evaluate(loopItem)# cfelse cfdump var=#Evaluate(loopItem)# label=#loopItem# /cfif /cfif /cfloop -- --mattRobertson-- Janitor, MSB Web Systems mysecretbase.com http://mysecretbase.com ~| 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:218619 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: Site-wide error handler?
The problem is my pretty error page does not get display, the egenric ugly coldfusion page always appears and I do not know why. Have you tried using a cferror tag in your application.cfm page? That will also help isolate whether the problem is the error handler, or the call to it. ~| 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:218579 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
Site-wide error handler?
Hi I am trying to implement a site-wide error handler for a dedicated server running only 2 related aplications on a Coldfusion 7/Win2k3 setup. I have been trying to use the code I found at 'http://mysecretbase.com/building_a_coldfusion_error_handler.cfm'. All works fine up to a point. This error handler basically executes a generic error.cfm page which in turn includes a datadump page, that has options for handling the error data, and then includes my pretty looking error page informaing the user that an error has occurred. The problem is my pretty error page does not get display, the egenric ugly coldfusion page always appears and I do not know why. My error.cfm page has the following code; cfswitch expression=#cgi.Server_Name# cfcase value=mydomain.com,anotherdomain.com cfparam name=request.dumpMode default=STANDARD type=string cfscript request.emailTo=[EMAIL PROTECTED]; request.emailFrom=[EMAIL PROTECTED]; request.emailServer=mail.mydomain.com; /cfscript cfinclude template=dumpmonger.cfm cfinclude template=error_dsp01.cfm /cfcase cfcase value=yetanotherdomain.com cfparam name=request.dumpMode default=ONSCREEN type=string /cfcase cfdefaultcase cfparam name=request.dumpMode default=SECURE type=string cfscript request.emailTo=[EMAIL PROTECTED]; request.emailFrom=[EMAIL PROTECTED]; request.emailServer=mail.foohbar.gov; /cfscript cfinclude template=dumpmonger.cfm cfinclude template=error_dsp02.cfm /cfdefaultcase /cfswitch My datadump page has the following code; cfparam name=request.dumpMode default= type=string cfparam name=request.emailTo default= type=string cfparam name=request.emailFrom default= type=string cfparam name=request.emailServer default= type=string cflock scope=SERVER type=READONLY timeout=10 cfset variables.CFVer=Left(server.coldfusion.ProductVersion,1) /cflock cfscript request.vars=CFCATCH,ERROR,APPLICATION,ATTRIBUTES,CALLER,CGI, CLIENT,FORM,REQUEST,SESSION,THIS,THISTAG,URL,VARIABLES; request.theFileName=Replace(CreateUUID(),-,,all); request.errorDirectory=c:/cfusionmx/wwwroot/myerrors/; request.errorDomain=https://www.mydomain.com/errors/;; /cfscript cfsavecontent variable=variables.dataDump cfloop list=#request.vars# index=loopItem cfif IsDefined(#loopItem#) cfif Compare(variables.CFVer,6) OR Compare(variables.CFVer,7) brbrcfoutputb#loopItem#/b/cfoutput /cfif cfdump var=#Evaluate(loopItem)# label=#loopItem# /cfif /cfloop /cfsavecontent cffile action=write file=#request.errorDirectory##request.theFileName#.html output=#variables.dataDump# cfswitch expression=#request.dumpMode# cfcase value=STANDARD cfmail to=#request.emailTo# from=#request.emailFrom# subject=#cgi.server_name# Error server=#request.emailServer# type=HTML mimeattach=#request.errorDirectory##request.theFileName#.html p a href=#request.errorDomain#list.cfm See complete error list /a /p /cfmail /cfcase cfcase value=SECURE cfmail to=#request.emailTo# from=#request.emailFrom# subject=#cgi.server_name# Error server=#request.emailServer# type=HTML p a href=#request.errorDomain##request.theFileName#.html See It /a /p p a href=#request.errorDomain#list.cfm See complete error list /a /p /cfmail /cfcase cfcase value=ONSCREEN cfoutput #variables.dataDump# /cfoutput /cfcase /cfswitch After this my error_dsp01.cfm page should be displayed but never is. If I remove all of the code from my datadump page from the start of the cfsavecontent tage to the end then the pretty error page is displayed. Is there a problem using cfsavecontent in this page? This is driving my nuts! ~| 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:218497 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: Site-wide error handler?
Hi Andy, I wrote that handler, and it runs on a bunch of CF 6.1 servers and on some others I manage that are on CF5. I just looked at my own server's code and it follows that model pretty much exactly. Are you putting your included display pages in the same folder as the site-wide error handler? Or are you putting them in with the domain? If the site-wide handler is in c:/cfusionmx/wwwroot/myerrors/ then all of your include files have to be there as well if you are calling them as you are in that code. There's no problem with cfsavecontent. I've been using it in this context for ages. -- --mattRobertson-- Janitor, MSB Web Systems mysecretbase.com http://mysecretbase.com ~| 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:218528 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: Site-wide error handler?
Another thing, is the dumper doing its job? You stated you can execute it, but didn't state if it did what you expected. Do you maybe have cffile locked down? If I were debugging this I would stick something like cfoutput#now()#/cfoutputcfdump var=#error#cfabort into your dumper and move it down one line at a time until you see a whole different error than the one you are deliberately throwing to test this. When that happens yoiu should know whats blowing you up. -- --mattRobertson-- Janitor, MSB Web Systems mysecretbase.com http://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:218529 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
Got a nice site-wide error handler for CFMX?
Hi Anybody want to share their code for a site-wide error handler for CFMX? I have one from CF5 that emails me the details of the error and shows the user a nice message, but the new error details in cfmx are very nice, and I'd like to get at them. cfdump'ing the error struct shows what's available, but it certainly isn't formatted nicely, and the nested RootCause structs look complicated. Has anyone taken a stab at reproducing the standard error page, which shows SQL statements with errors, and stuff like that? Thanks Mark ~| 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:192087 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: Got a nice site-wide error handler for CFMX?
http://mysecretbase.com/Building_A_ColdFusion_Error_Handler.cfm Works for multiple sites in that you can set them to email errors, or just store them to disk (if they contain sensitive info that you don't want going out over email) or both, and has a viewer that lets you see the .html error files it generates, as well as talking about securing those stored pages from anyone but auth'd users. Dumps out any existing scope (I forgot to put in the cookie scope in the example), and works in CF5. But I use cfdump. I like its formatting :-) -- --mattRobertson-- Janitor, MSB Web Systems mysecretbase.com ~| 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:192102 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
Site-wide Error Handler Template for CFMX
Hi All, Does anybody have a good Site-wide Error Handler Template? Would like to share with me. If yes please email me off the list. I want to give a user-friendly message on the screen when there is a CF error. Ketan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Site-wide Error Handler Template for CFMX
part or all of this might be what you want.Its a handler and a viewer as well (If data is marked sensitive it doesn't email it). http://mysecretbase.com/Building_A_ColdFusion_Error_Handler.cfm -- --Matt Robertson-- MSB Designs, Inc. mysecretbase.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: Site-wide error handler code
Howie Hamlin wrote: Does anyone have a good site-wide error handler template that I can use?I would like to log error details and optionally email the errors at the same time. Here's one I'm playing around with right now.I'm curious if anyone knows if this would work in CF5? It determines which scopes exist, and uses cfsavecontent and cfdump to save error files to disk at the location you choose.It will optionally email those files as attachments This code is self-contained, but you can set its parameters in your individual apps too if you like.I'm planning on setting the email var in individual locations inside of specific templates so if sensitive data would wind up being dumped, sending an email with the attachment is defeated.You could also skip the 'else' email entirely here. HtH, -- --Matt Robertson-- MSB Designs, Inc. mysecretbase.com cfscript variables.sendEmail=; // Y=send email or leave blank for no xmit variables.emailTo=[EMAIL PROTECTED]; variables.emailFrom=[EMAIL PROTECTED]; variables.emailServer=mail.lelandwest.com; variables.vars=APPLICATION,ARGUMENTS,ATTRIBUTES,CALLER,CFCATCH,CGI,CLIENT,COOKIE,ERROR,FLASH,FORM,REQUEST,SERVER,SESSION,THIS,THISTAG,URL,VARIABLES; variables.theFileName=Replace(CreateUUID(),-,,all); variables.errorDirectory=c:\cfusionmx\wwwroot\; /cfscript cfsavecontent variable=variables.errorDump cfloop list=#variables.vars# index=loopItem cfif IsDefined(#loopItem#) cfdump var=#Evaluate(loopItem)# label=#loopItem# /cfif /cfloop /cfsavecontent cffile action="" file=#variables.errorDirectory##variables.theFileName#.html output=#variables.errorDump# cfif len(variables.sendEmail) cfmail to=#variables.emailTo# from=#variables.emailFrom# subject=Error Alert server=#variables.emailServer# type=HTML mimeattach=#variables.errorDirectory##variables.theFileName#.html Error dump attached. /cfmail cfelse cfmail to=#variables.emailTo# from=#variables.emailFrom# subject=Error Alert server=#variables.emailServer# type=HTML pAn error occurred:br #variables.theFileName#.html /p /cfmail /cfif show friendly oops display to user here [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Site-wide error handler code
Does anyone have a good site-wide error handler template that I can use?I would like to log error details and optionally email the errors at the same time. Thanks, -- Howie Hamlin - inFusion Project Manager On-Line Data Solutions, Inc. - www.CoolFusion.com inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server PrismAV - Virus scanning for ColdFusion applications Find out how iMS Stacks up to the competition: http://www.coolfusion.com/imssecomparison.cfm [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Site-wide Error Handler in CFMX Admin
Hi All, Does anybody have Site-wide Error Handler working in CFMX admin. I have a script which works on CF5.0 but doe snot work on CFMX. Also I am confused with this explainiation. Specify the relative path to a template to execute when the ColdFusion Application Server encounters errors while processing a request I tired calling my path as /cftools/systemerror.cfm and also c:\cftools\systemerror.cfm but no luck. Any help is appreciated. Thanks, Ketan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Site-wide Error Handler in CFMX Admin
is there a CF Mapping setup to point to c:\cftools ? the change between cf5 and MX means that instead of passing and absolute path you need to put a relative path to a CF mapping (not an IIS mapping) if your error template is set to c:\cftools\systemerror.cfm then add a mapping called something like cftools pointing to c:\cftools\ then use /cftools/systemerror.cfm as the error path HTH -Original Message- From: Ketan Patel [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 14:32 To: CF-Talk Subject: Site-wide Error Handler in CFMX Admin Hi All, Does anybody have Site-wide Error Handler working in CFMX admin. I have a script which works on CF5.0 but doe snot work on CFMX. Also I am confused with this explainiation. Specify the relative path to a template to execute when the ColdFusion Application Server encounters errors while processing a request I tired calling my path as /cftools/systemerror.cfm and also c:\cftools\systemerror.cfm but no luck. Any help is appreciated. Thanks, Ketan _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFlocation in a Site-wide Error Handler with CFMX and caffeine
Am I hopped up on too much caffeine this AM, or is this a change in MX with using Site-wide Error Handlers. I have two sites (same client different sites) hosted on the same server. I need to have different display error pages for each client but I would like to use the same Error Handler page and simply CFlocation off to the correct display error page. I do not seem to be able to use a CFlocation in the .cfm file that have defined as a Site-wide Error Handler in the CF admin. Does anyone know if one of the other methods will work? cfoutput scriptlocation='#myURL#';/script /cfoutput Or cfheader statuscode=301 cfheader name=Location value=http://domain/; Thanks Mark W. Breneman -Macromedia Certified ColdFusion Developer -Network / Web Server Administrator Vivid Media [EMAIL PROTECTED] www.vividmedia.com 608.270.9770 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFlocation in a Site-wide Error Handler with CFMX and caffeine
Mark W. Breneman wrote: cfheader statuscode=301 cfheader name=Location value=http://domain/; I am not familiar with your problem, but *don't* use a 301 for an error- redirect. A 301 is a permanent redirect which a browser is allowed to cache. Use a 302 or if a change from POST to GET is required and the browser sends headers indicating HTTP/1.1 capabilities a 307. Jochem ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
site-wide error handler
Hi All, I'm trying to implement a site-wide error handler. Although it works with a static page (an error occured etc..), I had no luck with putting cf logic into the error handler (cfmail). Has anyone successfuly implemented this in cf mx ? Thank you, Mahmut ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: site-wide error handler
Mahmut I have site-wide error on all my sites, MX included. Not sure what you have, but here is what I do: 1. In Application.cfm: CFERROR type=EXCEPTION template=ErrorTemplate.cfm 2. Then on ErrorTemplate: a. Just a general statement that there has been some error and that email is being sent to the webmaster. b. Include a CFMail (I use html as know it will be acceptable to me) to send me an automatic email message about the error: CFMail to=my email adress [EMAIL PROTECTED] subject=My site Error Message type=HTML An error was recorded on The Site's website: brbr 1. Error: br#CFError.Diagnostics# hr width=75% ol start=2 liDate/Time: #CFError.DateTime# liTemplate: #CFError.Template# liQueryString: #CFError.QueryString# liRef: #CFError.HttpReferer# liBrowser: #CFError.Browser# liRemote: #CFError.RemoteAddress# /ol Time: #DateFormat(Now(),m/d/yy)# : #TimeFormat(Now(),h:mm tt)# /CFMAIL That way, the user gets a user-friendly message and I get an informative email. Hope this helps. E. Keith Dodd Wings of Eagles Services www.wingserv.com - Original Message - From: Mahmut Basaran [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, January 10, 2003 8:17 PM Subject: site-wide error handler Hi All, I'm trying to implement a site-wide error handler. Although it works with a static page (an error occured etc..), I had no luck with putting cf logic into the error handler (cfmail). Has anyone successfuly implemented this in cf mx ? Thank you, Mahmut - [This E-mail scanned for viruses by declude AntiVirus Software] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: site-wide error handler
Does your #CFError.Diagnostics# in the email show what included template that the error occurred in? I just get this: ColdFusion was unable to determine the value of the parameter. This problem is very likely due to the fact that either: You have misspelled the parameter name, or You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or CFTABLE tag. The error occurred while processing an element with a general identifier of (#billID#), occupying document position (77:79) to (77:86). -Original Message- From: E. Keith Dodd [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 7:45 AM To: CF-Talk Subject: Re: site-wide error handler Mahmut I have site-wide error on all my sites, MX included. Not sure what you have, but here is what I do: 1. In Application.cfm: CFERROR type=EXCEPTION template=ErrorTemplate.cfm 2. Then on ErrorTemplate: a. Just a general statement that there has been some error and that email is being sent to the webmaster. b. Include a CFMail (I use html as know it will be acceptable to me) to send me an automatic email message about the error: CFMail to=my email adress [EMAIL PROTECTED] subject=My site Error Message type=HTML An error was recorded on The Site's website: brbr 1. Error: br#CFError.Diagnostics# hr width=75% ol start=2 liDate/Time: #CFError.DateTime# liTemplate: #CFError.Template# liQueryString: #CFError.QueryString# liRef: #CFError.HttpReferer# liBrowser: #CFError.Browser# liRemote: #CFError.RemoteAddress# /ol Time: #DateFormat(Now(),m/d/yy)# : #TimeFormat(Now(),h:mm tt)# /CFMAIL That way, the user gets a user-friendly message and I get an informative email. Hope this helps. E. Keith Dodd Wings of Eagles Services www.wingserv.com - Original Message - From: Mahmut Basaran [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, January 10, 2003 8:17 PM Subject: site-wide error handler Hi All, I'm trying to implement a site-wide error handler. Although it works with a static page (an error occured etc..), I had no luck with putting cf logic into the error handler (cfmail). Has anyone successfuly implemented this in cf mx ? Thank you, Mahmut - [This E-mail scanned for viruses by declude AntiVirus Software] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: site-wide error handler
I think that is different to what Mahmut is looking for Look in the /wwwroot/WEB_INF/web.xml where you can specify handlers eg error-page error-code500/error-code location/WEB-INF/exception/java/lang/Exception.cfm/location /error-page wg -Original Message- From: E. Keith Dodd [mailto:[EMAIL PROTECTED]] Sent: 10 January 2003 15:45 To: CF-Talk Subject: Re: site-wide error handler Mahmut I have site-wide error on all my sites, MX included. Not sure what you have, but here is what I do: 1. In Application.cfm: CFERROR type=EXCEPTION template=ErrorTemplate.cfm 2. Then on ErrorTemplate: a. Just a general statement that there has been some error and that email is being sent to the webmaster. b. Include a CFMail (I use html as know it will be acceptable to me) to send me an automatic email message about the error: CFMail to=my email adress [EMAIL PROTECTED] subject=My site Error Message type=HTML An error was recorded on The Site's website: brbr 1. Error: br#CFError.Diagnostics# hr width=75% ol start=2 liDate/Time: #CFError.DateTime# liTemplate: #CFError.Template# liQueryString: #CFError.QueryString# liRef: #CFError.HttpReferer# liBrowser: #CFError.Browser# liRemote: #CFError.RemoteAddress# /ol Time: #DateFormat(Now(),m/d/yy)# : #TimeFormat(Now(),h:mm tt)# /CFMAIL That way, the user gets a user-friendly message and I get an informative email. Hope this helps. E. Keith Dodd Wings of Eagles Services www.wingserv.com - Original Message - From: Mahmut Basaran [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, January 10, 2003 8:17 PM Subject: site-wide error handler Hi All, I'm trying to implement a site-wide error handler. Although it works with a static page (an error occured etc..), I had no luck with putting cf logic into the error handler (cfmail). Has anyone successfuly implemented this in cf mx ? Thank you, Mahmut - [This E-mail scanned for viruses by declude AntiVirus Software] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: site-wide error handler
Tim You're right, the Diagnostics doesn't give the offending template--as it did in CF5. Interestingly, it gives the line number, but not the template. Wonder if this is a KNOWN ISSUE? Makes the information a tad limited! I hadn't noticed until just tried to make an error, as I also get the template from: liTemplate: #CFError.Template# (I find the standard error messages on MX much less valuable than on previous versions, especially those involving a query.) Keith - Original Message - From: Tim Do [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, January 10, 2003 10:54 AM Subject: RE: site-wide error handler Does your #CFError.Diagnostics# in the email show what included template that the error occurred in? I just get this: ColdFusion was unable to determine the value of the parameter. This problem is very likely due to the fact that either: You have misspelled the parameter name, or You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or CFTABLE tag. The error occurred while processing an element with a general identifier of (#billID#), occupying document position (77:79) to (77:86). -Original Message- From: E. Keith Dodd [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 7:45 AM To: CF-Talk Subject: Re: site-wide error handler Mahmut I have site-wide error on all my sites, MX included. Not sure what you have, but here is what I do: 1. In Application.cfm: CFERROR type=EXCEPTION template=ErrorTemplate.cfm 2. Then on ErrorTemplate: a. Just a general statement that there has been some error and that email is being sent to the webmaster. b. Include a CFMail (I use html as know it will be acceptable to me) to send me an automatic email message about the error: CFMail to=my email adress [EMAIL PROTECTED] subject=My site Error Message type=HTML An error was recorded on The Site's website: brbr 1. Error: br#CFError.Diagnostics# hr width=75% ol start=2 liDate/Time: #CFError.DateTime# liTemplate: #CFError.Template# liQueryString: #CFError.QueryString# liRef: #CFError.HttpReferer# liBrowser: #CFError.Browser# liRemote: #CFError.RemoteAddress# /ol Time: #DateFormat(Now(),m/d/yy)# : #TimeFormat(Now(),h:mm tt)# /CFMAIL That way, the user gets a user-friendly message and I get an informative email. Hope this helps. E. Keith Dodd Wings of Eagles Services www.wingserv.com - [This E-mail scanned for viruses by declude AntiVirus Software] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: site-wide error handler
I think that is different to what Mahmut is looking for Look in the /wwwroot/WEB_INF/web.xml where you can specify handlers eg error-page error-code500/error-code location/WEB-INF/exception/java/lang/Exception.cfm/location /error-page I think that's also different from what Mahmut is looking for! Within the CF Administrator, you can specify a site-wide error handler on the Settings page. That's not the same as changing the path to default error handlers in the web.xml file. The files specified in web.xml will be used if there's an error in your site-wide error handler, or if you don't specify a site-wide error handler in the CF Administrator and don't catch the error with CFERROR or exception handling. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: site-wide error handler
Hi All, I'm sorry for the confusion, I was trying to setup a site-wide error handler in cf administration. I did but it doesn't work. This is what did: 1) made a template called handleOurErrors.cfm in /sitewide 2) put /sitewide/handleOurErrors.cfm in cfadmin - settings - sitewide box 3) call a bad template to see the results. The code in handleOurErrors.cfm is: Something is wrong, blah blah. cfmail ... #error.variablesHere# /cfmail Problem is, cf doesn't like it. It says error occured in site-wide handler. After noticing that problem, I added a cferror type=x template/sitewide/anotherHandlerFile.cfm tag to the errorhandler template. But this time, it doesn't process any coldfusion except displaying the error.variables. Any ideas? - Original Message - From: Dave Watts [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, January 10, 2003 8:24 AM Subject: RE: site-wide error handler I think that is different to what Mahmut is looking for Look in the /wwwroot/WEB_INF/web.xml where you can specify handlers eg error-page error-code500/error-code location/WEB-INF/exception/java/lang/Exception.cfm/location /error-page I think that's also different from what Mahmut is looking for! Within the CF Administrator, you can specify a site-wide error handler on the Settings page. That's not the same as changing the path to default error handlers in the web.xml file. The files specified in web.xml will be used if there's an error in your site-wide error handler, or if you don't specify a site-wide error handler in the CF Administrator and don't catch the error with CFERROR or exception handling. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4