我正在尝试设置失火指令以忽略未命中的触发器
<object id="RunSchedulerJobTrigger" type="Spring.Scheduling.Quartz.CronTriggerObject, Spring.Scheduling.Quartz, Version=1.2.0.23130, Culture=neutral, PublicKeyToken=65e474d141e25e07">
<property name="jobDetail" ref="RunSchedulerJob" />
<property name="cronExpressionString" value="0 30 0 * * ?"/>
<!-- Value is a Cron String (0-Seconds[0-59] 30-Minutes[0-59] 0-hours[0-23] * * ?) means, Fire everyday at 12:30AM -->
**<property name="misfireInstructionName" value="IgnoreMisfirePolicy"/>**
</object>但得到的错误是
创建名为‘Spring.Scheduling.Quartz.CronTriggerObject.set_MisfireInstructionName(String’的对象时出错,该对象在‘Spring.Expressions.PropertyOrFieldNode.SetPropertyOrFieldValue(Object D:\Configuration\AppContext.xml第17行’中定义:初始化对象失败:未知字段'IgnoreMisfirePolicy‘-> System.Exception:未知字段'IgnoreMisfirePolicy’at Spring.Expressions.PropertyOrFieldNode.SetPropertyOrFieldValue(Object) at Spring.Expressions.PropertyOrFieldNode.Set(Object值) at Spring.Expressions.PropertyOrFieldNode.Set(Object context,EvaluationContext evalContext,object newValue) at file context,EvaluationContext evalContext,Spring.Objects.ObjectWrapper.SetPropertyValues(IPropertyValues newValue) at Spring.Objects.ObjectWrapper.SetPropertyValues(IPropertyValues propertyValues,Boolean ignoreUnknown) at newValue propertyValues,RootObjectDefinition定义,IObjectWrapper wrapper,IPropertyValues属性...
发布于 2014-01-15 03:08:27
我尝试过类似的配置,但无法在Spring.NET 1.3.2代码库中重现。我深入研究了旧的CVS库中的旧版本,这似乎是早期版本(1.2?-这似乎是你正在使用的版本)和has been since fixed (实际上是六年前的版本,哦,时间过得真快)中的一个bug。
我建议你尝试最新的1.3.2版本,看看它是否解决了你的问题。
https://stackoverflow.com/questions/21045292
复制相似问题