当前位置:网站首页>Seata exception: endpoint format should like ip:port
Seata exception: endpoint format should like ip:port
2022-07-30 05:36:00 【Road to land】
报错信息
Failed to get available servers: endpoint format should like ip:port
java.lang.IllegalArgumentException: endpoint format should like ip:port
at io.seata.discovery.registry.FileRegistryServiceImpl.lookup(FileRegistryServiceImpl.java:95) ~[seata-all-1.3.0.jar:1.3.0]
at io.seata.core.rpc.netty.NettyClientChannelManager.getAvailServerList(NettyClientChannelManager.java:217) ~[seata-all-1.3.0.jar:1.3.0]
at io.seata.core.rpc.netty.NettyClientChannelManager.reconnect(NettyClientChannelManager.java:162) ~[seata-all-1.3.0.jar:1.3.0]
at io.seata.core.rpc.netty.RmNettyRemotingClient.registerResource(RmNettyRemotingClient.java:181) [seata-all-1.3.0.jar:1.3.0]
at io.seata.rm.AbstractResourceManager.registerResource(AbstractResourceManager.java:121) [seata-all-1.3.0.jar:1.3.0]
at io.seata.rm.datasource.DataSourceManager.registerResource(DataSourceManager.java:146) [seata-all-1.3.0.jar:1.3.0]
at io.seata.rm.DefaultResourceManager.registerResource(DefaultResourceManager.java:114) [seata-all-1.3.0.jar:1.3.0]
at io.seata.rm.datasource.DataSourceProxy.init(DataSourceProxy.java:99) [seata-all-1.3.0.jar:1.3.0]
at io.seata.rm.datasource.DataSourceProxy.<init>(DataSourceProxy.java:85) [seata-all-1.3.0.jar:1.3.0]
at io.seata.rm.datasource.DataSourceProxy.<init>(DataSourceProxy.java:74) [seata-all-1.3.0.jar:1.3.0]
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) ~[na:1.8.0_212]
解决
使用的版本
| 组件 | 版本 |
|---|---|
| spring-cloud-alibaba | 2021.1 |
| spring-cloud | 2020.0.4 |
| Nacos | 1.4.1 |
| Seata | 1.3.0 |
seataBoth the client's configuration and the registry are usedNacos的.
在application.yml中的配置
# 配置seata客户端的信息
seata:
application-id: lutong-service
tx-service-group: lutong-tx-group
config:
type: nacos # Missed here
nacos:
server-addr: 127.0.0.1:8848
namespace: 1e170347-d013-4d8d-9f32-7afc6d5afd61
group: SEATA_GROUP
username: nacos
password: nacos
seata.config.typeConfiguration items are missing.Also pay attention to the need forNacos中添加一个配置项:
service.vgroupMapping.lutong-tx-group=default
边栏推荐
- MySQL如何对SQL做prepare预处理(解决IN查询SQL预处理仅能查询出一条记录的问题)
- (Hexagon_V65_Programmers_Reference_Manual(13)
- 从驱动表和被驱动表来快速理解MySQL中的内连接和外连接
- [High Performance Computing] openMP
- L2-020 功夫传人
- Hexagon_V65_Programmers_Reference_Manual(11)
- 剑指offer(刷题篇12)
- The use of Conluce, an online document management system
- idea设置自动带参数的方法注释(有效)
- 解读 Kylin 3.0.0 | 更敏捷、更高效的 OLAP 引擎
猜你喜欢

golang八股文整理(持续搬运)

The Golden Circle Rule: Deep Thinking Methods for Successful People

This article will take you through js to deal with the addition, deletion, modification and inspection of tree structure data

idea设置自动带参数的方法注释(有效)
![[High Performance Computing] openMP](/img/a5/2cfd760a26edb379d337eb3d1605d5.jpg)
[High Performance Computing] openMP

An old programmer's summary review of 2020, how to become more awesome in 2021

mysql basics (4)

参与开源,让程序员找回热血和激情

IIS网站出现401未授权访问

mysql无法远程连接 Can‘t connect to MySQL server on ‘xxx.xxx.xxx.xxx‘ (10060 “Unknown error“)
随机推荐
Acwing完全数
2022鹏城杯web
MySQL - Function and Constraint Commands
nacos-2.0.3启动报错出现no datasource set的坑
Seata异常:endpoint format should like ip:port
Hexagon_V65_Programmers_Reference_Manual(11)
Usage when saving pointers in std::vector
mysql无法远程连接 Can‘t connect to MySQL server on ‘xxx.xxx.xxx.xxx‘ (10060 “Unknown error“)
go语言学习笔记三
go语言学习笔记四
RadonDB MySQL on K8s 2.1.2 发布!
go语言学习笔记二
【Vitis】ZCU102开发板PS端控制PL端复位的代码实现
Go语学习笔记 - gorm使用 - 事务操作 Web框架Gin(十一)
go language study notes 4
期末作业C#实现学生宿舍管理系统
std::vector中保存指针时用法
即刻报名|前沿技术探索:如何让 Spark 更强劲、更灵活
Docker-compose安装mysql
L2-020 descendants of kung fu