hegw commented on issue #8561:
URL: https://github.com/apache/shardingsphere/issues/8561#issuecomment-743095638


   The project already use [redissson 
](https://github.com/redisson/redisson/)framework
   ```
       <redisson:client id="redissonClient" netty-threads="20" threads="20" 
name="redissonClinet">
           <redisson:cluster-servers
                   idle-connection-timeout="${redisson.idleConnectionTime}"
                   connect-timeout="${redisson.connectTimeout}"
                   timeout="${redisson.timeout}"
                   retry-attempts="${redisson.retryAttempts}"
                   retry-interval="${redisson.retryInterval}"
                   scan-interval="${redisson.scanInterval}"
                   client-name="cleitName">
               <redisson:node-address value="${redisson.hostAndPort1}" />
               <redisson:node-address value="${redisson.hostAndPort2}" />
               <redisson:node-address value="${redisson.hostAndPort3}" />
               <redisson:node-address value="${redisson.hostAndPort4}" />
               <redisson:node-address value="${redisson.hostAndPort5}" />
               <redisson:node-address value="${redisson.hostAndPort6}" />
           </redisson:cluster-servers>
       </redisson:client>
   ```
   and when I use **shardingsphere-jdbc-5.0.0-alpha** version in project,in the 
proccess of application startup, [ShardingSphereAlgorithmBeanRegistry 
](https://github.com/apache/shardingsphere/blob/c05b58b1610b18503f436a61db1d24dba72c7e33/shardingsphere-jdbc/shardingsphere-jdbc-spring/shardingsphere-jdbc-spring-infra/shardingsphere-jdbc-spring-namespace-infra/src/main/java/org/apache/shardingsphere/spring/namespace/registry/ShardingSphereAlgorithmBeanRegistry.java#L48)
 class iterate all beanDefinitions by **beanDefinitionNames**,but there was a 
beanDefination‘s '**beanClassName**' attribute was null,and then when it 
**equals** with _**algorithmFactoryBeanClassName**_,  it causes **NPE** 
   
   
![图片1](https://user-images.githubusercontent.com/982953/101888907-ba089a00-3bd9-11eb-9b33-2e65cbf581ac.png)
   
![图片2](https://user-images.githubusercontent.com/982953/101889005-defd0d00-3bd9-11eb-80fe-224e34f35d06.png)
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to