Job Class Can Not Be Null

Job Class Can Not Be Null

This question has suggested answer(s)

I have a job created that runs fine as part of the job scheduler.  If I try move it into the "tasks.config" in the web folder, it throws an exception that.  the job class can not be null.

Is it not possible to run jobs in this location?

[ArgumentException: Job class cannot be null.]

  Quartz.JobDetail.set_JobType(Type value) +141

  Telligent.JobScheduler.Hosting.CronJobsApplication.LoadTasks(CronSchedulerConfigurationElement config, IScheduler scheduler) +320

  Telligent.JobScheduler.Hosting.JobsApplication.Initialize(SchedulerConfigurationElement config) +660

  Telligent.JobScheduler.Hosting.CronJobsApplication.Start() +272

[ConfigurationErrorsException: There was an error creating the cron scheduler.  Ensure configuration values are set correctly.  Check the inner exception for more details.]

  Telligent.JobScheduler.Hosting.CronJobsApplication.Start() +369

  Telligent.JobScheduler.Hosting.RuntimeHost.StartPrivate() +262

  Telligent.JobScheduler.Hosting.RuntimeHost.Start(TimeSpan timeout) +257

  Telligent.JobScheduler.JobsManager.Start() +278

  Couto.AddOnFramework.Core.Components.ApplicationStartup.Global.Application_Start(Object sender, EventArgs e) +499

All Replies
  • Did you move the dll that runs the job into the web?  Did you make sure there are no errors in the task definition and its in the right place (inside <Jobs />)
     
    Patrick Mason
    Development Lead- Extensibility
    o: 214.420.1329
    telligent.com
     
    From: lucasrd [mailto:bounce-lucasrd@communities.telligent.com]
    Sent: Friday, September 14, 2012 3:18 PM
    To: discussion_evolution@communities.telligent.com
    Subject: [Telligent Evolution Platform Discussion] Job Class Can Not Be Null
     

    I have a job created that runs fine as part of the job scheduler.  If I try move it into the "tasks.config" in the web folder, it throws an exception that.  the job class can not be null.

    Is it not possible to run jobs in this location?

    [ArgumentException: Job class cannot be null.]

      Quartz.JobDetail.set_JobType(Type value) +141

      Telligent.JobScheduler.Hosting.CronJobsApplication.LoadTasks(CronSchedulerConfigurationElement config, IScheduler scheduler) +320

      Telligent.JobScheduler.Hosting.JobsApplication.Initialize(SchedulerConfigurationElement config) +660

      Telligent.JobScheduler.Hosting.CronJobsApplication.Start() +272

    [ConfigurationErrorsException: There was an error creating the cron scheduler.  Ensure configuration values are set correctly.  Check the inner exception for more details.]

      Telligent.JobScheduler.Hosting.CronJobsApplication.Start() +369

      Telligent.JobScheduler.Hosting.RuntimeHost.StartPrivate() +262

      Telligent.JobScheduler.Hosting.RuntimeHost.Start(TimeSpan timeout) +257

      Telligent.JobScheduler.JobsManager.Start() +278

      Couto.AddOnFramework.Core.Components.ApplicationStartup.Global.Application_Start(Object sender, EventArgs e) +499

  • the proper dll is in the web/bin folder.  Here is a what what I did to my tasks.config:

    <?xml version="1.0" encoding="utf-8"?> <jobs> <dynamic mode="Client" threadPoolSize="3"> <jobstore connectionStringName="SiteSqlServer" tablePrefix="QRTZ_DYNAMIC_" enableClustering="true" /> </dynamic> <cron threadPoolSize="3"> <jobstore type="Quartz.Simpl.RAMJobStore, Quartz"/> <statusService enabled="true" localOnly="true"/> <jobListeners> <add type="Telligent.JobScheduler.Evolution.EvolutionJobListener, Telligent.JobScheduler.Evolution"/> </jobListeners> <modules> <add type="Telligent.JobScheduler.Evolution.EvolutionJobModule, Telligent.JobScheduler.Evolution"/> </modules> <jobs> <job schedule="0 */15 * * * ? *" type="Telligent.Evolution.Components.AnonymousUserJob, Telligent.Evolution.Components"/> <job schedule="0 */15 * * * ? *" type="Telligent.Evolution.Components.ReferralsJob, Telligent.Evolution.Components"/> <job schedule="0 */15 * * * ? *" type="Telligent.Evolution.Components.ViewsJob, Telligent.Evolution.Components"/> <job schedule="0 */15 * * * ? *" type="Telligent.Evolution.Wikis.Components.PageViewsJob, Telligent.Evolution.Wikis"/> <job schedule="0 1 0 ? * SAT" type="Community.Extensions.Jobs.RoleRemoval, Community.Extensions"> <settings> <add key="InactivityPeriodInMinutes" value="86400"></add> </settings> </job> </jobs> </cron> </jobs>

  • I had the same problem. Apparently the problem was not with my custom job but the following Telligent jobs that are commented out in Telligent 7 tasks.config:

    <job schedule="0 */15 * * * ? *" type="Telligent.Evolution.Components.ViewsJob, Telligent.Evolution.Components" />

    <job schedule="0 */15 * * * ? *" type="Telligent.Evolution.Wikis.Components.PageViewsJob, Telligent.Evolution.Wikis" />