tracker issue : CF-3595428

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

Error when Scheduled Tasks page is displayed

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Delxino Wilson de Briano / Delxino Wilson de Briano (Delxino)

Created: 07/15/2013

Components: Scheduler

Versions: 10.0

Failure Type: Crash

Found In Build/Fixed In Build: Final /

Priority/Frequency: Major / Few users will encounter

Locale/System: English / Win 2008 Server

Vote Count: 0

Problem Description:Error when Scheduled Tasks page is displayed, Tasks not running

Steps to Reproduce:Log into Administrator, click Scheduled Tasks

Actual Result: Error displaying page, scheduled tasks not running at all.

Expected Result: Scheduled Tasks page, list of tasks.

Any Workarounds:  none

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

Watson Bug ID:	3595428

External Customer Info:
External Company:  
External Customer Name: Delxino
External Customer Email:  
External Test Config: My Hardware and Environment details:

Windows Server 2008, Coldfusion Server 10, Update 11 installed.

Attachments:

  1. July 16, 2013 00:00:00: 1_CF_ScheduleTasks_Error.jpg
  2. July 16, 2013 00:00:00: 2_CF_Scheduler_Log.jpg

Comments:

After a power failure a month ago, the system rebooted and I noticed the scheduled tasks were not running. I tried accessing the scheduled tasks page in the admin and got an error page. I just installed Update 11, hoping it would fix it, but still get error. I turned on Rubust Exception Info to get this error detail. I've attached screen shot of error when I press Scheduled Tasks from Admin.
Comment by External U.
14944 | July 15, 2013 10:00:49 PM GMT
FYI. I've tried restarting the server several times. I did not change anything. The error persists.
Comment by External U.
14945 | July 15, 2013 11:15:07 PM GMT
It looks like the scheduler service didn't start. Can you check the scheduler log or exception log and see why the service did not start?
Comment by Rupesh K.
14946 | July 16, 2013 12:26:40 AM GMT
I attached a screen shot of the Scheduler Log. I didn't find any entry in the Exception Log showing that the service didn't load. The coldfusion-error log had this entry during a restart yesterday which could be related: Jul 15, 2013 7:43:09 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/] created a ThreadLocal with key of type [coldfusion.util.DateUtils$1] (value [coldfusion.util.DateUtils$1@182d8eb]) and a value of type [java.util.GregorianCalendar] (value [java.util.GregorianCalendar[time=1373942497334,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="America/Los_Angeles",offset=-28800000,dstSavings=3600000,useDaylight=true,transitions=185,lastRule=java.util.SimpleTimeZone[id=America/Los_Angeles,offset=-28800000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2013,MONTH=6,WEEK_OF_YEAR=29,WEEK_OF_MONTH=3,DAY_OF_MONTH=15,DAY_OF_YEAR=196,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=3,AM_PM=1,HOUR=7,HOUR_OF_DAY=19,MINUTE=41,SECOND=37,MILLISECOND=334,ZONE_OFFSET=-28800000,DST_OFFSET=3600000]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. The only reference to "scheduling" in the coldfusion error log also showed: Jul 15, 2013 7:44:07 PM org.apache.catalina.core.ApplicationContext log INFO: ColdFusionStartUpServlet: ColdFusion: Starting application services Jul 15, 2013 7:44:07 PM org.apache.catalina.core.ApplicationContext log INFO: ColdFusionStartUpServlet: ColdFusion: VM version = 20.4-b02 java.lang.NullPointerException at coldfusion.server.jrun4.metrics.SimpleLoadMetric.run(SimpleLoadMetric.java:157) at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:211) at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:71)
Comment by External U.
14947 | July 16, 2013 01:56:13 AM GMT
It seems your neo-cron.xml got corrupted during the power failure that you mentioned. This is what is not letting the scheduler service to start. If the scheduler service does not start, the server wouldn't not be able to read any task and hence none of the tasks will run. There are two options for you - 1. If there is a backup file for neo-cron.xml, use that. 2. re-create the tasks. Regarding the SEVERE error that you mentioned, it has nothing to do with scheduled tasks and you can ignore it.
Comment by Rupesh K.
14948 | July 16, 2013 04:49:32 AM GMT
Thank you. I am happy to recreate the tasks. However, if I don't have a backup of neo-cron.xml, how do I re-create the tasks if I can't access the Scheduled Tasks screen? I tried renaming the existing neo-cron.xml file to a backup and restarting the entire server (thinking a new file would automatically get created like the log files), but it didn't create a new file. I still got an error after restart and trying to access the Scheduled Tasks page. (In the event there is not a way, I am trying to locate a backup of that file)
Comment by External U.
14949 | July 16, 2013 10:29:31 AM GMT
You can put the following content in the neo-cron.xml and start the server. YOu should be all good! <wddxPacket version='1.0'><header/><data><array length='4'><struct type='coldfusion.server.ConfigMap'></struct><boolean value='false'/><string></string><string>txt,log</string></array></data></wddxPacket>
Comment by Rupesh K.
14950 | July 18, 2013 06:20:23 AM GMT