完整报错信息:elAdmin- 2021-04-02 14:33:47 [el-async-1] ERROR m.z.c.thread.AsyncTaskExecutePool - ====For input string: ""====
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at me.zhengjie.modules.quartz.service.impl.QuartzJobServiceImpl.executionSubJob(QuartzJobServiceImpl.java:136)
at me.zhengjie.modules.quartz.service.impl.QuartzJobServiceImpl$$FastClassBySpringCGLIB$$ee2aa31e.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:367)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115)
at java.util.concurrent.FutureTask.run$$$capture(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
elAdmin- 2021-04-02 14:33:47 [el-async-1] ERROR m.z.c.thread.AsyncTaskExecutePool - exception method:executionSubJob
出错地址:QuartzJobServiceImpl.java:136 findbyid方法中的参数转long类型失败
修改: QuartzJobServiceImpl.java85行 if(quartzJob.getSubTask() != null){ 改为 if(StringUtils.isNotBlank(quartzJob.getSubTask())){
完整报错信息:elAdmin- 2021-04-02 14:33:47 [el-async-1] ERROR m.z.c.thread.AsyncTaskExecutePool - ====For input string: ""==== java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Long.parseLong(Unknown Source) at java.lang.Long.parseLong(Unknown Source) at me.zhengjie.modules.quartz.service.impl.QuartzJobServiceImpl.executionSubJob(QuartzJobServiceImpl.java:136) at me.zhengjie.modules.quartz.service.impl.QuartzJobServiceImpl$$FastClassBySpringCGLIB$$ee2aa31e.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:367)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115)
at java.util.concurrent.FutureTask.run$$$capture(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
elAdmin- 2021-04-02 14:33:47 [el-async-1] ERROR m.z.c.thread.AsyncTaskExecutePool - exception method:executionSubJob