-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error deserializing JobKey when deleting trigger #18
Comments
After more debugging, I think the problem is in the My two jobs in the Jobs collection look like this
I get the error, when the /* 1 */ job is deserialized. I think the deserialization is order dependent and having Durable field first, causes the error. |
Hi I fixed it for my case (i used [PersistJobDataAfterExecution] attribute) via updating whole document if (jobDetail.PersistJobDataAfterExecution)
{
this.Jobs.Update(
Query.EQ("_id", jobDetail.Key.ToBsonDocument()), Update.Replace(jobDetail.ToBsonDocument()));
} instead of if (jobDetail.PersistJobDataAfterExecution)
{
this.Jobs.Update(
Query.EQ("_id", jobDetail.Key.ToBsonDocument()),
Update.Set("JobDataMap", jobDetail.JobDataMap.ToBsonDocument()));
} in JobStore Class I am afraid for there is another place with the same behavior..... :( Thank you |
I received the following error
ReadStartDocument can only be called when CurrentBsonType is Document, not when CurrentBsonType is Boolean.
at line 20 (
var bsonType = bsonReader.CurrentBsonType;
) in the JobKeySerializer class.After debugging into the code, I cannot figure out how it gets past the
if (bsonType == BsonType.Document)
check.The stack trace is
The JSON of the job it is deserializing is
The log output is
The quartz_jobs.xml file
The text was updated successfully, but these errors were encountered: