dromara / hmily

Distributed transaction solutions
https://dromara.org
Apache License 2.0
4.11k stars 1.41k forks source link

demo项目启动报错:not found service provider for : org.dromara.hmily.core.service.HmilyTransactionHandlerRegistry #326

Open diedai opened 2 years ago

diedai commented 2 years ago

问题

demo项目启动报错:not found service provider for : org.dromara.hmily.core.service.HmilyTransactionHandlerRegistry

打断点调试了一下,发现了xa这个XaTransactionHandlerRegistry为null,就导致了报错。

异常信息

2022-01-15 22:05:38.503 ERROR 7315 --- [ main] org.dromara.hmily.spi.ExtensionLoader : not found service provider for : org.dromara.hmily.core.service.HmilyTransactionHandlerRegistry 2022-01-15 22:05:47.815 ERROR 7315 --- [ main] o.s.boot.SpringApplication : Application run failed

java.lang.IllegalStateException: Failed to register dubbo://192.168.0.101:20881/org.dromara.hmily.demo.common.account.api.AccountService?accepts=0&anyhost=true&application=account_service&bean.name=org.dromara.hmily.demo.common.account.api.AccountService&buffer=8192&charset=UTF-8&client=netty&dubbo=2.0.2&executes=20&generic=false&interface=org.dromara.hmily.demo.common.account.api.AccountService&methods=mockTryPaymentTimeout,testPayment,mockTryPaymentException,findByUserId,payment,paymentWithNested,paymentWithNestedException&payload=8388608&pid=7315&queues=0&server=netty&side=provider&threadpool=fixed&threads=500&timestamp=1642255545246 to registry localhost:2181, cause: Failed to register dubbo://192.168.0.101:20881/org.dromara.hmily.demo.common.account.api.AccountService?accepts=0&anyhost=true&application=account_service&bean.name=org.dromara.hmily.demo.common.account.api.AccountService&buffer=8192&charset=UTF-8&client=netty&dubbo=2.0.2&executes=20&generic=false&interface=org.dromara.hmily.demo.common.account.api.AccountService&methods=mockTryPaymentTimeout,testPayment,mockTryPaymentException,findByUserId,payment,paymentWithNested,paymentWithNestedException&payload=8388608&pid=7315&queues=0&server=netty&side=provider&threadpool=fixed&threads=500&timestamp=1642255545246 to zookeeper zookeeper://localhost:2181/com.alibaba.dubbo.registry.RegistryService?application=account_service&dubbo=2.0.2&interface=com.alibaba.dubbo.registry.RegistryService&pid=7315&timestamp=1642255530865, cause: KeeperErrorCode = Unimplemented for /dubbo/org.dromara.hmily.demo.common.account.api.AccountService at com.alibaba.dubbo.registry.support.FailbackRegistry.register(FailbackRegistry.java:150) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.registry.integration.RegistryProtocol.register(RegistryProtocol.java:126) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:146) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:55) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:60) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:98) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:513) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:358) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:317) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:216) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.config.spring.ServiceBean.export(ServiceBean.java:291) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:131) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:53) ~[dubbo-2.6.5.jar:2.6.5] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:398) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:355) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:882) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) ~[spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) ~[spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] at org.dromara.hmily.demo.dubbo.account.DubboHmilyAccountApplication.main(DubboHmilyAccountApplication.java:43) [classes/:na] Caused by: com.alibaba.dubbo.rpc.RpcException: Failed to register dubbo://192.168.0.101:20881/org.dromara.hmily.demo.common.account.api.AccountService?accepts=0&anyhost=true&application=account_service&bean.name=org.dromara.hmily.demo.common.account.api.AccountService&buffer=8192&charset=UTF-8&client=netty&dubbo=2.0.2&executes=20&generic=false&interface=org.dromara.hmily.demo.common.account.api.AccountService&methods=mockTryPaymentTimeout,testPayment,mockTryPaymentException,findByUserId,payment,paymentWithNested,paymentWithNestedException&payload=8388608&pid=7315&queues=0&server=netty&side=provider&threadpool=fixed&threads=500&timestamp=1642255545246 to zookeeper zookeeper://localhost:2181/com.alibaba.dubbo.registry.RegistryService?application=account_service&dubbo=2.0.2&interface=com.alibaba.dubbo.registry.RegistryService&pid=7315&timestamp=1642255530865, cause: KeeperErrorCode = Unimplemented for /dubbo/org.dromara.hmily.demo.common.account.api.AccountService at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.doRegister(ZookeeperRegistry.java:116) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.registry.support.FailbackRegistry.register(FailbackRegistry.java:137) ~[dubbo-2.6.5.jar:2.6.5] ... 24 common frames omitted Caused by: java.lang.IllegalStateException: KeeperErrorCode = Unimplemented for /dubbo/org.dromara.hmily.demo.common.account.api.AccountService at com.alibaba.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.createPersistent(CuratorZookeeperClient.java:79) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.remoting.zookeeper.support.AbstractZookeeperClient.create(AbstractZookeeperClient.java:67) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.remoting.zookeeper.support.AbstractZookeeperClient.create(AbstractZookeeperClient.java:62) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.remoting.zookeeper.support.AbstractZookeeperClient.create(AbstractZookeeperClient.java:62) ~[dubbo-2.6.5.jar:2.6.5] at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.doRegister(ZookeeperRegistry.java:114) ~[dubbo-2.6.5.jar:2.6.5] ... 25 common frames omitted Caused by: org.apache.zookeeper.KeeperException$UnimplementedException: KeeperErrorCode = Unimplemented for /dubbo/org.dromara.hmily.demo.common.account.api.AccountService at org.apache.zookeeper.KeeperException.create(KeeperException.java:106) ~[zookeeper-3.6.0.jar:3.6.0] at org.apache.zookeeper.KeeperException.create(KeeperException.java:54) ~[zookeeper-3.6.0.jar:3.6.0] at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:1836) ~[zookeeper-3.6.0.jar:3.6.0] at org.apache.curator.framework.imps.CreateBuilderImpl$16.call(CreateBuilderImpl.java:1131) ~[curator-framework-5.1.0.jar:5.1.0] at org.apache.curator.framework.imps.CreateBuilderImpl$16.call(CreateBuilderImpl.java:1113) ~[curator-framework-5.1.0.jar:5.1.0] at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:93) ~[curator-client-5.1.0.jar:na] at org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:1110) ~[curator-framework-5.1.0.jar:5.1.0] at org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:593) ~[curator-framework-5.1.0.jar:5.1.0] at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:583) ~[curator-framework-5.1.0.jar:5.1.0] at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:561) ~[curator-framework-5.1.0.jar:5.1.0] at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:48) ~[curator-framework-5.1.0.jar:5.1.0] at com.alibaba.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.createPersistent(CuratorZookeeperClient.java:76) ~[dubbo-2.6.5.jar:2.6.5] ... 29 common frames omitted

Sat Jan 15 22:06:00 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. Sat Jan 15 22:06:00 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. Sat Jan 15 22:06:00 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. Sat Jan 15 22:06:00 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. Sat Jan 15 22:06:00 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. Sat Jan 15 22:06:00 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. Sat Jan 15 22:06:00 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. Sat Jan 15 22:06:00 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. Sat Jan 15 22:06:00 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. Sat Jan 15 22:06:00 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.