Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/337.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无效属性';优先权';bean类[org.quartz.CronTrigger]:bean属性';优先权';不可写或具有无效的setter方法_Java_Spring - Fatal编程技术网

Java 无效属性';优先权';bean类[org.quartz.CronTrigger]:bean属性';优先权';不可写或具有无效的setter方法

Java 无效属性';优先权';bean类[org.quartz.CronTrigger]:bean属性';优先权';不可写或具有无效的setter方法,java,spring,Java,Spring,SpringFramework 3.x与Quartz 2.x.x中存在错误 在Jboss 5.2.0环境中部署失败的WAR文件 错误 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'artifactBat

SpringFramework 3.x与Quartz 2.x.x中存在错误 在Jboss 5.2.0环境中部署失败的WAR文件

错误

ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'artifactBatchTrigger' defined in class path resource [applicationContext-quartz.xml]: Invocation of init method failed; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'priority' of bean class [org.quartz.CronTrigger]: Bean property 'priority' is not writable or has an invalid setter method.
setter的参数类型与getter的返回类型匹配吗

xml文件config-spring


我想一夸脱和弹簧有冲突

多谢各位


nicola

请添加ArtifactBatchTask代码。因此,我们可以理解在任务类和/或属性bean中使用或不使用property“priority”的情况是相同的。对我来说,问题是Sring试图设置org.quartz.CronTrigger的(地下)“priority”属性。解决方案可能是在SPring之前跳过此设置优先级
<bean name="artifactBatchTask"
    class="it.infocamere.middleware.mccplus.quartz.ArtifactBatchTask">
    <property name="batchService" ref="artifactBatchService" />
</bean>