当前位置:网站首页>Seata异常:endpoint format should like ip:port
Seata异常:endpoint format should like ip:port
2022-07-30 05:14:00 【陆陆通通】
报错信息
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 |
seata客户端的配置和注册中心都使用Nacos的。
在application.yml中的配置
# 配置seata客户端的信息
seata:
application-id: lutong-service
tx-service-group: lutong-tx-group
config:
type: nacos # 这里漏写了
nacos:
server-addr: 127.0.0.1:8848
namespace: 1e170347-d013-4d8d-9f32-7afc6d5afd61
group: SEATA_GROUP
username: nacos
password: nacos
seata.config.type配置项漏写了。同时注意需要在Nacos中添加一个配置项:
service.vgroupMapping.lutong-tx-group=default
边栏推荐
- RadonDB PostgreSQL on K8s 2.1.0 发布!
- Golang go-redis cluster模式下不断创建新连接,效率下降问题解决
- Hexagon_V65_Programmers_Reference_Manual(11)
- Usage when saving pointers in std::vector
- go language study notes 3
- 行业案例|数字化经营底座助力寿险行业转型
- Unity踩坑记录 —— GetComponent的使用
- RadonDB MySQL Kubernetes 2.2.0 发布!
- 力扣05-替换空格——字符串问题
- 给小白的 PG 容器化部署教程(下)
猜你喜欢

Discourse 自定义头部链接(Custom Header Links)

pyinstaller打包程序所遇问题记录

webService interface
![[High Performance Computing] openMP](/img/a5/2cfd760a26edb379d337eb3d1605d5.jpg)
[High Performance Computing] openMP

1315_Use the LOOPBACK simulation mode to test whether the pyserial installation is successful

Whole process scheduling - Azkaban entry and advanced

Record of problems encountered by the pyinstaller packager

容器化 | 在 KubeSphere 中部署 MySQL 集群

Kyligence 出席华为全球智慧金融峰会,加速拓展全球市场

Acwing perfect number
随机推荐
“幻核”跑路,数字藏品路在何方?
oracle触发器的自治事务
LeetCode Algorithm 2326. 螺旋矩阵 IV
Divide and conquer. L2-025
Recursive Optimization of Fibonacci Sequences "Memo Recursion"
[Vitis] Code implementation of ZCU102 development board PS-side control PL-side reset
容器化 | 在 KubeSphere 中部署 MySQL 集群
Hexagon_V65_Programmers_Reference_Manual(10)
golang八股文整理(持续搬运)
Double pointer problem (middle)
Requirements design document and the changing role of the product manager
C language implements highly secure game archives and reads files
Intermediate - interview questions
ThinkPHP high imitation blue play cloud network disk system source code / docking easy payment system program
(Hexagon_V65_Programmers_Reference_Manual(13)
std::vector中保存指针时用法
给小白的 PostgreSQL 容器化部署教程(上)
POJ1321 chessboard problem (detailed explanation)
Kyligence 入选 Gartner 2022 数据管理技术成熟度曲线报告
Predictive maintenance scheduling of multiple power equipment based on data-driven fault prediction