java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to com.sitech.prom.channelsettle.rehearsal.busi.compute.vo.DatasyncJobIdDatasyncStatusVo at com.sitech.prom.channelsettle.rehearsal.busi.compute.scheduler.TimeScanRemoteScheduler.fiveMinExecute(TimeScanRemoteScheduler.java:149) ~[classes!/:1.0] at sun.reflect.GeneratedMethodAccessor255.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_161] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_161] at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) ~[spring-context-5.2.6.RELEASE.jar!/:5.2.6.RELEASE] at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[spring-context-5.2.6.RELEASE.jar!/:5.2.6.RELEASE] at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93) [spring-context-5.2.6.RELEASE.jar!/:5.2.6.RELEASE] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_161] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_161] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_161] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_161] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_161] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_161] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_161]
时间: 2024-03-08 11:45:34 浏览: 187
java.lang.NoClassDefFoundError错误解决办法
5星 · 资源好评率100%
这个错误信息显示了一个类型转换异常(ClassCastException)。错误提示信息中指出,java.util.LinkedHashMap 不能被转换为 com.sitech.prom.channelsettle.rehearsal.busi.compute.vo.DatasyncJobIdDatasyncStatusVo 类型。根据错误信息,错误发生在 TimeScanRemoteScheduler.java 文件的第149行,你可以检查一下这个代码位置,看看是否有类型转换的问题。
阅读全文