apache / incubator-seata

:fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution.
https://seata.apache.org/
Apache License 2.0
25.23k stars 8.76k forks source link

seata-spring-boot-starter 1.1.0 startup error reporting #2285

Closed 117626034 closed 4 years ago

117626034 commented 4 years ago

Ⅰ. Issue Description

I use seata-spring-boot-starter 1.1.0 At startup an error is raised configuration file:

pom.xml

        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid-spring-boot-starter</artifactId>
            <version>1.1.21</version>
        </dependency>
        <dependency>
            <groupId>io.seata</groupId>
            <artifactId>seata-spring-boot-starter</artifactId>
            <version>1.1.0</version>
        </dependency>
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-alibaba-seata</artifactId>
            <version>2.2.0.RELEASE</version>
        </dependency>

application.yml

seata:
  service:
    disable-global-transaction: false 
    grouplist:
      default: seata-server:8091
  tx-service-group: lycloud_tx_group

server file.conf

service {
  vgroupMapping.lycloud_tx_group = "default"
  default.grouplist = "seata-server:8091"
  enableDegrade = false
  disableGlobalTransaction = false
}
store {
  mode = "db"
  db {
    datasource = "dbcp"
    dbType = "mysql"
    driverClassName = "com.mysql.jdbc.Driver"
    url = "jdbc:mysql://mysql:3306/lycloud"
    user = "root"
    password = "123456"
    minConn = 1
    maxConn = 10
    globalTable = "global_table"
    branchTable = "branch_table"
    lockTable = "lock_table"
    queryLimit = 100
  }
}

server registry.conf

registry {
  type = "eureka"
  eureka {
    serviceUrl = "http://server-eureka-9001:9001/eureka/"
    application = "lycloud-server-seata"
    weight = "1"
  }
  file {
    name = "file.conf"
  }
}
config {
  type = "file"
  file {
    name = "file.conf"
  }
}

Ⅱ. Describe what happened

2020-02-23 15:13:35.441 ERROR 13788 --- [imeoutChecker_1] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:13:35.465 ERROR 13788 --- [imeoutChecker_2] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:13:45.442 ERROR 13788 --- [imeoutChecker_1] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:13:45.465 ERROR 13788 --- [imeoutChecker_2] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:13:55.442 ERROR 13788 --- [imeoutChecker_1] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:13:55.464 ERROR 13788 --- [imeoutChecker_2] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:14:05.441 ERROR 13788 --- [imeoutChecker_1] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:14:05.465 ERROR 13788 --- [imeoutChecker_2] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:14:15.442 ERROR 13788 --- [imeoutChecker_1] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:14:15.466 ERROR 13788 --- [imeoutChecker_2] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:14:25.441 ERROR 13788 --- [imeoutChecker_1] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:14:25.466 ERROR 13788 --- [imeoutChecker_2] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:14:35.441 ERROR 13788 --- [imeoutChecker_1] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:14:35.465 ERROR 13788 --- [imeoutChecker_2] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:14:45.441 ERROR 13788 --- [imeoutChecker_1] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct
2020-02-23 15:14:45.465 ERROR 13788 --- [imeoutChecker_2] i.s.c.r.netty.NettyClientChannelManager  : no available service 'null' found, please make sure registry config correct

Ⅲ. Environment:

github-java-byg commented 4 years ago

application.yml中的tx-service-group:要和服务器文件中的vgroupMapping.lycloud_tx_group一致