使用LCN5.0.2,使用eureka注册中心报错
- Vorherrschende Sprache
- Java
- Sterne
- 4.2k
- Forks
- 1.4k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
- [ ] I have searched the [issues](https://github.com/codingapi/tx-lcn/issues) of this repository and believe that this is not a duplicate.
### 1. Bug Description
springboot1.5.19版,springcloud Dalston.SR1版 使用eureka1.3.1做为注册中心,访问请求时报错
### 2. Environment:
- JDK version:
- OS:
- TX-LCN version: 5.0.2
- Others:
springboot1.5.19版,springcloud Dalston.SR1版
### 3. Exception Stacktrace
java.lang.AbstractMethodError: org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration.getHost()Ljava/lang/String;
at com.codingapi.txlcn.tracing.http.ribbon.TxlcnZoneAvoidanceRule.choose(TxlcnZoneAvoidanceRule.java:60) ~[txlcn-tracing-5.0.2.RELEASE.jar:5.0.2.RELEASE]
at com.netflix.loadbalancer.BaseLoadBalancer.chooseServer(BaseLoadBalancer.java:736) ~[ribbon-loadbalancer-2.2.2.jar:2.2.2]
at com.netflix.loadbalancer.ZoneAwareLoadBalancer.chooseServer(ZoneAwareLoadBalancer.java:113) ~[ribbon-loadbalancer-2.2.2.jar:2.2.2]
### 4. Tour Idea
eureka版本号1.3.1太低,EurekaRegistration没有提供getHost等方法
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start with com.codingapi.txlcn.tracing.http.ribbon.TxlcnZoneAvoidanceRule.choose at line 60 and reproduce the AbstractMethodError using TX-LCN 5.0.2, Spring Boot 1.5.19, Spring Cloud Dalston.SR1, and Eureka 1.3.1. Check the relevant compatibility and dependency behavior; done means the request no longer fails with this missing getHost method.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, spring-boot
- Bereich
- backend, distributed-systems
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100