spring3.2.5和quartz2.2.1的集群
spring3.x和quartz2.x的集群有人弄过么java.io.NotSerializableException: Unable to serialize JobDataMap for insertion into database because the value of property 'methodInvoker' is not serializable
这问题解决不了,度娘说替换MethodInvokingJobDetailFactoryBean,但是新版本jobdetail貌似变成了接口 spring3.2.5 quartz2.2.1 集群 --------------------编程问答-------------------- 你这是什么操作时抛的错 --------------------编程问答-------------------- tomcat启动的时候 --------------------编程问答--------------------
<bean id="freshScheduler" autowire="no" class="org.springframework.sche易做图ng.quartz.SchedulerFactoryBean">
<property name="dataSource" ref="ds_postgresql" />
<property name="applicationContextSchedulerContextKey" value="applicationContextKey" />
<property name="configLocation" value="classpath:quartz.properties" />
<property name="triggers">
<list>
<ref local="test3Trigger" />
</list>
</property>
</bean>
<bean id="test3Task" class="org.springframework.sche易做图ng.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="testQuarz" />
<property name="targetMethod" value="test3" />
</bean>
<bean id="test3Trigger" class="org.springframework.sche易做图ng.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="test3Task" />
<property name="cronExpression" value="0/10 * * * * ?" />
</bean>
--------------------编程问答--------------------
#========================================================================
# Configure Main Scheduler Properties
#========================================================================
org.quartz.scheduler.instanceName = FreshScheduler
org.quartz.scheduler.instanceId = AUTO
#========================================================================
# Configure ThreadPool
#========================================================================
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 5
org.quartz.threadPool.threadPriority = 5
org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread = true
#========================================================================
# Configure JobStore
#========================================================================
org.quartz.jobStore.misfireThreshold = 60000
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
org.quartz.jobStore.tablePrefix = QRTZ_
org.quartz.jobStore.isClustered = true
org.quartz.jobStore.clusterCheckinInterval = 20000
--------------------编程问答-------------------- 除 --------------------编程问答-------------------- 是不是没人使用最新版本?都用的spring3.x和quartz1.8啊!!! --------------------编程问答-------------------- 请问一下你的那个集群怎么做的,可以发个demo给我吗?
Caused by: java.io.NotSerializableException: Unable to serialize JobDataMap for insertion into database because the value of property 'methodInvoker' is not serializable: org.springframework.sche易做图ng.quartz.MethodInvokingJobDetailFactoryBean
at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.serializeJobData(StdJDBCDelegate.java:3083)
at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.insertJobDetail(StdJDBCDelegate.java:606)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeJob(JobStoreSupport.java:1112)
... 55 more
邮箱:1147399603@qq.com
谢谢!
补充:Java , Web 开发