kyoty opened a new issue #5850:
URL: https://github.com/apache/dolphinscheduler/issues/5850


   **For better global communication, Please describe it in English. If you 
feel the description in English is not clear, then you can append description 
in Chinese(just for Mandarin(CN)), thx! **
   **Describe the bug**
   A clear and concise description of what the bug is.
   
   **To Reproduce**
   Steps to reproduce the behavior, for example:
   1. create a process definition
   2. create a mysql query task
   3. export the process definition, we would get a empty json, and the log 
shows below:
   
   ```java
   [ERROR] 2021-07-20 00:12:26.280 
org.apache.dolphinscheduler.api.controller.ProcessDefinitionController:[640] - 
batch export process definition by ids error
   java.lang.ClassCastException: com.fasterxml.jackson.databind.node.POJONode 
cannot be cast to com.fasterxml.jackson.databind.node.ObjectNode
        at 
org.apache.dolphinscheduler.api.utils.exportprocess.DataSourceParam.addExportSpecialParam(DataSourceParam.java:51)
        at 
org.apache.dolphinscheduler.api.service.impl.ProcessDefinitionServiceImpl.addExportTaskNodeSpecialParam(ProcessDefinitionServiceImpl.java:728)
        at 
org.apache.dolphinscheduler.api.service.impl.ProcessDefinitionServiceImpl.exportProcessMetaData(ProcessDefinitionServiceImpl.java:686)
        at 
org.apache.dolphinscheduler.api.service.impl.ProcessDefinitionServiceImpl.getProcessDefinitionList(ProcessDefinitionServiceImpl.java:639)
        at 
org.apache.dolphinscheduler.api.service.impl.ProcessDefinitionServiceImpl.batchExportProcessDefinitionByIds(ProcessDefinitionServiceImpl.java:621)
        at 
org.apache.dolphinscheduler.api.service.impl.ProcessDefinitionServiceImpl$$FastClassBySpringCGLIB$$e8e34ed9.invoke(<generated>)
        at 
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
        at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
        at 
org.apache.dolphinscheduler.api.service.impl.ProcessDefinitionServiceImpl$$EnhancerBySpringCGLIB$$f87458f2.batchExportProcessDefinitionByIds(<generated>)
        at 
org.apache.dolphinscheduler.api.controller.ProcessDefinitionController.batchExportProcessDefinitionByIds(ProcessDefinitionController.java:638)
        at 
org.apache.dolphinscheduler.api.controller.ProcessDefinitionController$$FastClassBySpringCGLIB$$dc9bf5db.invoke(<generated>)
        at 
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:752)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at 
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)
        at 
org.apache.dolphinscheduler.api.aspect.AccessLogAspect.doAround(AccessLogAspect.java:86)
        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)
   ```
   
   
   **Which version of Dolphin Scheduler:**
   latest dev branch
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to