You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/07/09 03:51:55 UTC

[GitHub] [shardingsphere] TeslaCN commented on issue #18942: docker image throw error but Binary can work

TeslaCN commented on issue #18942:
URL: https://github.com/apache/shardingsphere/issues/18942#issuecomment-1179472512

   Hi @qlql489 
   I've tried the Docker image and could not reproduce this issue in `apache/shardingsphere-proxy:5.1.2`.
   
   ```
   wuweijie@wuweijie-ubuntu 5.1.2/conf » docker run --rm -i -t -p13306:3307 -v$(pwd):/opt/shardingsphere-proxy/conf apache/shardingsphere-proxy:5.1.2 
   we find java version: java17, full_version=17.0.2
   Starting the ShardingSphere-Proxy ...
   The classpath is /opt/shardingsphere-proxy/conf:.:/opt/shardingsphere-proxy/lib/*:/opt/shardingsphere-proxy/ext-lib/*
   Please check the STDOUT file: /opt/shardingsphere-proxy/logs/stdout.log
   Thanks for using Atomikos! This installation is not registered yet. 
   REGISTER FOR FREE at http://www.atomikos.com/Main/RegisterYourDownload and receive:
   - tips & advice 
   - working demos 
   - access to the full documentation 
   - special exclusive bonus offers not available to others 
   - everything you need to get the most out of using Atomikos!
   [INFO ] 2022-07-09 03:46:05.560 [main] o.a.s.p.frontend.ShardingSphereProxy - ShardingSphere-Proxy Memory mode started successfully
   ```
   
   But if I use `apache/shardingsphere-proxy:5.1.1`, the following error occurred:
   ```
   ➜  conf  docker exec -i -t romantic_swirles bash
   root@686d1edd4d00:/# cat /opt/shardingsphere-proxy/logs/stdout.log 
   Exception in thread "main" org.apache.shardingsphere.spi.exception.ServiceProviderNotFoundException: No implementation class load from SPI `org.apache.shardingsphere.authority.spi.AuthorityProvideAlgorithm` with type `ALL_PERMITTED`.
   	at org.apache.shardingsphere.spi.typed.TypedSPIRegistry.getRegisteredService(TypedSPIRegistry.java:76)
   	at org.apache.shardingsphere.infra.config.algorithm.ShardingSphereAlgorithmFactory.createAlgorithm(ShardingSphereAlgorithmFactory.java:41)
   	at org.apache.shardingsphere.authority.rule.AuthorityRule.<init>(AuthorityRule.java:48)
   	at org.apache.shardingsphere.authority.rule.builder.AuthorityRuleBuilder.build(AuthorityRuleBuilder.java:35)
   	at org.apache.shardingsphere.authority.rule.builder.AuthorityRuleBuilder.build(AuthorityRuleBuilder.java:31)
   	at org.apache.shardingsphere.infra.rule.builder.global.GlobalRulesBuilder.buildRules(GlobalRulesBuilder.java:57)
   	at org.apache.shardingsphere.mode.metadata.MetaDataContextsBuilder.build(MetaDataContextsBuilder.java:117)
   	at org.apache.shardingsphere.mode.manager.memory.MemoryContextManagerBuilder.build(MemoryContextManagerBuilder.java:58)
   	at org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.createContextManager(BootstrapInitializer.java:72)
   	at org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.init(BootstrapInitializer.java:57)
   	at org.apache.shardingsphere.proxy.Bootstrap.main(Bootstrap.java:47)
   ```


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