Title: 
  Archive wizrad displays an exception if an attempt is made to archive a task with an event handler but no defined URL.
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): / ext-user (Piyush Kumar Nayak)
Created: 06/10/2013
Components: Scheduler
Versions: 10.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: 285099 / 285152
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Mac 10 All,Windows 7 SP1 64-bit
Vote Count: 0
Problem: 
Archive wizrad displays an exception if an attempt is made to archive a task with an event handler but no defined URL.
Method:
- place the attached event handler cfc in the same location as the template below.
- run the template to create the task.
- navigate to CF admin> packaging & deployment>ColdFusion Archives>create.
- Launch the archive wizard and, click on scheduled tasks step.
- observe the exception stack trace in the wizard UI mentioned in the result below.
<cfset targetDate = DateAdd("d",1,#now()#)>
<cfschedule 
	action="update" 
	mode="server" 
	task="testtaskmigration" 
	startDate="#DateFormat(targetDate,"mm/dd/yyyy")#" 
	startTime="#TimeFormat(targetDate,"hh:mm:ss tt")#" 
	interval="once"
	<!--- url="http://a.cfm" --->
	eventhandler="#getDirectoryFromPath(CGI.SCRIPT_NAME)#tasklistener" />
Result:
Element URL is undefined in a Java object of type class coldfusion.server.ConfigMap.
 
The error occurred in archivewizard_page_scheduledtasks.cfm: line 169
-1 : Unable to display error's location in a CFML template.
Resources:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser  	Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36
Remote Address  	0:0:0:0:0:0:0:1
Referrer  	http://localhost:8510/CFIDE/administrator/archives/wizards/archivewizard_navigation.cfm?archivename=misfire
Date/Time  	10-Jun-13 03:21 PM
Stack Trace
at cfarchivewizard_page_scheduledtasks2ecfm1760995997.runPage(C:/work/cf10_final_hotfix/cfusion/wwwroot/CFIDE/administrator/archives/wizards/archivewizard_page_scheduledtasks.cfm:169) 
coldfusion.runtime.UndefinedElementException: Element URL is undefined in a Java object of type class coldfusion.server.ConfigMap.
	at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1582)
	at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1805)
	at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1797)
	at cfarchivewizard_page_scheduledtasks2ecfm1760995997.runPage(C:\work\cf10_final_hotfix\cfusion\wwwroot\CFIDE\administrator\archives\wizards\archivewizard_page_scheduledtasks.cfm:169
Expected:
The archive wizard should not break.
Workaround:
n/a
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID:	3575825
Keywords:
FixTested
External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:
  Attachments:
Comments: