I've just run your application.cfc on my dev machine and can't get an error....
just thought you'd like to know that it does work for some people! T On 18 Oct 2006, at 13:56, Ben Nadel wrote: > Tom, > > I see what you are saying, but two issues: > > 1. My code does not have any CFAbort tags, just the Application.cfc > and > the index.cfm. > > 2. You are checking for the EventName in the OnError method, which > means > that the OnError event has already fired when you are performing the > check. I am not concerned with stuff inside the OnError method. I am > concerned as to why the OnError even is being fired in the first > place. > > > Thanks for the suggestions, > Ben > > ...................... > Ben Nadel > Certified Advanced ColdFusion Developer > www.bennadel.com > > > -----Original Message----- > From: Tom King [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 18, 2006 8:52 AM > To: CF-Talk > Subject: Re: PLEASE HELP! Why is this application.cfc erroring out? > > Here is my error handling function: I think I'm right in saying that > without those additional lines, cfabort (if it's anywhere in your > script) will set off an error, and this way, ending the session or > application won't trigger said script either.. > T > ps - I'm a complete newbie, so I may be way off mark with this... > > > <cffunction name="onError" returntype="void" output="true"> > <cfargument name="exception" required="yes"/> > <cfargument name="eventName" type="string" > required="yes"/> > <cfif > StructKeyExists(arguments.exception.RootCause,"type") AND > arguments.exception.RootCause.type EQ > "coldfusion.runtime.AbortException"> > <cfreturn/> > </cfif> > <cfif EventName NEQ "onApplicationEnd" AND > EventName NEQ "onSessionEnd"> > <cfmail to="[EMAIL PROTECTED]" > from="Oxalto Error Handling" subject="Error: Brabant Ensemble" > type="html"> > <cfif > IsDefined("variables.error")><cfdump var="#variables.error#" > label="Error > Variables"/></cfif> <cfdump > var="#arguments.exception#" label="Exception Variables"/> > <cfdump var="#CGI#" > label="CGI Variables"/> <cfdump var="#application#" > label="Application"> > </cfmail> > <!--- message---> > <cfoutput> > <!DOCTYPE html PUBLIC "-// > W3C// DTD > XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html > xmlns="http://www.w3.org/1999/xhtml" lang="en"> > <head> > <meta http-equiv="Content-Type" > content="text/html; charset=ISO-8859-1" /> > <style type="text/css" > media="all"> > body {font:75%/140% > Arial, Helvetica, sans-serif;text-align:center;} > h1 {font- > weight:normal;} > a {color:##39c; > text-decoration:none;} > a:hover > {text-decoration:underline;} > ##container > {margin:20% > auto;width: 50%; text-align:left;} > </style> > <title>Fooe</title> > > </head> > > <body> > > <div id="container"> > > <h1>An > Error has Occured</h1> > > <p></p> > > <p>If > this > problem persists, please contact our <a > href="mailto:[EMAIL PROTECTED]">Webmaster</a>.</p> > </div> > </body> > </html> > </cfoutput> > </cfif> > </cffunction> > > On 18 Oct 2006, at 13:39, Ben Nadel wrote: > >> Maybe I do? Please explain? >> >> >> ...................... >> Ben Nadel >> Certified Advanced ColdFusion Developer www.bennadel.com >> >> >> -----Original Message----- >> From: Tom King [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 18, 2006 8:37 AM >> To: CF-Talk >> Subject: Re: PLEASE HELP! Why is this application.cfc erroring out? >> >> Don't you need >> >> <cfif EventName NEQ "onApplicationEnd" AND EventName NEQ >> "onSessionEnd"> >> >> in the OnError Function? >> >> T >> On 18 Oct 2006, at 13:26, Ben Nadel wrote: >> >>> Can someone please help me out here. My Application.cfc is throwing >>> errors on OnApplicationEnd method. I am banging my head against the >>> wall here. No idea what is going on and the debugging is not >>> useful at >> >>> all. >>> The error get's written to the file error.htm. If anyone can lend a >>> hand, that would be AWESOME. >>> >>> Code: >>> http://bennadel.com/index.cfm?dax=blog:354.view >>> >>> Thanks so much! >>> Ben >>> >>> ...................... >>> Ben Nadel >>> Certified Advanced ColdFusion Developer www.bennadel.com >>> >>> >>> >> >> >> >> > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257159 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

