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 2020/12/08 10:22:23 UTC
[GitHub] [shardingsphere] wxp651 opened a new issue #8534: shardingjdbc 5.0.0-alpha namespace After configuring the read-write separation, the null pointer is reported when the item is started
wxp651 opened a new issue #8534:
URL: https://github.com/apache/shardingsphere/issues/8534
## Bug Report
When I configured read-write separation, an error occurred when I started the project. There is a bean org.redisson.config . config ා 0 $created ා 0 I did not actively import this bean, and null pointer was reported in getbeandefinition() method
**For English only**, other languages will not accept.
class ShardingSphereAlgorithmBeanRegistry the line 25
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException: null
at org.apache.shardingsphere.spring.namespace.registry.ShardingSphereAlgorithmBeanRegistry.getAlgorithmBeanReferences(ShardingSphereAlgorithmBeanRegistry.java:48)
at org.apache.shardingsphere.replicaquery.spring.namespace.parser.ReplicaQueryRuleBeanDefinitionParser.parseInternal(ReplicaQueryRuleBeanDefinitionParser.java:47)
at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:61)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:74)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1411)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1401)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:168)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:138)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:94)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392)
... 58 common frames omitted
----------------------------------------------------------------
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] terrymanu closed issue #8534: shardingjdbc 5.0.0-alpha namespace After configuring the read-write separation, the null pointer is reported when the item is started
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #8534:
URL: https://github.com/apache/shardingsphere/issues/8534
----------------------------------------------------------------
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] menghaoranss commented on issue #8534: shardingjdbc 5.0.0-alpha namespace After configuring the read-write separation, the null pointer is reported when the item is started
Posted by GitBox <gi...@apache.org>.
menghaoranss commented on issue #8534:
URL: https://github.com/apache/shardingsphere/issues/8534#issuecomment-740562928
Please show your configurations.
----------------------------------------------------------------
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 #8534: shardingjdbc 5.0.0-alpha namespace After configuring the read-write separation, the null pointer is reported when the item is started
Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #8534:
URL: https://github.com/apache/shardingsphere/issues/8534#issuecomment-741508861
Hi @wxp651 ,
Could you check your configuration with [Examples](https://github.com/apache/shardingsphere/tree/master/examples/shardingsphere-proxy-example)?
----------------------------------------------------------------
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] wxp651 commented on issue #8534: shardingjdbc 5.0.0-alpha namespace After configuring the read-write separation, the null pointer is reported when the item is started
Posted by GitBox <gi...@apache.org>.
wxp651 commented on issue #8534:
URL: https://github.com/apache/shardingsphere/issues/8534#issuecomment-741582186
> @ wxp651,您好:
> 您可以使用“[示例”](https://github.com/apache/shardingsphere/tree/master/examples/shardingsphere-proxy-example)检查您的配置吗?
Yes, I wrote it according to the example ,but it just can't start
----------------------------------------------------------------
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 #8534: shardingjdbc 5.0.0-alpha namespace After configuring the read-write separation, the null pointer is reported when the item is started
Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #8534:
URL: https://github.com/apache/shardingsphere/issues/8534#issuecomment-742281503
Hi,
Do you think [#8555](https://github.com/apache/shardingsphere/issues/8555) can solve your issue?
----------------------------------------------------------------
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] terrymanu commented on issue #8534: shardingjdbc 5.0.0-alpha namespace After configuring the read-write separation, the null pointer is reported when the item is started
Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #8534:
URL: https://github.com/apache/shardingsphere/issues/8534#issuecomment-749896512
Closed because of no response
----------------------------------------------------------------
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] wxp651 commented on issue #8534: shardingjdbc 5.0.0-alpha namespace After configuring the read-write separation, the null pointer is reported when the item is started
Posted by GitBox <gi...@apache.org>.
wxp651 commented on issue #8534:
URL: https://github.com/apache/shardingsphere/issues/8534#issuecomment-741581114
> 请显示您的配置。
There are too many configuration files. Here, only the relevant ones are displayed
1、rediscluster
[shardingjdbc.docx](https://github.com/apache/shardingsphere/files/5664065/shardingjdbc.docx)
[spring-daorw.docx](https://github.com/apache/shardingsphere/files/5664066/spring-daorw.docx)
-config.xml
<!-- redission配置 -->
<redisson:client id="redissonClient" netty-threads="20" threads="20">
<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}">
<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>
----------------------------------------------------------------
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