You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Quartz.Spi.MongoDbJobStore 3.1.0, .Net5.0, 64 bit.
I'm trying to add some Triggers to already created jobs - (The jobs where created by another service).
The two services share an assembly that creates the JobKey.
System.ArgumentException: 'Job class cannot be null.'
This exception was originally thrown at this call stack:
Quartz.Impl.JobDetailImpl.JobType.set(System.Type)
Quartz.Spi.MongoDbJobStore.Models.JobDetail.GetJobDetail()
Quartz.Spi.MongoDbJobStore.MongoDbJobStore.StoreTriggerInternal(Quartz.Spi.IOperableTrigger, Quartz.IJobDetail, bool, Quartz.Spi.MongoDbJobStore.Models.TriggerState, bool, bool, System.Threading.CancellationToken)
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Quartz.Spi.MongoDbJobStore.MongoDbJobStore.StoreTrigger(Quartz.Spi.IOperableTrigger, bool, System.Threading.CancellationToken)
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
Tried to get the JobDetails which resulted in the same type of exception.
var jobDetail = await scheduler.GetJobDetail(triggerDetail.JobKey).ConfigureAwait(false);
I tried to add the assembly where the job implementation is present - did not change anything.
System.ArgumentException: 'Job class cannot be null.'
This exception was originally thrown at this call stack:
Quartz.Impl.JobDetailImpl.JobType.set(System.Type)
Quartz.Spi.MongoDbJobStore.Models.JobDetail.GetJobDetail()
Quartz.Spi.MongoDbJobStore.MongoDbJobStore.RetrieveJob(Quartz.JobKey, System.Threading.CancellationToken)
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
...
The text was updated successfully, but these errors were encountered:
Hi
Using Quartz.Spi.MongoDbJobStore 3.1.0, .Net5.0, 64 bit.
I'm trying to add some Triggers to already created jobs - (The jobs where created by another service).
The two services share an assembly that creates the JobKey.
When calling:
await scheduler.ScheduleJob(triggerDetail).ConfigureAwait(false);
Im getting the below exception.
System.ArgumentException: 'Job class cannot be null.'
This exception was originally thrown at this call stack:
Quartz.Impl.JobDetailImpl.JobType.set(System.Type)
Quartz.Spi.MongoDbJobStore.Models.JobDetail.GetJobDetail()
Quartz.Spi.MongoDbJobStore.MongoDbJobStore.StoreTriggerInternal(Quartz.Spi.IOperableTrigger, Quartz.IJobDetail, bool, Quartz.Spi.MongoDbJobStore.Models.TriggerState, bool, bool, System.Threading.CancellationToken)
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Quartz.Spi.MongoDbJobStore.MongoDbJobStore.StoreTrigger(Quartz.Spi.IOperableTrigger, bool, System.Threading.CancellationToken)
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
Tried to get the JobDetails which resulted in the same type of exception.
var jobDetail = await scheduler.GetJobDetail(triggerDetail.JobKey).ConfigureAwait(false);
I tried to add the assembly where the job implementation is present - did not change anything.
System.ArgumentException: 'Job class cannot be null.'
This exception was originally thrown at this call stack:
Quartz.Impl.JobDetailImpl.JobType.set(System.Type)
Quartz.Spi.MongoDbJobStore.Models.JobDetail.GetJobDetail()
Quartz.Spi.MongoDbJobStore.MongoDbJobStore.RetrieveJob(Quartz.JobKey, System.Threading.CancellationToken)
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
...
The text was updated successfully, but these errors were encountered: