njnu-seafish opened a new issue, #17528:
URL: https://github.com/apache/dolphinscheduler/issues/17528

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   For certain workflow instances, an exception occurs during the modify and 
save operation:
   
   > 
   2025-09-18 16:43:32.651 ERROR [qtp1813608092-24591] 
o.a.d.a.e.ApiExceptionHandler:[47] - Meet an unknown exception: 
   java.lang.IllegalArgumentException: Parse json: 
{"commandType":"START_PROCESS","subWorkflowInstance":false,"startNodes":[18783478428422],"commandParams":[],"timeZone":"GMT+08:00"}
 to type: java.util.Map<java.lang.String, java.lang.String> failed
        at 
org.apache.dolphinscheduler.common.utils.JSONUtils.parseObject(JSONUtils.java:295)
        at 
org.apache.dolphinscheduler.common.utils.JSONUtils.toMap(JSONUtils.java:251)
        at 
org.apache.dolphinscheduler.api.service.impl.WorkflowInstanceServiceImpl.updateWorkflowInstance(WorkflowInstanceServiceImpl.java:667)
        at 
org.apache.dolphinscheduler.api.service.impl.WorkflowInstanceServiceImpl$$FastClassBySpringCGLIB$$4b33d4bb.invoke(<generated>)
        at 
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:792)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762)
        at 
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
        at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
        at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762)
        at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:707)
        at 
org.apache.dolphinscheduler.api.service.impl.WorkflowInstanceServiceImpl$$EnhancerBySpringCGLIB$$ad4afa8d.updateWorkflowInstance(<generated>)
        at 
org.apache.dolphinscheduler.api.controller.WorkflowInstanceController.updateWorkflowInstance(WorkflowInstanceController.java:190)
   ......
   ......
   Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: 
Cannot deserialize value of type `java.lang.String` from Array value (token 
`JsonToken.START_ARRAY`)
    at [Source: 
(String)"{"commandType":"START_PROCESS","subWorkflowInstance":false,"startNodes":[18783478428422],"commandParams":[],"timeZone":"GMT+08:00"}";
 line: 1, column: 74] (through reference chain: 
java.util.LinkedHashMap["startNodes"])
        at 
com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
        at 
com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1752)
        at 
com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1526)
        at 
com.fasterxml.jackson.databind.deser.std.StdDeserializer._deserializeFromArray(StdDeserializer.java:222)
        at 
com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:46)
        at 
com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:11)
        at 
com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringKeyMap(MapDeserializer.java:623)
        at 
com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:449)
        at 
com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:32)
        at 
com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323)
        at 
com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4825)
        at 
com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3772)
        at 
com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3755)
        at 
org.apache.dolphinscheduler.common.utils.JSONUtils.parseObject(JSONUtils.java:293)
   
   ### What you expected to happen
   
   Can successfully trigger the workflow instance save operation.
   
   ### How to reproduce
   
   1, Enter the workflow instance menu
   
   <img width="1277" height="475" alt="Image" 
src="https://github.com/user-attachments/assets/2c3eab85-2ee3-4b7e-a8b1-0711e6e14c03";
 />
   
   2, Click the edit button
   
   <img width="1263" height="383" alt="Image" 
src="https://github.com/user-attachments/assets/6b49c1d2-0ef4-40fb-9410-27f3a005725f";
 />
   
   3, Click the save button
   
   <img width="1107" height="482" alt="Image" 
src="https://github.com/user-attachments/assets/9c7e78fa-ee84-4ffc-9e81-4dde5b72764c";
 />
   
   ### Anything else
   
   I have a bit of a question: a workflow instance should be a snapshot of a 
running workflow, so why can it be modified?
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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