Problems with scanInterval and useProperties

665 views
Skip to first unread message

Tim Gebhardt

unread,
Nov 18, 2010, 4:17:20 PM11/18/10
to Quartz.NET
Hello,

I'm using the scanInterval=10 and useProperties=true configuration
values. I'm also using the database job store and I'm getting an
error on startup like this:

Quartz.JobPersistenceException: Couldn't update trigger state(s):
Couldn't serialize job data: JobDataMap values must be Strings when
the 'useProperties' property is set. Key of offending value:
LAST_MODIFIED_TIME ---> Quartz.JobPersistenceException: Couldn't
serialize job data: JobDataMap values must be Strings when the
'useProperties' property is set. Key of offending value:
LAST_MODIFIED_TIME ---> System.IO.IOException: JobDataMap values must
be Strings when the 'useProperties' property is set. Key of offending
value: LAST_MODIFIED_TIME
at
Quartz.Impl.AdoJobStore.StdAdoDelegate.ConvertToProperty(IDictionary
data)
at
Quartz.Impl.AdoJobStore.StdAdoDelegate.SerializeProperties(JobDataMap
data)
at
Quartz.Impl.AdoJobStore.StdAdoDelegate.SerializeJobData(JobDataMap
data)
at
Quartz.Impl.AdoJobStore.StdAdoDelegate.UpdateJobData(ConnectionAndTransactionHolder
conn, JobDetail job)
at
Quartz.Impl.AdoJobStore.JobStoreSupport.TriggeredJobComplete(ConnectionAndTransactionHolder
conn, SchedulingContext ctxt, Trigger trigger, JobDetail jobDetail,
SchedulerInstruction triggerInstCode)





It looks like the job that's use to kick off the xml file scan isn't
using strings for all of it's own properties.

Jaryd

unread,
Nov 19, 2010, 10:04:51 AM11/19/10
to Quartz.NET
If the job is already in the database it already has a serialized
JobDataMap. If that's the case, was the job added before you set
useProperties to true? If so, the binary data could contain data not
in a key/value pair.

Tim Gebhardt

unread,
Nov 19, 2010, 11:23:00 AM11/19/10
to quar...@googlegroups.com
It's not my own job and I'm not adding it to the scheduler.  All I did was set scanInterval=10.  It looks like Quartz.net's way of scheduling a periodic scan is to create it's own job.  I'm saying that the Quartz.net XML scanning job doesn't appear to work with the DB backed job store.


Tim


--
You received this message because you are subscribed to the Google Groups "Quartz.NET" group.
To post to this group, send email to quar...@googlegroups.com.
To unsubscribe from this group, send email to quartznet+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/quartznet?hl=en.


Reply all
Reply to author
Forward
0 new messages