Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The service starts the error when upgrade snakeyaml to version 2.0 #27370

Closed
hanyongchao007 opened this issue Jul 22, 2023 · 5 comments · Fixed by #28805
Closed

The service starts the error when upgrade snakeyaml to version 2.0 #27370

hanyongchao007 opened this issue Jul 22, 2023 · 5 comments · Fixed by #28805

Comments

@hanyongchao007
Copy link

Caused by: java.lang.NoSuchMethodError: org.yaml.snakeyaml.representer.Representer: method ()V not found
at org.apache.shardingsphere.underlying.common.yaml.representer.DefaultYamlRepresenter.(DefaultYamlRepresenter.java:33) ~[shardingsphere-common-4.1.1.jar:4.1.1]
at org.apache.shardingsphere.underlying.common.yaml.engine.YamlEngine.marshal(YamlEngine.java:170) ~[shardingsphere-common-4.1.1.jar:4.1.1]
at org.apache.shardingsphere.core.log.ConfigurationLogger.log(ConfigurationLogger.java:65) ~[sharding-core-common-4.1.1.jar:4.1.1]
at org.apache.shardingsphere.core.log.ConfigurationLogger.log(ConfigurationLogger.java:54) ~[sharding-core-common-4.1.1.jar:4.1.1]
at org.apache.shardingsphere.shardingjdbc.jdbc.core.context.AbstractRuntimeContext.(AbstractRuntimeContext.java:58) ~[sharding-jdbc-core-4.1.1.jar:4.1.1]
at org.apache.shardingsphere.shardingjdbc.jdbc.core.context.MultipleDataSourcesRuntimeContext.(MultipleDataSourcesRuntimeContext.java:50) ~[sharding-jdbc-core-4.1.1.jar:4.1.1]
at org.apache.shardingsphere.shardingjdbc.jdbc.core.context.ShardingRuntimeContext.(ShardingRuntimeContext.java:49) ~[sharding-jdbc-core-4.1.1.jar:4.1.1]
at org.apache.shardingsphere.shardingjdbc.jdbc.core.datasource.ShardingDataSource.(ShardingDataSource.java:54) ~[sharding-jdbc-core-4.1.1.jar:4.1.1]
at org.apache.shardingsphere.shardingjdbc.api.ShardingDataSourceFactory.createDataSource(ShardingDataSourceFactory.java:48) ~[sharding-jdbc-core-4.1.1.jar:4.1.1]

@linghengqian
Copy link
Member

@hanyongchao007
Copy link
Author

hanyongchao007 commented Jul 24, 2023

这个问题什么时候可以解决呢,比较着急。我应该升级shardingsphere到哪个版本 @TeslaCN

@Pik1031
Copy link

Pik1031 commented Aug 3, 2023

Have you solved your problem?

@linghengqian
Copy link
Member

Have you solved your problem?

  • @Pinkman-oss This first requires ElasticJob to initiate and vote on Release 3.0.4 on the mailing list, then update ElasticJob in the master branch of ShardingSphere and complete the Release of ShardingSphere 5.4.1. Given the breaking changes in SnakeYAML 2.0, this is not possible with the current ShardingSphere 5.4.0.

  • If you have a need, you can go to the mailing list and ask if the community agrees to vote on the release of ElasticJob 3.0.4 in the near future.

@github-actions
Copy link

github-actions bot commented Sep 2, 2023

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants