Seata: no available service 'null' found, please make sure registry config correct

Created on 8 Mar 2020  ·  8Comments  ·  Source: seata/seata

nacos上服务显示是已注册上去的
image
移除spring-cloud-alibaba-seata依赖,customer也可以调用到provider服务
可是引入spring-cloud-alibaba-seata 配置完成后出现如下错误提示。
image

All 8 comments

什么原因导致的呢?

什么原因导致的呢?

go to seata. io can find the answer to the question.

什么原因导致的呢?

go to seata. io can find the answer to the question.

真是太难找了,能否直接给个答案,这个问题貌似很普遍

可能的原因:需指定事务分组,且名称需保持一致

  • file.conf:service.vgroupMapping.egova-service-media-fescar-service-group = "default"

  • application.yml

    spring:
    cloud:
      alibaba:
        seata:
          tx-service-group: egova-service-media-fescar-service-group
    

可能的原因:需指定事务分组,且名称需保持一致

  • file.conf:service.vgroupMapping.egova-service-media-fescar-service-group = "default"
  • application.yml
    spring: cloud: alibaba: seata: tx-service-group: egova-service-media-fescar-service-group

解决了么,我也遇到一样的问题

如果用的是 spring-cloud-starter-alibaba-seata 需要把 seata-spring-boot-starter排除掉,感觉是自动装配的问题

是版本有冲突,sca里面的seata版本跟seata最新版本不一致------------------ 原始邮件 ------------------
发件人: "1515869898"<[email protected]>
发送时间: 2020年11月18日(星期三) 晚上9:13
收件人: "seata/seata"<[email protected]>;
抄送: "Subscribed"<[email protected]>;
主题: Re: [seata/seata] no available service 'null' found, please make sure registry config correct (#2374)

你安装的服务端版本必须要和你客户端的版本保持一样(至少seata-all<=1.3.0有此问题),否则无论怎么改配置都会出现这个问题。

  1. 我的服务端版本为1.3.0 seata-server-1.3.0.tar.gz
  2. 客户端pom.xml:要把spring-cloud-starter-alibaba-seata中的seata排掉。单独引入服务端版本对应的包

            <dependency>
                <groupId>com.alibaba.cloud</groupId>
                <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
                <version>${spring-cloud-alibaba.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>io.seata</groupId>
                        <artifactId>seata-spring-boot-starter</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>io.seata</groupId>
                <artifactId>seata-all</artifactId>
                <version>1.3.0</version>
            </dependency>
    
Was this page helpful?
0 / 5 - 0 ratings

Related issues

slievrly picture slievrly  ·  9Comments

sunnycamel picture sunnycamel  ·  14Comments

anic picture anic  ·  3Comments

rongyingjie picture rongyingjie  ·  15Comments

dennymou picture dennymou  ·  18Comments