tracker issue : CF-3151872

select a category, or use search below
(searches all categories and all time range)
Title:

exception.log not updated when eventhandler="" attribute is specified and task throws exception

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 03/28/2012

Components: Scheduler

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Public Beta / CF11 Update5,CF10 Update16

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Platforms All

Vote Count: 0

Listed in the version 11.0.05.293506 Issues Fixed doc
If task has a handler, and exception is thrown, then exception.log is not updated.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3151872

External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:  
External Test Config: (code/instructions in forum thread - eventtracer.zip and eventviewer.zip)

Attachments:

Comments:

Related thread: http://prerelease.adobe.com/r/?153dbb7efc14463ca1c7c78d3636d762
Comment by External U.
19846 | March 28, 2012 09:57:48 AM GMT
Can this please be fixed? Not low-impact. It makes it trickier to troubleshoot when exceptions are not written to exception.log. People may think no exception was thrown, b/c it wasn't logged. Exceptions need to be logged.
Comment by External U.
19847 | April 03, 2012 06:51:56 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5 and ColdFusion 10 Update 16
Comment by CFwatson U.
19848 | February 20, 2015 09:28:58 AM GMT
Verified this is fixed in CF11 Update 5 (build 11,0,05,293506). It is also fixed in CF11 Update 4 (build 11,0,04,293328). Verified the issue did exist in CF10 Update 15 (build 10,0,15,292620). It looks like this might've been fixed when the context argument was added to ITaskEventHandler.cfc's execute method - but I forget which build that was. I see I did not add code to this ticket's description. The code I used to verify this is: index.cfm ---------------------- <cfif structKeyExists(URL, "updatetask")> <cfset dateTimeStart = dateAdd("n", 1, now())> <cfschedule action="update" task="ticketCF-3151872" startDate="#dateFormat(dateTimeStart, 'MM/DD/YYYY')#" startTime="#timeFormat(dateTimeStart, 'hh:nn tt')#" interval="once" eventhandler="#replace(listRest(getDirectoryFromPath(CGI.SCRIPT_NAME), '/', true), '/', '.', 'all')#TaskHandler"><!--- doesn't matter if onexception="invokehandler" exists or not ---> </cfif> <cfif structKeyExists(SERVER, "ticketCF-3151872")> <cfdump var="#SERVER.ticketCF-3151872#"> </cfif> TaskHandler.cfc ---------------------- <cfcomponent implements="CFIDE.scheduler.ITaskEventHandler"> <cffunction name="onTaskStart" returntype="boolean"> <cfargument name="context" type="struct" required="false"> <cfreturn true> </cffunction> <cffunction name="onTaskEnd" returntype="void"> <cfargument name="context" type="struct" required="false"> </cffunction> <cffunction name="onMisfire" returntype="void"> <cfargument name="context" type="struct" required="false"> </cffunction> <cffunction name="onError" returntype="void"> <cfargument name="context" type="struct" required="false"> </cffunction> <cffunction name="execute" returntype="void"> <cfargument name="context" type="struct" required="false"> <cfset SERVER.ticketCF-3151872 = 'task ran at ' & now()> <cfset foo = bar> </cffunction> </cfcomponent> Thanks!, -Aaron
Comment by External U.
19849 | November 22, 2015 08:17:19 PM GMT