apache / apache/incubator-seata-samples
springcloud-nacos-seata启动报错:no available service 'null' found, please make sure registry config correct
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 2k
- PR merge metrics
- No merged PRs in 30d
Description
readme文件中seata版本为0.8.0,但是内部却说是升级到了1.1.0版本,结果pom中却同时引入了io.seata:seata-all:1.1.0、io.seata:seata-all:1.3.0两个版本。
原因为:com.alibaba.cloud:spring-cloud-alibaba-seata:2.1.0.RELEASE 含有io.seata:seata-all:1.3.0版本,又引入了io.seata:seata-all:1.1.0版本,导致存在了两个版本
pom文件seata部分应修改如下
以下为对应seata 1.1.0版本
ps. 如果seata版本是1.1.0,那么io.seata:seata-all的版本即为1.1.0,否则将报错:no available service 'null' found, please make sure registry config correct
```
com.alibaba.cloud
spring-cloud-alibaba-seata
2.1.0.RELEASE
io.seata
seata-all
io.seata
seata-all
1.1.0
```
... 最后真心难受,之前一直未能找到错误,这个问题拖了我好久,我觉得偏官方的例子,不应该这么大漏洞吧,一直以为是我自己的原因,差点就放弃了seata,唉,最后终于找到问题所在。
Contributor guide
Research direction
Read the README's Seata version note and inspect the project's pom file for the spring-cloud-alibaba-seata and seata-all dependencies. Check the dependency versions and exclusions, then verify that only the intended Seata version remains and the reported startup error is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100