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/07 08:28:57 UTC
[GitHub] [shardingsphere] doveylovey opened a new issue, #18932: No implementation class load from SPI `org.apache.shardingsphere.sharding.spi.ShardingAlgorithm` with type `T_ORDER_SPI_BASED`.
doveylovey opened a new issue, #18932:
URL: https://github.com/apache/shardingsphere/issues/18932
## Bug Report
**For English only**, other languages will not accept.
Before report a bug, make sure you have:
- Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
- Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will **close it**.
Please answer these questions before submitting your issue. Thanks!
### Which version of ShardingSphere did you use?
5.1.2
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
### Expected behavior
work correctly
### Actual behavior
in the spi-based-sharding-spring-boot-jpa-example project:

the error log:

### Reason analyze (If you can)
the custom algorithm is not implemented and configured correctly
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
### Example codes for reproduce this issue (such as a github link).
--
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] terrymanu commented on issue #18932: No implementation class load from SPI `org.apache.shardingsphere.sharding.spi.ShardingAlgorithm` with type `T_ORDER_SPI_BASED`.
Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #18932:
URL: https://github.com/apache/shardingsphere/issues/18932#issuecomment-1193613265
> I also have this problem I found that all the init () methods of standardshardingalgorithm were not executed. As a result, every standardshardingalgorithm is not fully initialized. This problem is particularly obvious when you just try hashmodshardingalgorithm. The shardingcount attribute inside is a 0. It uses an int type. If you hit a breakpoint, you won't enter
They are maybe different problems. One is for loading not existed SPI, your issue is codes can find SPI, but not call init method.
--
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] terrymanu commented on issue #18932: No implementation class load from SPI `org.apache.shardingsphere.sharding.spi.ShardingAlgorithm` with type `T_ORDER_SPI_BASED`.
Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #18932:
URL: https://github.com/apache/shardingsphere/issues/18932#issuecomment-1193614272
@doveylovey For your issue, I think that the `T_ORDER_SPI_BASED` is your own sharding algorithm type.
Please try to understand the example, and run the original example to make sure the example is fine.
--
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] terrymanu closed issue #18932: No implementation class load from SPI `org.apache.shardingsphere.sharding.spi.ShardingAlgorithm` with type `T_ORDER_SPI_BASED`.
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #18932: No implementation class load from SPI `org.apache.shardingsphere.sharding.spi.ShardingAlgorithm` with type `T_ORDER_SPI_BASED`.
URL: https://github.com/apache/shardingsphere/issues/18932
--
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] poo0054 commented on issue #18932: No implementation class load from SPI `org.apache.shardingsphere.sharding.spi.ShardingAlgorithm` with type `T_ORDER_SPI_BASED`.
Posted by GitBox <gi...@apache.org>.
poo0054 commented on issue #18932:
URL: https://github.com/apache/shardingsphere/issues/18932#issuecomment-1193617440
Hi, I found this problem. This problem does exist in sentinel. The address is this. You can have a look
https://github.com/alibaba/spring-cloud-alibaba/issues/2651
--
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] poo0054 commented on issue #18932: No implementation class load from SPI `org.apache.shardingsphere.sharding.spi.ShardingAlgorithm` with type `T_ORDER_SPI_BASED`.
Posted by GitBox <gi...@apache.org>.
poo0054 commented on issue #18932:
URL: https://github.com/apache/shardingsphere/issues/18932#issuecomment-1177280946
I also have this problem,What is your version,Is it an official example of use
I found that all the init () methods of standardshardingalgorithm were not executed.
--
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