[ERROR] 2020-09-08 16:52:12.087 org.apache.dolphinscheduler.api.controller.ExecutorController:[156] - execute process instance error
java.lang.NullPointerException: null
at org.apache.dolphinscheduler.dao.ProcessDao.verifyIsNeedCreateCommand(ProcessDao.java:223)
at org.apache.dolphinscheduler.dao.ProcessDao$$FastClassBySpringCGLIB$$ee5e71ba.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)
at org.apache.dolphinscheduler.dao.ProcessDao$$EnhancerBySpringCGLIB$$f01aea7c.verifyIsNeedCreateCommand()
at org.apache.dolphinscheduler.api.service.ExecutorService.insertCommand(ExecutorService.java:348)
at org.apache.dolphinscheduler.api.service.ExecutorService.execute(ExecutorService.java:220)
at org.apache.dolphinscheduler.api.controller.ExecutorController.execute(ExecutorController.java:153)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] 2020-09-08 16:43:02.346 org.apache.dolphinscheduler.server.master.runner.MasterExecThread:[174] - master exec thread exception: null
java.lang.NullPointerException: null
at org.apache.dolphinscheduler.dao.utils.BeanContext.getBean(BeanContext.java:56)
at org.apache.dolphinscheduler.server.master.runner.MasterBaseTaskExecThread.(MasterBaseTaskExecThread.java:84)
at org.apache.dolphinscheduler.server.master.runner.MasterTaskExecThread.(MasterTaskExecThread.java:52)
at org.apache.dolphinscheduler.server.master.runner.MasterExecThread.submitTaskExec(MasterExecThread.java:374)
at org.apache.dolphinscheduler.server.master.runner.MasterExecThread.submitStandByTask(MasterExecThread.java:979)
at org.apache.dolphinscheduler.server.master.runner.MasterExecThread.runProcess(MasterExecThread.java:879)
at org.apache.dolphinscheduler.server.master.runner.MasterExecThread.executeProcess(MasterExecThread.java:192)
at org.apache.dolphinscheduler.server.master.runner.MasterExecThread.run(MasterExecThread.java:171)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[ERROR] 2020-09-08 16:43:02.347 org.apache.dolphinscheduler.server.master.runner.MasterExecThread:[175] - process execute failed, process id:1728
I check the code, and found a bug:
this is "ProcessInstanceId",but in database,table "t_ds_command" has a wrong data:
so tmpObj is "processInstanceId":
so I got a NullPointerException,Idelete the wrong data, and now it is success!
it is not dirty data.
i notice that workflow state is 'failed', 'recovery from failed task' from web ui would set the "ProcessInstanceId" into params, i think there may be something error here.
The key 'processInstanceId' is write for 'sub process'.