GitHub user jiafaxin created a discussion: 
seata客户端启动报错,找不到seata-server端,但是我的seata-server是正常启动的

seata客户端启动报错,找不到seata-server端,但是我的seata-server是正常启动的,我使用的是nacos2.0.0 
seata1.3.0版本,
<img width="929" height="290" 
alt="1758592551506_AA61A9B1-0659-4384-B58A-C3C5FF8C208C" 
src="https://github.com/user-attachments/assets/858d9606-3c75-4cf9-968b-2cf5885f4e8e";
 />

图片中我的seata-server是正常注册到nacos,但是我的客户端启动报错2025-09-23 
09:51:15`finance.backend`auto-life-dev`ERROR`io.seata.core.rpc.netty.NettyClientChannelManager.doConnect(NettyClientChannelManager.java:209)`0304
 register RM failed.`
io.seata.common.exception.FrameworkException: can not connect to 
services-server.
        at 
io.seata.core.rpc.netty.NettyClientBootstrap.getNewChannel(NettyClientBootstrap.java:182)
 ~[seata-all-1.3.0.jar:1.3.0]
        at 
io.seata.core.rpc.netty.NettyPoolableFactory.makeObject(NettyPoolableFactory.java:58)
 ~[seata-all-1.3.0.jar:1.3.0]
        at 
io.seata.core.rpc.netty.NettyPoolableFactory.makeObject(NettyPoolableFactory.java:34)
 ~[seata-all-1.3.0.jar:1.3.0]
        at 
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220)
 ~[commons-pool-1.6.jar:1.6]
        at 
io.seata.core.rpc.netty.NettyClientChannelManager.doConnect(NettyClientChannelManager.java:206)
 ~[seata-all-1.3.0.jar:1.3.0]
        at 
io.seata.core.rpc.netty.NettyClientChannelManager.acquireChannel(NettyClientChannelManager.java:103)
 ~[seata-all-1.3.0.jar:1.3.0]
        at 
io.seata.core.rpc.netty.NettyClientChannelManager.reconnect(NettyClientChannelManager.java:175)
 ~[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)
 ~[?:1.8.0_462]
        at 
io.seata.spring.annotation.datasource.DataSourceProxyHolder.putDataSource(DataSourceProxyHolder.java:64)
 ~[seata-all-1.3.0.jar:1.3.0]
        at 
io.seata.spring.annotation.datasource.SeataAutoDataSourceProxyAdvice.invoke(SeataAutoDataSourceProxyAdvice.java:34)
 ~[seata-all-1.3.0.jar:1.3.0]
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
 ~[spring-aop-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
 ~[spring-aop-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)
 ~[spring-aop-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
com.alibaba.druid.pool.DruidDataSource$$EnhancerBySpringCGLIB$$e648de61.isWrapperFor(<generated>)
 ~[druid-1.1.12.jar:1.1.12]
        at 
org.springframework.boot.jdbc.DataSourceUnwrapper.safeUnwrap(DataSourceUnwrapper.java:77)
 ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
org.springframework.boot.jdbc.DataSourceUnwrapper.unwrap(DataSourceUnwrapper.java:56)
 ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvidersConfiguration$HikariPoolDataSourceMetadataProviderConfiguration.lambda$hikariPoolDataSourceMetadataProvider$0(DataSourcePoolMetadataProvidersConfiguration.java:66)
 ~[spring-boot-autoconfigure-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
org.springframework.boot.jdbc.metadata.CompositeDataSourcePoolMetadataProvider.getDataSourcePoolMetadata(CompositeDataSourcePoolMetadataProvider.java:50)
 ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration.getValidationQuery(DataSourceHealthContributorAutoConfiguration.java:96)
 ~[spring-boot-actuator-autoconfigure-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration.createIndicator(DataSourceHealthContributorAutoConfiguration.java:92)
 ~[spring-boot-actuator-autoconfigure-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration.createIndicator(DataSourceHealthContributorAutoConfiguration.java:59)
 ~[spring-boot-actuator-autoconfigure-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration.createContributor(AbstractCompositeHealthContributorConfiguration.java:54)
 ~[spring-boot-actuator-autoconfigure-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration.dbHealthContributor(DataSourceHealthContributorAutoConfiguration.java:84)
 ~[spring-boot-actuator-autoconfigure-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_462]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_462]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_462]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_462]
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
 ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651)
 ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:636)
 ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338)
 ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177)
 ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557)
 ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
 ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
 ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226)
 [spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
 [spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
 [spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:895)
 [spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
 [spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
 [spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
        at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
 [spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) 
[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) 
[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
 [spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:315) 
[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) 
[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) 
[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
        at 
com.suisung.mall.shop.MallShopApplication.main(MallShopApplication.java:31) 
[classes/:?]
Caused by: io.seata.common.exception.FrameworkException: connect failed, can 
not connect to services-server.
        at 
io.seata.core.rpc.netty.NettyClientBootstrap.getNewChannel(NettyClientBootstrap.java:177)
 ~[seata-all-1.3.0.jar:1.3.0]
        ... 55 more

GitHub link: https://github.com/apache/incubator-seata/discussions/7655

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to