`

org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invoca

 
阅读更多
错误描述:
ERROR - JobRunShell.run(211) | Job DEFAULT.StorageYKTMethod threw an unhandled Exception:
org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'sss' on target class [class com.talkweb.ecard.storage.action.StorageYKTMonitor] failed; nested exception is java.lang.NullPointerException
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:269)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: java.lang.NullPointerException
at com.talkweb.ecard.storage.action.StorageYKTMonitor.getStorageYKTMessage(StorageYKTMonitor.java:42)
at com.talkweb.ecard.storage.action.StorageYKTMonitor.sss(StorageYKTMonitor.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:260)
... 3 more
DEBUG - ExceptionHelper.supportsNestedThrowable(97) | Detected JDK support for nested exceptions.
ERROR - ErrorLogger.schedulerError(2185) | Job (DEFAULT.StorageYKTMethod threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'sss' on target class [class com.talkweb.ecard.storage.action.StorageYKTMonitor] failed; nested exception is java.lang.NullPointerException]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'sss' on target class [class com.talkweb.ecard.storage.action.StorageYKTMonitor] failed; nested exception is java.lang.NullPointerException
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:269)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
... 1 more
Caused by: java.lang.NullPointerException
at com.talkweb.ecard.storage.action.StorageYKTMonitor.getStorageYKTMessage(StorageYKTMonitor.java:42)
at com.talkweb.ecard.storage.action.StorageYKTMonitor.sss(StorageYKTMonitor.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:260)
... 3 more

解决方案:
spring属性注入不成功,为null。应该在sss()方法中调用属性的方法。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics