CherishCai commented on issue #125:
URL: 
https://github.com/apache/shardingsphere-elasticjob-ui/issues/125#issuecomment-883260104


   原因很相关的是 JobConfiguration yaml 字段的增加,在 3.0.0-RC1 -> 3.0.0 增加了 
label、staticSharding。
   看起来 3.0.0-RC1 难以平滑到 3.0.0
   
   ```java
   Caused by: org.yaml.snakeyaml.constructor.ConstructorException: Cannot 
create property=staticSharding for 
JavaBean=org.apache.shardingsphere.elasticjob.infra.pojo.JobConfigurationPOJO@68ad030d
    in 'string', line 1, column 1:
       cron: 0/10 * * * * ?
       ^
   Unable to find property 'staticSharding' on class: 
org.apache.shardingsphere.elasticjob.infra.pojo.JobConfigurationPOJO
    in 'string', line 19, column 17:
       staticSharding: false
                       ^
   
        at 
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:270)
        at 
org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:149)
        at 
org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:309)
        at 
org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:204)
        at 
org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:193)
        at 
org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:159)
        at 
org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:146)
        at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:524)
        at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:501)
        at 
org.apache.shardingsphere.elasticjob.infra.yaml.YamlEngine.unmarshal(YamlEngine.java:50)
   ```
   
   
![image](https://user-images.githubusercontent.com/16837364/126302910-8869782d-f19a-4de2-92b7-d6d1b4a7195c.png)
   


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