You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "sushuliang113 (via GitHub)" <gi...@apache.org> on 2023/04/23 10:43:12 UTC

[GitHub] [shardingsphere] sushuliang113 opened a new issue, #25291: Sharding startup failed after upgrading the snake yml component to version 2.0

sushuliang113 opened a new issue, #25291:
URL: https://github.com/apache/shardingsphere/issues/25291

   sharding version:   
        <dependency>
               <groupId>org.apache.shardingsphere</groupId>
               <artifactId>shardingsphere-jdbc-core</artifactId>
               <version>5.3.2</version>	
          <dependency>
   snakeYaml version:
        <dependency>
   	<groupId>org.yaml</groupId>
   	<artifactId>snakeyaml</artifactId>
   	<version>2.0</version>  
        </dependency>
   
   at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) ~[spring-boot-2.7.10.jar:2.7.10]
   	at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:164) ~[spring-boot-2.7.10.jar:2.7.10]
   	at com.huawei.hdn.explorer.Application.main(Application.java:71) ~[classes/:?]
   Caused by: java.lang.NoSuchMethodError: org.yaml.snakeyaml.representer.Representer: method <init>()V not found
   	at org.apache.shardingsphere.infra.util.yaml.representer.ShardingSphereYamlRepresenter.<init>(ShardingSphereYamlRepresenter.java:42) ~[shardingsphere-infra-util-5.3.2.jar:5.3.2]
   	at org.apache.shardingsphere.infra.util.yaml.YamlEngine.marshal(YamlEngine.java:113) ~[shardingsphere-infra-util-5.3.2.jar:5.3.2]
   	at org.apache.shardingsphere.mode.metadata.persist.service.config.global.PropertiesPersistService.persist(PropertiesPersistService.java:45) ~[shardingsphere-mode-core-5.3.2.jar:5.3.2]
   	at org.apache.shardingsphere.mode.metadata.persist.service.config.global.PropertiesPersistService.conditionalPersist(PropertiesPersistService.java:39) ~[shardingsphere-mode-core-5.3.2.jar:5.3.2]
   	at org.apache.shardingsphere.mode.metadata.persist.MetaDataPersistService.persistConfigurations(MetaDataPersistService.java:86) ~[shardingsphere-mode-core-5.3.2.jar:5.3.2]
   	at org.apache.shardingsphere.mode.manager.standalone.StandaloneContextManagerBuilder.persistConfigurations(StandaloneContextManagerBuilder.java:61) ~[shardingsphere-standalone-mode-core-5.3.2


-- 
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] linghengqian commented on issue #25291: Sharding startup failed after upgrading the snake yml component to version 2.0

Posted by "linghengqian (via GitHub)" <gi...@apache.org>.
linghengqian commented on issue #25291:
URL: https://github.com/apache/shardingsphere/issues/25291#issuecomment-1519083895

   - @sushuliang113 Hey, I've flagged this issue, which is https://github.com/apache/shardingsphere/issues/21476 and https://github.com/apache/shardingsphere/pull/24636 . 
   
   - Due to the fact that modifying to Snapeyaml 2.0 functions would compromise the compatibility of all current versions of the Spring Framework, I tend to wait for the Spring Team to make the changes first.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] RaigorJiang commented on issue #25291: Sharding startup failed after upgrading the snake yml component to version 2.0

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #25291:
URL: https://github.com/apache/shardingsphere/issues/25291#issuecomment-1519043290

   ShardingSphere now uses snakeyaml 1.3.3, there may be compatibility problem with different versions.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] zhchhawks commented on issue #25291: Sharding startup failed after upgrading the snake yml component to version 2.0

Posted by "zhchhawks (via GitHub)" <gi...@apache.org>.
zhchhawks commented on issue #25291:
URL: https://github.com/apache/shardingsphere/issues/25291#issuecomment-1541596062

   > * @sushuliang113 Hey, I've flagged this issue, which is [Markup SpringBoot users need to specify SnakeYAML version in Github Wiki #21476](https://github.com/apache/shardingsphere/issues/21476) and [Upgrade snakeyaml to 2.0 #24636](https://github.com/apache/shardingsphere/pull/24636) .
   > * Due to the fact that modifying to SnakeYaml 2.0 functions would compromise the compatibility of all current versions of the Spring Framework, I tend to wait for the Spring Team to make the changes first.
   
   I am using 4.1.1, would this version support snakeyaml 2.0?


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] hsld9527 commented on issue #25291: Sharding startup failed after upgrading the snake yml component to version 2.0

Posted by "hsld9527 (via GitHub)" <gi...@apache.org>.
hsld9527 commented on issue #25291:
URL: https://github.com/apache/shardingsphere/issues/25291#issuecomment-1580108765

   > * @sushuliang113 Hey, I've flagged this issue, which is [Markup SpringBoot users need to specify SnakeYAML version in Github Wiki #21476](https://github.com/apache/shardingsphere/issues/21476) and [Upgrade snakeyaml to 2.0 #24636](https://github.com/apache/shardingsphere/pull/24636) .
   > * Due to the fact that modifying to SnakeYaml 2.0 functions would compromise the compatibility of all current versions of the Spring Framework, I tend to wait for the Spring Team to make the changes first.
   
   SpringBoot 2.7.10 alreadey supports SnakeYaml 2.0, but I see there is no Sharding 4.x to support SnakeYaml 2.0, and the problem still exists


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Sharding startup failed after upgrading the snake yml component to version 2.0 [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #25291: Sharding startup failed after upgrading the snake yml component to version 2.0
URL: https://github.com/apache/shardingsphere/issues/25291


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] linghengqian commented on issue #25291: Sharding startup failed after upgrading the snake yml component to version 2.0

Posted by "linghengqian (via GitHub)" <gi...@apache.org>.
linghengqian commented on issue #25291:
URL: https://github.com/apache/shardingsphere/issues/25291#issuecomment-1541622739

   > > * @sushuliang113 Hey, I've flagged this issue, which is [Markup SpringBoot users need to specify SnakeYAML version in Github Wiki #21476](https://github.com/apache/shardingsphere/issues/21476) and [Upgrade snakeyaml to 2.0 #24636](https://github.com/apache/shardingsphere/pull/24636) .
   > > * Due to the fact that modifying to SnakeYaml 2.0 functions would compromise the compatibility of all current versions of the Spring Framework, I tend to wait for the Spring Team to make the changes first.
   > 
   > I am using 4.1.1, will this version support snakeyaml 2.0?
   
   _ Considering the API changes in SnakeYAML in the last 2 years, I don't think this is possible.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] linghengqian commented on issue #25291: Sharding startup failed after upgrading the snake yml component to version 2.0

Posted by "linghengqian (via GitHub)" <gi...@apache.org>.
linghengqian commented on issue #25291:
URL: https://github.com/apache/shardingsphere/issues/25291#issuecomment-1695038727

   > > * @sushuliang113 Hey, I've flagged this issue, which is [Markup SpringBoot users need to specify SnakeYAML version in Github Wiki #21476](https://github.com/apache/shardingsphere/issues/21476) and [Upgrade snakeyaml to 2.0 #24636](https://github.com/apache/shardingsphere/pull/24636) .
   > > * Due to the fact that modifying to SnakeYaml 2.0 functions would compromise the compatibility of all current versions of the Spring Framework, I tend to wait for the Spring Team to make the changes first.
   > 
   > SpringBoot 2.7.10 alreadey supports SnakeYaml 2.0, but I see there is no Sharding 4.x to support SnakeYaml 2.0, and the problem still exists
   
   - Considering that it is impossible to commit back to the ShardingSphere 4.x branch, I think this is an impossible thing.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] github-actions[bot] commented on issue #25291: Sharding startup failed after upgrading the snake yml component to version 2.0

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #25291:
URL: https://github.com/apache/shardingsphere/issues/25291#issuecomment-1741425713

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


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org