@Override
public List<EventDetails> process(int event_status) throws EventDetailDataException {
String sql="select * from MicroServiceEventDetails where event_status=?";
List<EventDetails> EventDetailsList = template.query(sql, new BeanPropertyRowMapper<EventDetails>(EventDetails.class),new Object[] {event_status});
return EventDetailsList;
}
Apr 02、2017 6:26:04 AM org.springframework.scheduling.support.TaskUtils $ LoggingErrorHandler handleError SEVERE:スケジュールされたタスクで予期しないエラーが発生しました。 java.lang.NoSuchMethodError:org.springframework.core.convert.support.DefaultConversionService.getSharedInstance()Lorg/springframework/core/convert/ConversionService; org.springframework.jdbc.core.BeanPropertyRowMapperで 。com.syntel.boot.services.EventDetailServiceImplで(BeanPropertyRowMapper.java:91)com.syntel.boot.dao.EventProcessDaoImpl.process(EventProcessDaoImpl.java:38)で .process sun.reflect.NativeMethodAccessorImplで(EventDetailServiceImpl.java:73)com.syntel.boot.scheduler.microeventschudler.eventExcuter(microeventschudler.java:30)で sun.reflect.NativeMethodAccessorImpl.invoke0(ネイティブメソッド)で 。 org.springframework.schedulingでjava.lang.reflect.Method.invoke(Method.java:498) でsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) で(NativeMethodAccessorImpl.java:62) を呼び出します。 support.ScheduledMethodRunnable.run(S java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)は、Javaで でorg.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) でcheduledMethodRunnable.java:65) 。 java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.runでjava.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 301においてutil.concurrent.FutureTask.runAndReset(FutureTask.java:308) (ScheduledThreadPoolExecutor.java:180) (のScheduledThreadPoolExecutor .java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread .run(Thread.java:745)Lorg/springframework/core/convert/ConversionService;