1.本地tomcat是好使的,不报错。丢到服务器WebLogic就出现这个错误?
<!--湖南:审计报表,取数据用--> <bean id="HNExtractAuditRPTData" class="com.xwtec.quartz.HNExtractAuditRPTData"></bean> <bean id="methodHNExtractAuditRPTData" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> <property name="targetObject"> <ref bean="HNExtractAuditRPTData" /> </property> <property name="targetMethod"> <value>act</value> </property> </bean> <bean id="HNExtractAuditRPTDataCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> <property name="jobDetail"> <ref bean="methodHNExtractAuditRPTData" /> </property> <property name="cronExpression"> <value>0 59 14 * * ?</value><!--每天凌晨2点10分触发 --> </property> </bean>
2016-02-19 15:11:43.343 ERROR [DefaultQuartzScheduler_Worker-1] Job DEFAULT.methodHNExtractAuditRPTData threw an unhandled Exception: |org.quartz.core.JobRunShell.run(2
11)java.lang.NoSuchMethodError: org/quartz/JobExecutionException.<init>(Ljava/lang/String;Ljava/lang/Exception;Z)V
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:174)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:66)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
2016-02-19 15:11:43.350 ERROR [DefaultQuartzScheduler_Worker-1] Job (DEFAULT.methodHNExtractAuditRPTData threw an exception.|org.quartz.core.ErrorLogger.schedulerError(
2156)org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NoSuchMethodError: org/quartz/JobExecutionException.<init>(Ljava/lang/
String;Ljava/lang/Exception;Z)V] at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by:
java.lang.NoSuchMethodError: org/quartz/JobExecutionException.<init>(Ljava/lang/String;Ljava/lang/Exception;Z)V
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:174)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:66)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
... 1 more
com.xwtec.quartz.HNExtractAuditRPTData类中有定义act方法吗
本地不爆错,有的<beanname="methodHNExtractAuditRPTData"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<propertyname="targetObject">
<refbean="HNExtractAuditRPTData"/>
</property>
<propertyname="targetMethod">
<value>act</value>
</property>
</bean>
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。