muzhongjiang opened a new pull request #3078:
URL: https://github.com/apache/incubator-dolphinscheduler/pull/3078
## fixed bug "jackson enum conversion : InvalidFormatException"
**[ERROR]** 2020-06-29 20:02:08.580
org.apache.dolphinscheduler.common.utils.JSONUtils:[109] - parse object
exception!
com.fasterxml.jackson.databind.exc.**InvalidFormatException: Cannot
deserialize value of type
`org.apache.dolphinscheduler.common.enums.TaskTimeoutStrategy` from String "":
value not one of declared Enum instance names: [WARNFAILED, FAILED, WARN]**
at [Source: (String)"**{"strategy":"","interval":null,"enable":false}**";
line: 1, column: 13] (through reference chain:
org.apache.dolphinscheduler.common.task.TaskTimeoutParameter["strategy"])
at
com.fasterxml.jackson.databind.exc.InvalidFormatException.from(InvalidFormatException.java:67)
at
com.fasterxml.jackson.databind.DeserializationContext.weirdStringException(DeserializationContext.java:1549)
at
com.fasterxml.jackson.databind.DeserializationContext.handleWeirdStringValue(DeserializationContext.java:911)
at
com.fasterxml.jackson.databind.deser.std.EnumDeserializer._deserializeAltString(EnumDeserializer.java:255)
at
com.fasterxml.jackson.databind.deser.std.EnumDeserializer.deserialize(EnumDeserializer.java:179)
at
com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:127)
at
com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at
com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at
com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4013)
at
com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3004)
at
org.apache.dolphinscheduler.common.utils.JSONUtils.parseObject(JSONUtils.java:107)
## Verify this pull request

----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]