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

error:There is no default constructor available in 'org.yaml.snakeyaml.representer.Representer' #29771

Closed
xiohuchi opened this issue Jan 19, 2024 · 5 comments

Comments

@xiohuchi
Copy link

xiohuchi commented Jan 19, 2024

Bug Report

shardingsphere-jdbc-core 5.4.1
springboot 3.2.1 ( snakeyaml 2.2 )

error:There is no default constructor available in 'org.yaml.snakeyaml.representer.Representer'

at: org.apache.shardingsphere.infra.util.yaml.representer.ShardingSphereYamlRepresenter

detail log

`
[2024-01-19 08:55:02.403][ERROR][][http-nio-18008-exec-6][o.a.c.c.C.[.[localhost].[/].[dispatcherServlet]][Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed: java.lang.NoSuchMethodError: org.yaml.snakeyaml.representer.Representer: method 'void ()' not found] with root cause]

java.lang.NoSuchMethodError: org.yaml.snakeyaml.representer.Representer: method 'void ()' not found

    at org.apache.shardingsphere.infra.util.yaml.representer.ShardingSphereYamlRepresenter.<init>(ShardingSphereYamlRepresenter.java:42)

    at org.apache.shardingsphere.infra.util.yaml.YamlEngine.marshal(YamlEngine.java:112)

    at org.apache.shardingsphere.metadata.persist.service.config.global.NewPropertiesPersistService.persist(NewPropertiesPersistService.java:51)        

`

@linghengqian
Copy link
Member

@xiohuchi
Copy link
Author

那咋搞,还没有修复版本

@linghengqian
Copy link
Member

  • You can manually compile the project by following the steps below, and upload the corresponding products in the local Maven repository to your private repository. This uses SDKMAN!.
sdk install java 21.0.2-graalce
sdk use java 21.0.2-graalce

git clone [email protected]:apache/shardingsphere.git
cd ./shardingsphere/

./mvnw clean install -Prelease -T1C -DskipTests -Djacoco.skip=true -Dcheckstyle.skip=true -Drat.skip=true -Dmaven.javadoc.skip=true -B
  • I'm not the PMC for the project, so I can't make any subjective assumptions about when the next release will be. If you need a release sooner, you should start a discussion thread on the mailing list.

Copy link

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

@github-actions github-actions bot added the stale label Feb 24, 2024
@linghengqian
Copy link
Member

@linghengqian linghengqian self-assigned this Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants