Can anyone help me out on this error? I thought that I had solved the problem in my other post, but it turns out, that was not causing the ColdFusion event error. The error popped back up again. Here is error:
An exception occurred when invoking a event handler method from Application.cfc The method name is: onApplicationEnd.
What is going on? Here is Application.cfc Code:
Launch code in new window » Download code as text file »
I have ONE other page in the system. The index.cfm page:
Launch code in new window » Download code as text file »
I cannot for the life of me figure this out. PLEASE HELP!
Download Code Snippet ZIP File
Comments (8) | Post Comment | Ask Ben | Permalink | Other Searches | Print Page
Strange ColdFusion Application.cfc Error Update - It Works AND It Breaks
ColdFusion Error Thrown When Application.cfc Has Method Named "Trace"
Wow, not sure what the problem is. I just copied your code into a temp directory on my server and it ran fine. Have you restarted your CF lately?
FWIW, I'm on Apache 2.0.58 (on XP) w/ Enterprise CF 7,0,2,142559
Posted by 6dust on Oct 18, 2006 at 9:11 AM
6Dust,
Just to be clear, it's not writing any HTML file (error.htm) to the temp directory. You wouldn't be able to see the error on screen when running the index.cfm file.
Posted by Ben Nadel on Oct 18, 2006 at 9:14 AM
Ben,
Even I pasted your code in my system and run it, it works fine with no error. So where should I see the error?.
The file is not created and no dumping is there, is that your case?
Posted by Ameen on Oct 18, 2006 at 10:02 AM
i confirm that. i did try to run it on my end and it worked just fine. and no html file with error was created. the html eror file is created only if i ty with a purpose to create errors in index.cfm.
Posted by Ed on Oct 18, 2006 at 10:05 AM
I tried stripping out the OnError method and obviously the page works fine (as the OnSEssionEnd and OnApplicationEnd are not browser-related issues). However, I am also seeing that NONE of the errors are getting logged in the ColdFusion Application.log file. How strange is that??
Posted by Ben Nadel on Oct 18, 2006 at 10:53 AM
Works fine for me too - CF MX 7 on Windows 2003 server...
Everyone here has run it successfully; have you tried deleting your files and recreating them from what you've posted on the blog?
Posted by Seb Duggan on Oct 18, 2006 at 11:32 AM
Seb et al,
I have tried moving files around to no avail... here is an update:
http://bennadel.com/index.cfm?dax=blog:355.view
Posted by Ben Nadel on Oct 18, 2006 at 12:26 PM
heeyyyyyyyyyyyyyyyyyyyyy!!! sweet,,, this just made my day
Posted by rob on Dec 12, 2006 at 7:44 PM