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 2021/06/22 09:02:37 UTC

[GitHub] [shardingsphere] kushalhalder opened a new issue #10912: RangeShardingAlgorithm throws: Factory method 'shardingDataSource' threw exception; nested exception is java.lang.NullPointerException

kushalhalder opened a new issue #10912:
URL: https://github.com/apache/shardingsphere/issues/10912


   Factory method 'shardingDataSource' threw exception; nested exception is java.lang.NullPointerException
   If default database strategy has been defined with range algorithm, it throws the above error. 
   
   If I include precise with range, then only precise is picked up. 
   
   What is wrong here?
   ```
   spring.shardingsphere.sharding.default-database-strategy.standard.sharding-column=keyspaceID
   spring.shardingsphere.sharding.default-table-strategy.none=
   spring.shardingsphere.sharding.default-database-strategy.standard.range-algorithm-class-name=group.shardingsphere.algorithm.RangeShardingDatabaseAlgorithm
   spring.shardingsphere.sharding.default-database-strategy.standard.precise-algorithm-class-name=group.shardingsphere.algorithm.PreciseModuloShardingDatabaseAlgorithm
   ```
   I do not need Precise, just Range would do.


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

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



[GitHub] [shardingsphere] kushalhalder commented on issue #10912: RangeShardingAlgorithm throws: Factory method 'shardingDataSource' threw exception; nested exception is java.lang.NullPointerException

Posted by GitBox <gi...@apache.org>.
kushalhalder commented on issue #10912:
URL: https://github.com/apache/shardingsphere/issues/10912#issuecomment-868365667


   Hey, thanks for getting back. I could fix it, not an issue from shardingsphere. Thanks again. 


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

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



[GitHub] [shardingsphere] tristaZero commented on issue #10912: RangeShardingAlgorithm throws: Factory method 'shardingDataSource' threw exception; nested exception is java.lang.NullPointerException

Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #10912:
URL: https://github.com/apache/shardingsphere/issues/10912#issuecomment-868361696


   Hey, which version?


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

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



[GitHub] [shardingsphere] kushalhalder closed issue #10912: RangeShardingAlgorithm throws: Factory method 'shardingDataSource' threw exception; nested exception is java.lang.NullPointerException

Posted by GitBox <gi...@apache.org>.
kushalhalder closed issue #10912:
URL: https://github.com/apache/shardingsphere/issues/10912


   


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

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