Good afternoon. I am attempting to set up scheduled tasks using cfconfig, and immediately ran into problems and could use some advice.
I set up the task with this:
cfconfig task save task="Test Page" url=https://www.mydomain.com/server_up.cfm?scheduledtask startDate=1/1/2018 startTime="12:00 AM"
This caused the Web Admin page for “Scheduled Tasks” to get an error:
Lucee 5.4.4.38 Error (java.lang.NullPointerException)
Message java.lang.NullPointerException
Stacktrace The Error Occurred in
/admin/services.schedule.list.cfm: line 145
called from /admin/services.schedule.cfm: line 76
called from /admin/web.cfm: line 570
The task is listed here:
CommandBox:default> cfconfig task list
Task: Test Page
URL: https://www.mydomain.com/server_up.cfm?scheduledtask
Status: Running
I tried deleting the task with
CommandBox:default> cfconfig task delete
Enter task (name of the task) :Test Page
Scheduled task [Test Page] deleted.
And got a message that it was deleted. I restarted the server, ran cfconfig task list
again, and it shows the task still there, “running” just as before. I still cannot access the Scheduled Tasks on the web admin page.
I exported my cfconfig settings this way:
CommandBox:default> cfconfig export /web/default/wwwroot/.cfconfig.json
Config transferred to /web/default/wwwroot/.cfconfig.json!
I searched through that .cfconfig.json
document and found no references to any scheduled tasks.
What might I be missing here?