JinyLeeChina opened a new issue #3299:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/3299


   This error log:
   `[ERROR] 2020-07-22 11:00:22.209 
org.apache.dolphinscheduler.common.utils.JSONUtils:[145] - parse list exception!
   com.fasterxml.jackson.databind.JsonMappingException: Unexpected character 
(''' (code 39)): was expecting double-quote to start field name
    at [Source: 
(String)"[{'type':'WORKER','host':'/dolphinscheduler/nodes/worker/hadoop/192.168.0.3:5678','event':'server
 down','warning level':'serious'}]"; line: 1, column: 2] (through reference 
chain: java.util.ArrayList[0])
           at 
com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:394)
           at 
com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:365)
           at 
com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:302)
           at 
com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:245)
           at 
com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:27)
           at 
com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4013)
           at 
com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3042)
           at 
org.apache.dolphinscheduler.common.utils.JSONUtils.toList(JSONUtils.java:143)`
   
   I think the reason for this is that Jackson can't parse JSON fields with 
single quotes.


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


Reply via email to