apache / apache/incubator-seata

Cannot find the properties specified : eureka-client

Open
#3,142 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

- [ ] I have searched the [issues](https://github.com/seata/seata/issues) of this repository and believe that this is not a duplicate.

### Ⅰ. Issue Description

### Ⅱ. Describe what happened

If there is an exception, please attach the exception trace:

```
2020-09-23 10:03:57,657 INFO [/] [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler: Clear EntityHelper entityTableMap cache.
2020-09-23 10:03:58.430 WARN [ly-app-servicelocal,,,] 15696 --- [ main] c.n.d.internal.util.Archaius1Utils : Cannot find the properties specified : eureka-client. This may be okay if there are other environment specific properties or the configuration is installed with a different mechanism.
2020-09-23 10:03:58,430 WARN [/] [main] com.netflix.discovery.internal.util.Archaius1Utils: Cannot find the properties specified : eureka-client. This may be okay if there are other environment specific properties or the configuration is installed with a different mechanism.
2020-09-23 10:03:58.433 WARN [ly-app-servicelocal,,,] 15696 --- [ main] c.n.d.internal.util.Archaius1Utils : Cannot find the properties specified : eureka-client. This may be okay if there are other environment specific properties or the configuration is installed with a different mechanism.
2020-09-23 10:03:58,433 WARN [/] [main] com.netflix.discovery.internal.util.Archaius1Utils: Cannot find the properties specified : eureka-client. This may be okay if there are other environment specific properties or the configuration is installed with a different mechanism.
2020-09-23 10:03:58.447 INFO [ly-app-servicelocal,,,] 15696 --- [ main] .p.EurekaConfigBasedInstanceInfoProvider : Setting initial instance status as: STARTING
2020-09-23 10:03:58,447 INFO [/] [main] com.netflix.appinfo.providers.EurekaConfigBasedInstanceInfoProvider: Setting initial instance status as: STARTING
2020-09-23 10:03:58.450 WARN [ly-app-servicelocal,,,] 15696 --- [ main] c.n.d.internal.util.Archaius1Utils : Cannot find the properties specified : eureka-client. This may be okay if there are other environment specific properties or the configuration is installed with a different mechanism.
2020-09-23 10:03:58,450 WARN [/] [main] com.netflix.discovery.internal.util.Archaius1Utils: Cannot find the properties specified : eureka-client. This may be okay if there are other environment specific properties or the configuration is installed with a different mechanism.
2020-09-23 10:03:58.473 INFO [ly-app-servicelocal,,,] 15696 --- [ main] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1
2020-09-23 10:03:58,473 INFO [/] [main] com.netflix.discovery.DiscoveryClient: Initializing Eureka in region us-east-1
```
```
@FeignClient(value = "ly-happly-servicelocal", url = "127.0.0.1:18011",path = "/happly")
```
```
ERROR [ly-app-servicelocal,d05a388d6f8030e6,d05a388d6f8030e6,true] 5200 --- [io-18083-exec-1] c.l.c.c.global.GlobalExceptionHandler : com.netflix.client.ClientException: Load balancer does not have available server for client: 127.0.0.1

java.lang.RuntimeException: com.netflix.client.ClientException: Load balancer does not have available server for client: 127.0.0.1
at org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient.execute(LoadBalancerFeignClient.java:90)
at com.alibaba.cloud.seata.feign.SeataLoadBalancerFeignClient.execute(SeataLoadBalancerFeignClient.java:45)
at org.springframework.cloud.sleuth.instrument.web.client.feign.TraceLoadBalancerFeignClient.execute(TraceLoadBalancerFeignClient.java:75)
at org.springframework.cloud.sleuth.instrument.web.client.feign.TraceFeignAspect.executeTraceFeignClient(TraceFeignAspect.java:66)
at org.springframework.cloud.sleuth.instrument.web.client.feign.TraceFeignAspect.feignClientWasCalled(TraceFeignAspect.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)
at com.alibaba.cloud.seata.feign.SeataLoadBalancerFeignClient$$EnhancerBySpringCGLIB$$479b9d84.execute()
at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:119)
at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:89)
at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:100)
at com.sun.proxy.$Proxy167.getOperatorInfo(Unknown Source)
```

### Ⅲ. Describe what you expected to happen
没有引入spring-cloud-starter-alibaba-seata依赖,项目都正常。引入依赖后,远程调用一直找不到服务了

### Ⅳ. How to reproduce it (as minimally and precisely as possible)

1. xxx
2. xxx
3. xxx

### Ⅴ. Anything else we need to know?

### Ⅵ. Environment:

- JDK version :1.8
- OS :windows
- Others:

Contributor guide

Open the contributing guide

Research direction

Start with the @FeignClient declaration and the LoadBalancerFeignClient stack trace, then compare the application's behavior with and without the spring-cloud-starter-alibaba-seata dependency. The report does not name source files or tests; done would require a minimal reproducible setup, an explanation for the unavailable 127.0.0.1 service, and a verified fix or configuration guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, spring-boot
Domain
backend, backend-api-design, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.