View Source

{kb-symptom}
There is an exception in the {{TaskSchedulerThread java.lang.NullPointerException}} thread.

This exception results in Data Center Console reports failing to run, with this stack trace reported in {{monitor.log}}:
{code}
<B>Exception in thread "TaskSchedulerThread" java.lang.NullPointerException </B>
at com.r1soft.control.dao.hibernate.TaskScheduleDAO.loadFullDetails(TaskScheduleDAO.java:167) 
at com.r1soft.control.dao.hibernate.TaskScheduleDAO.loadFullDetails(TaskScheduleDAO.java:18) 
at com.r1soft.control.dao.hibernate.HibernateDAO.findBySimpleCriteria(HibernateDAO.java:432) 
at com.r1soft.control.facade.TaskFacade.getSchedule(TaskFacade.java:59) 
at com.r1soft.control.task.scheduler.OMTaskSource.getNewTasks(OMTaskSource.java:22) 
at com.r1soft.control.task.scheduler.TaskScheduler$TaskSchedulerThread.run(TaskScheduler.java:454) 

{code}

{kb-cause}
This condition is caused by a report that was not successfully created or was deleted, resulting in an exception during evaluation by the Task Scheduler. This exception terminates the {{TaskSchedulerThread}}, resulting in scheduled reports failing to execute.

{kb-resolution}
This issue has been corrected in Data Center Console 4.0.

If you are unable to upgrade to DCC 4.0, you may remove all scheduled reports from your MySQL database, restart DCC, and then recreate any reports in order to correct this issue.

{code}
use <i>DCC</i>; <font color="green"> -- replace <i>DCC</i> with the name of your DCC database</font>
delete from taskschedules;
{code}

{kb-related-articles}