Я создал микросервисы Discovery Server и Config Server и пытаюсь получить свойства Discovery Server, которые находятся в Config.
Я пытаюсь закрепить эти две службы и для этого Я создал docker-compose.yml, но когда я запускаю контейнеры, Eureka Server выдает исключение «Соединение отклонено». Сервер конфигурации запускается нормально, но сервер eureka выдает исключение.
Когда я запускаю обе службы через IDE, они работают нормально, но не через docker-compose.
Кто-нибудь знает, в чем может быть проблема?
application.yaml (config-server)
server:
port: 8888
spring:
application:
name: config-server
cloud:
config:
server:
git:
uri: https://github.com/GustavoSC1/Event-Man ... Files-Test
default-label: main
search-paths:
- 'config*'
application.yaml (сервер обнаружения)
spring:
application:
name: discovery-server
config:
import: optional:configserver:http://config-server:8888
Пример файла Docker
FROM openjdk:17-jdk-slim
ARG JAR_FILE=discovery-server/target/*.jar
COPY ${JAR_FILE} app.jar
RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
docker-compose.yml
version: '3.8'
services:
rabbitmq:
image: rabbitmq:3.12.0-management
container_name: rabbitmq
restart: always
ports:
- 5672:5672
- 15672:15672
volumes:
- ../dados:/var/lib/rabbitmq/
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
networks:
- microservices-network
zipkin:
image: openzipkin/zipkin:3.0.6
container_name: zipkin
ports:
- 9411:9411
restart: always
depends_on:
- rabbitmq
environment:
RABBIT_URI: amqp://user:password@rabbitmq:5672
networks:
- microservices-network
config-server:
image: gustavosc1/config-server
container_name: config-server
restart: always
build:
context: .
dockerfile: config-server/Dockerfile
ports:
- 8888:8888
networks:
- microservices-network
discovery-server:
image: gustavosc1/discovery-server
container_name: discovery-server
restart: always
build:
context: .
dockerfile: discovery-server/Dockerfile
ports:
- 8761:8761
environment:
SPRING.ZIPKIN.BASEURL: http://zipkin:9411/
MANAGEMENT.ZIPKIN.TRACING.ENDPOINT: http://zipkin:9411/api/v2/spans
RABBIT_URI: amqp://user:password@rabbitmq:5672
SPRING_RABBITMQ_HOST: rabbitmq
SPRING_ZIPKIN_SENDER_TYPE: rabbit
depends_on:
config-server:
condition: service_started
rabbitmq:
condition: service_started
networks:
- microservices-network
networks:
microservices-network:
driver: bridge
Журналы сервера имен
2024-03-19T21:18:19.042Z INFO 1 --- [main] c.g.d.DiscoveryServerApplication: Starting DiscoveryServerApplication v0.0.1-SNAPSHOT using Java 17.0.2 with PID 1 (/app.jar started by root in /)
2024-03-19T21:18:19.047Z INFO 1 --- [main] c.g.d.DiscoveryServerApplication:
No active profile set, falling back to 1 default profile: "default"
2024-03-19T21:18:19.233Z INFO 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Fetching config from server at : http://config-server:8888
2024-03-19T21:18:19.234Z INFO 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Exception on Url - http://config-server:8888:org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://config-server:8888/discovery-server/default": Connection refused. Will be trying the next url if available
2024-03-19T21:18:19.234Z WARN 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Could not locate PropertySource ([ConfigServerConfigDataResource@6f1de4c7 uris = array['http://config-server:8888'], optional = true, profiles = 'default']): I/O error on GET request for "http://config-server:8888/discovery-server/default": Connection refused
2024-03-19T21:18:19.234Z INFO 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Fetching config from server at : http://config-server:8888
2024-03-19T21:18:19.234Z INFO 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Exception on Url - http://config-server:8888:org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://config-server:8888/discovery-server/default": Connection refused. Will be trying the next url if available
2024-03-19T21:18:19.235Z WARN 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Could not locate PropertySource ([ConfigServerConfigDataResource@55182842 uris = array['http://config-server:8888'], optional = true, profiles = 'default']): I/O error on GET request for "http://config-server:8888/discovery-server/default": Connection refused
2024-03-19T21:18:19.235Z INFO 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Fetching config from server at : http://config-server:8888
2024-03-19T21:18:19.235Z INFO 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Exception on Url - http://config-server:8888:org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://config-server:8888/discovery-server/default": Connection refused. Will be trying the next url if available
2024-03-19T21:18:19.235Z WARN 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Could not locate PropertySource ([ConfigServerConfigDataResource@3270d194 uris = array['http://config-server:8888'], optional = true, profiles = 'default']): I/O error on GET request for "http://config-server:8888/discovery-server/default": Connection refused
2024-03-19T21:18:24.408Z INFO 1 --- [main] o.s.cloud.context.scope.GenericScope: BeanFactory id=6b5919a6-3e46-31f6-a94c-c0261c3e21bc
2024-03-19T21:18:25.183Z INFO 1 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer: Tomcat initialized with port(s): 8080 (http)
2024-03-19T21:18:25.225Z INFO 1 --- [main] o.apache.catalina.core.StandardService: Starting service [Tomcat]
2024-03-19T21:18:25.225Z INFO 1 --- [main] o.apache.catalina.core.StandardEngine: Starting Servlet engine: [Apache Tomcat/10.1.17]
2024-03-19T21:18:25.606Z INFO 1 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/]: Initializing Spring embedded WebApplicationContext
2024-03-19T21:18:25.609Z INFO 1 --- [main] w.s.c.ServletWebServerApplicationContext: Root WebApplicationContext: initialization completed in 6367 ms
2024-03-19T21:18:32.739Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using JSON encoding codec LegacyJacksonJson
2024-03-19T21:18:32.743Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using JSON decoding codec LegacyJacksonJson
2024-03-19T21:18:33.598Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using XML encoding codec XStreamXml
2024-03-19T21:18:33.599Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using XML decoding codec XStreamXml
2024-03-19T21:18:36.009Z WARN 1 --- [main] iguration$LoadBalancerCaffeineWarnLogger: Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath.
2024-03-19T21:18:36.097Z INFO 1 --- [main] o.s.c.n.eureka.InstanceInfoFactory: Setting initial instance status as: STARTING
2024-03-19T21:18:36.373Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Initializing Eureka in region us-east-1
2024-03-19T21:18:36.474Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using JSON encoding codec LegacyJacksonJson
2024-03-19T21:18:36.474Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using JSON decoding codec LegacyJacksonJson
2024-03-19T21:18:36.474Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using XML encoding codec XStreamXml
2024-03-19T21:18:36.474Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using XML decoding codec XStreamXml
2024-03-19T21:18:36.786Z INFO 1 --- [main] c.n.d.s.r.aws.ConfigClusterResolver: Resolving eureka endpoints via configuration
2024-03-19T21:18:36.874Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Disable delta property : false
2024-03-19T21:18:36.874Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Single vip registry refresh property : null
2024-03-19T21:18:36.875Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Force full registry fetch : false
2024-03-19T21:18:36.875Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Application is null : false
2024-03-19T21:18:36.875Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Registered Applications size is zero : true
2024-03-19T21:18:36.876Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Application version is -1: true
2024-03-19T21:18:36.876Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Getting all instance registry info from the eureka server
2024-03-19T21:18:37.192Z INFO 1 --- [main] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error. endpoint=DefaultEndpoint{ serviceUrl='http://localhost:8761/eureka/}, exception=java.net.ConnectException: Connection refused
stacktrace=jakarta.ws.rs.ProcessingException: java.net.ConnectException: C o n n e c t i o n r e f u s e d < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . i n t e r n a l . H t t p U r l C o n n e c t o r . a p p l y ( H t t p U r l C o n n e c t o r . j a v a : 2 7 0 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . C l i e n t R u n t i m e . i n v o k e ( C l i e n t R u n t i m e . j a v a : 3 0 0 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . J e r s e y I n v o c a t i o n . l a m b d a $ i n v o k e $ 0 ( J e r s e y I n v o c a t i o n . j a v a : 6 6 2 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . J e r s e y I n v o c a t i o n . c a l l ( J e r s e y I n v o c a t i o n . j a v a : 6 9 7 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . J e r s e y I n v o c a t i o n . l a m b d a $ r u n I n S c o p e $ 3 ( J e r s e y I n v o c a t i o n . j a v a : 6 9 1 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . i n t e r n a l . E r r o r s . p r o c e s s ( E r r o r s . j a v a : 2 9 2 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . i n t e r n a l . E r r o r s . p r o c e s s ( E r r o r s . j a v a : 2 7 4 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . i n t e r n a l . E r r o r s . p r o c e s s ( E r r o r s . j a v a : 2 0 5 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . p r o c e s s . i n t e r n a l . R e q u e s t S c o p e . r u n I n S c o p e ( R e q u e s t S c o p e . j a v a : 3 9 0 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . J e r s e y I n v o c a t i o n . r u n I n S c o p e ( J e r s e y I n v o c a t i o n . j a v a : 6 9 1 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . J e r s e y I n v o c a t i o n . i n v o k e ( J e r s e y I n v o c a t i o n . j a v a : 6 6 1 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . J e r s e y I n v o c a t i o n $ B u i l d e r . m e t h o d ( J e r s e y I n v o c a t i o n . j a v a : 4 1 3 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . J e r s e y I n v o c a t i o n $ B u i l d e r . g e t ( J e r s e y I n v o c a t i o n . j a v a : 3 1 3 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . j e r s e y 3 . A b s t r a c t J e r s e y 3 E u r e k a H t t p C l i e n t . g e t A p p l i c a t i o n s I n t e r n a l ( A b s t r a c t J e r s e y 3 E u r e k a H t t p C l i e n t . j a v a : 2 6 6 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . j e r s e y 3 . A b s t r a c t J e r s e y 3 E u r e k a H t t p C l i e n t . g e t A p p l i c a t i o n s ( A b s t r a c t J e r s e y 3 E u r e k a H t t p C l i e n t . j a v a : 2 1 3 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r $ 6 . e x e c u t e ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 7 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . M e t r i c s C o l l e c t i n g E u r e k a H t t p C l i e n t . e x e c u t e ( M e t r i c s C o l l e c t i n g E u r e k a H t t p C l i e n t . j a v a : 7 3 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r . g e t A p p l i c a t i o n s ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 4 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r $ 6 . e x e c u t e ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 7 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . R e d i r e c t i n g E u r e k a H t t p C l i e n t . e x e c u t e O n N e w S e r v e r ( R e d i r e c t i n g E u r e k a H t t p C l i e n t . j a v a : 1 2 1 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . R e d i r e c t i n g E u r e k a H t t p C l i e n t . e x e c u t e ( R e d i r e c t i n g E u r e k a H t t p C l i e n t . j a v a : 8 0 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r . g e t A p p l i c a t i o n s ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 4 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r $ 6 . e x e c u t e ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 7 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . R e t r y a b l e E u r e k a H t t p C l i e n t . e x e c u t e ( R e t r y a b l e E u r e k a H t t p C l i e n t . j a v a : 1 2 0 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r . g e t A p p l i c a t i o n s ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 4 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r $ 6 . e x e c u t e ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 7 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . S e s s i o n e d E u r e k a H t t p C l i e n t . e x e c u t e ( S e s s i o n e d E u r e k a H t t p C l i e n t . j a v a : 7 7 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r . g e t A p p l i c a t i o n s ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 4 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . D i s c o v e r y C l i e n t . g e t A n d S t o r e F u l l R e g i s t r y ( D i s c o v e r y C l i e n t . j a v a : 1 0 4 5 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . D i s c o v e r y C l i e n t . f e t c h R e g i s t r y ( D i s c o v e r y C l i e n t . j a v a : 9 5 8 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . D i s c o v e r y C l i e n t . & l t ; i n i t & g t ; ( D i s c o v e r y C l i e n t . j a v a : 3 9 6 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . D i s c o v e r y C l i e n t . & l t ; i n i t & g t ; ( D i s c o v e r y C l i e n t . j a v a : 2 4 7 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . D i s c o v e r y C l i e n t . & l t ; i n i t & g t ; ( D i s c o v e r y C l i e n t . j a v a : 2 4 2 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . c l o u d . n e t f l i x . e u r e k a . C l o u d E u r e k a C l i e n t . & l t ; i n i t & g t ; ( C l o u d E u r e k a C l i e n t . j a v a : 6 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . c l o u d . n e t f l i x . e u r e k a . E u r e k a C l i e n t A u t o C o n f i g u r a t i o n $ R e f r e s h a b l e E u r e k a C l i e n t C o n f i g u r a t i o n . e u r e k a C l i e n t ( E u r e k a C l i e n t A u t o C o n f i g u r a t i o n . j a v a : 3 2 0 ) < b r / > a t j a v a . b a s e / j d k . i n t e r n a l . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e 0 ( N a t i v e M e t h o d ) < b r / > a t j a v a . b a s e / j d k . i n t e r n a l . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e ( N a t i v e M e t h o d A c c e s s o r I m p l . j a v a : 7 7 ) < b r / > a t j a v a . b a s e / j d k . i n t e r n a l . r e f l e c t . D e l e g a t i n g M e t h o d A c c e s s o r I m p l . i n v o k e ( D e l e g a t i n g M e t h o d A c c e s s o r I m p l . j a v a : 4 3 ) < b r / > a t j a v a . b a s e / j a v a . l a n g . r e f l e c t . M e t h o d . i n v o k e ( M e t h o d . j a v a : 5 6 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . S i m p l e I n s t a n t i a t i o n S t r a t e g y . i n s t a n t i a t e ( S i m p l e I n s t a n t i a t i o n S t r a t e g y . j a v a : 1 3 9 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . i n s t a n t i a t e ( C o n s t r u c t o r R e s o l v e r . j a v a : 6 5 0 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . i n s t a n t i a t e U s i n g F a c t o r y M e t h o d ( C o n s t r u c t o r R e s o l v e r . j a v a : 6 4 2 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . i n s t a n t i a t e U s i n g F a c t o r y M e t h o d ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 1 3 3 0 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . c r e a t e B e a n I n s t a n c e ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 1 1 6 0 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . d o C r e a t e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 5 5 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . c r e a t e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 5 1 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . l a m b d a $ d o G e t B e a n $ 1 ( A b s t r a c t B e a n F a c t o r y . j a v a : 3 6 4 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . c l o u d . c o n t e x t . s c o p e . G e n e r i c S c o p e $ B e a n L i f e c y c l e W r a p p e r . g e t B e a n ( G e n e r i c S c o p e . j a v a : 3 7 5 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . c l o u d . c o n t e x t . s c o p e . G e n e r i c S c o p e . g e t ( G e n e r i c S c o p e . j a v a : 1 7 9 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . d o G e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 3 6 1 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . g e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 1 9 9 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . a o p . t a r g e t . S i m p l e B e a n T a r g e t S o u r c e . g e t T a r g e t ( S i m p l e B e a n T a r g e t S o u r c e . j a v a : 3 5 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . a o p . f r a m e w o r k . J d k D y n a m i c A o p P r o x y . i n v o k e ( J d k D y n a m i c A o p P r o x y . j a v a : 2 2 4 ) < b r / > a t j d k . p r o x y 2 / j d k . p r o x y 2 . $ P r o x y 7 4 . g e t A p p l i c a t i o n s ( U n k n o w n S o u r c e ) < b r / > a t o r g . s p r i n g f r a m e w o r k . c l o u d . n e t f l i x . e u r e k a . s e r v e r . E u r e k a S e r v e r A u t o C o n f i g u r a t i o n . p e e r A w a r e I n s t a n c e R e g i s t r y ( E u r e k a S e r v e r A u t o C o n f i g u r a t i o n . j a v a : 2 1 1 ) < b r / > a t j a v a . b a s e / j d k . i n t e r n a l . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e 0 ( N a t i v e M e t h o d ) < b r / > a t j a v a . b a s e / j d k . i n t e r n a l . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e ( N a t i v e M e t h o d A c c e s s o r I m p l . j a v a : 7 7 ) < b r / > a t j a v a . b a s e / j d k . i n t e r n a l . r e f l e c t . D e l e g a t i n g M e t h o d A c c e s s o r I m p l . i n v o k e ( D e l e g a t i n g M e t h o d A c c e s s o r I m p l . j a v a : 4 3 ) < b r / > a t j a v a . b a s e / j a v a . l a n g . r e f l e c t . M e t h o d . i n v o k e ( M e t h o d . j a v a : 5 6 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . S i m p l e I n s t a n t i a t i o n S t r a t e g y . i n s t a n t i a t e ( S i m p l e I n s t a n t i a t i o n S t r a t e g y . j a v a : 1 3 9 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . i n s t a n t i a t e ( C o n s t r u c t o r R e s o l v e r . j a v a : 6 5 0 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . i n s t a n t i a t e U s i n g F a c t o r y M e t h o d ( C o n s t r u c t o r R e s o l v e r . j a v a : 6 4 2 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . i n s t a n t i a t e U s i n g F a c t o r y M e t h o d ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 1 3 3 0 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . c r e a t e B e a n I n s t a n c e ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 1 1 6 0 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . d o C r e a t e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 5 5 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . c r e a t e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 5 1 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . l a m b d a $ d o G e t B e a n $ 0 ( A b s t r a c t B e a n F a c t o r y . j a v a : 3 2 5 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . g e t S i n g l e t o n ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 2 3 4 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . d o G e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 3 2 3 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . g e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 1 9 9 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . c o n f i g . D e p e n d e n c y D e s c r i p t o r . r e s o l v e C a n d i d a t e ( D e p e n d e n c y D e s c r i p t o r . j a v a : 2 5 4 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . d o R e s o l v e D e p e n d e n c y ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 1 4 1 7 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . r e s o l v e D e p e n d e n c y ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 1 3 3 7 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . r e s o l v e A u t o w i r e d A r g u m e n t ( C o n s t r u c t o r R e s o l v e r . j a v a : 9 1 0 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . c r e a t e A r g u m e n t A r r a y ( C o n s t r u c t o r R e s o l v e r . j a v a : 7 8 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . i n s t a n t i a t e U s i n g F a c t o r y M e t h o d ( C o n s t r u c t o r R e s o l v e r . j a v a : 5 4 5 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1330)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:558)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:773)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:756)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:145)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:497)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1414)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:973)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:950)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:616)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:746)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:448)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:324)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1321)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1310)
at com.gustavo.discoveryserver.DiscoveryServerApplication.main(DiscoveryServerApplication.java:12)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:95)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)
Caused by: java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.Net.pollConnect(Native Method)
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
at java.base/java.net.Socket.connect(Socket.java:633)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:178)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:498)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:603)
at java.base/sun.net.www.http.HttpClient.(HttpClient.java:246)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:351)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:373)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1309)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128)
at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1057)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529)
at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:423)
at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:268)
... 115 more
2024-03-19T21:18:37.192Z WARN 1 --- [main] c.n.d.s.t.d.RetryableEurekaHttpClient: Request execution failed with message: java.net.ConnectException: Connection refused
2024-03-19T21:18:37.194Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: DiscoveryClient_DISCOVERY-SERVER/245b579f1c93:discovery-server - was unable to refresh its cache! This periodic background refresh will be retried in 30 seconds. status = Cannot execute request on any known server stacktrace = com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
Подробнее здесь: https://stackoverflow.com/questions/781 ... ocker-comp
Ошибка при попытке подключить сервер обнаружения к серверу конфигурации с помощью docker-compose ⇐ JAVA
Программисты JAVA общаются здесь
1715384013
Anonymous
Я создал микросервисы Discovery Server и Config Server и пытаюсь получить свойства Discovery Server, которые находятся в Config.
Я пытаюсь закрепить эти две службы и для этого Я создал docker-compose.yml, но когда я запускаю контейнеры, Eureka Server выдает исключение «Соединение отклонено». Сервер конфигурации запускается нормально, но сервер eureka выдает исключение.
Когда я запускаю обе службы через IDE, они работают нормально, но не через docker-compose.
Кто-нибудь знает, в чем может быть проблема?
[b]application.yaml (config-server)[/b]
server:
port: 8888
spring:
application:
name: config-server
cloud:
config:
server:
git:
uri: https://github.com/GustavoSC1/Event-Management-Config-Files-Test
default-label: main
search-paths:
- 'config*'
[b]application.yaml (сервер обнаружения)[/b]
spring:
application:
name: discovery-server
config:
import: optional:configserver:http://config-server:8888
[b]Пример файла Docker[/b]
FROM openjdk:17-jdk-slim
ARG JAR_FILE=discovery-server/target/*.jar
COPY ${JAR_FILE} app.jar
RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
[b]docker-compose.yml[/b]
version: '3.8'
services:
rabbitmq:
image: rabbitmq:3.12.0-management
container_name: rabbitmq
restart: always
ports:
- 5672:5672
- 15672:15672
volumes:
- ../dados:/var/lib/rabbitmq/
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
networks:
- microservices-network
zipkin:
image: openzipkin/zipkin:3.0.6
container_name: zipkin
ports:
- 9411:9411
restart: always
depends_on:
- rabbitmq
environment:
RABBIT_URI: amqp://user:password@rabbitmq:5672
networks:
- microservices-network
config-server:
image: gustavosc1/config-server
container_name: config-server
restart: always
build:
context: .
dockerfile: config-server/Dockerfile
ports:
- 8888:8888
networks:
- microservices-network
discovery-server:
image: gustavosc1/discovery-server
container_name: discovery-server
restart: always
build:
context: .
dockerfile: discovery-server/Dockerfile
ports:
- 8761:8761
environment:
SPRING.ZIPKIN.BASEURL: http://zipkin:9411/
MANAGEMENT.ZIPKIN.TRACING.ENDPOINT: http://zipkin:9411/api/v2/spans
RABBIT_URI: amqp://user:password@rabbitmq:5672
SPRING_RABBITMQ_HOST: rabbitmq
SPRING_ZIPKIN_SENDER_TYPE: rabbit
depends_on:
config-server:
condition: service_started
rabbitmq:
condition: service_started
networks:
- microservices-network
networks:
microservices-network:
driver: bridge
[b]Журналы сервера имен[/b]
2024-03-19T21:18:19.042Z INFO 1 --- [main] c.g.d.DiscoveryServerApplication: Starting DiscoveryServerApplication v0.0.1-SNAPSHOT using Java 17.0.2 with PID 1 (/app.jar started by root in /)
2024-03-19T21:18:19.047Z INFO 1 --- [main] c.g.d.DiscoveryServerApplication:
No active profile set, falling back to 1 default profile: "default"
2024-03-19T21:18:19.233Z INFO 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Fetching config from server at : http://config-server:8888
2024-03-19T21:18:19.234Z INFO 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Exception on Url - http://config-server:8888:org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://config-server:8888/discovery-server/default": Connection refused. Will be trying the next url if available
2024-03-19T21:18:19.234Z WARN 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Could not locate PropertySource ([ConfigServerConfigDataResource@6f1de4c7 uris = array['http://config-server:8888'], optional = true, profiles = 'default']): I/O error on GET request for "http://config-server:8888/discovery-server/default": Connection refused
2024-03-19T21:18:19.234Z INFO 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Fetching config from server at : http://config-server:8888
2024-03-19T21:18:19.234Z INFO 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Exception on Url - http://config-server:8888:org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://config-server:8888/discovery-server/default": Connection refused. Will be trying the next url if available
2024-03-19T21:18:19.235Z WARN 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Could not locate PropertySource ([ConfigServerConfigDataResource@55182842 uris = array['http://config-server:8888'], optional = true, profiles = 'default']): I/O error on GET request for "http://config-server:8888/discovery-server/default": Connection refused
2024-03-19T21:18:19.235Z INFO 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Fetching config from server at : http://config-server:8888
2024-03-19T21:18:19.235Z INFO 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Exception on Url - http://config-server:8888:org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://config-server:8888/discovery-server/default": Connection refused. Will be trying the next url if available
2024-03-19T21:18:19.235Z WARN 1 --- [main] o.s.c.c.c.ConfigServerConfigDataLoader:
Could not locate PropertySource ([ConfigServerConfigDataResource@3270d194 uris = array['http://config-server:8888'], optional = true, profiles = 'default']): I/O error on GET request for "http://config-server:8888/discovery-server/default": Connection refused
2024-03-19T21:18:24.408Z INFO 1 --- [main] o.s.cloud.context.scope.GenericScope: BeanFactory id=6b5919a6-3e46-31f6-a94c-c0261c3e21bc
2024-03-19T21:18:25.183Z INFO 1 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer: Tomcat initialized with port(s): 8080 (http)
2024-03-19T21:18:25.225Z INFO 1 --- [main] o.apache.catalina.core.StandardService: Starting service [Tomcat]
2024-03-19T21:18:25.225Z INFO 1 --- [main] o.apache.catalina.core.StandardEngine: Starting Servlet engine: [Apache Tomcat/10.1.17]
2024-03-19T21:18:25.606Z INFO 1 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/]: Initializing Spring embedded WebApplicationContext
2024-03-19T21:18:25.609Z INFO 1 --- [main] w.s.c.ServletWebServerApplicationContext: Root WebApplicationContext: initialization completed in 6367 ms
2024-03-19T21:18:32.739Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using JSON encoding codec LegacyJacksonJson
2024-03-19T21:18:32.743Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using JSON decoding codec LegacyJacksonJson
2024-03-19T21:18:33.598Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using XML encoding codec XStreamXml
2024-03-19T21:18:33.599Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using XML decoding codec XStreamXml
2024-03-19T21:18:36.009Z WARN 1 --- [main] iguration$LoadBalancerCaffeineWarnLogger: Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath.
2024-03-19T21:18:36.097Z INFO 1 --- [main] o.s.c.n.eureka.InstanceInfoFactory: Setting initial instance status as: STARTING
2024-03-19T21:18:36.373Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Initializing Eureka in region us-east-1
2024-03-19T21:18:36.474Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using JSON encoding codec LegacyJacksonJson
2024-03-19T21:18:36.474Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using JSON decoding codec LegacyJacksonJson
2024-03-19T21:18:36.474Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using XML encoding codec XStreamXml
2024-03-19T21:18:36.474Z INFO 1 --- [main] c.n.d.provider.DiscoveryJerseyProvider: Using XML decoding codec XStreamXml
2024-03-19T21:18:36.786Z INFO 1 --- [main] c.n.d.s.r.aws.ConfigClusterResolver: Resolving eureka endpoints via configuration
2024-03-19T21:18:36.874Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Disable delta property : false
2024-03-19T21:18:36.874Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Single vip registry refresh property : null
2024-03-19T21:18:36.875Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Force full registry fetch : false
2024-03-19T21:18:36.875Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Application is null : false
2024-03-19T21:18:36.875Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Registered Applications size is zero : true
2024-03-19T21:18:36.876Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Application version is -1: true
2024-03-19T21:18:36.876Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: Getting all instance registry info from the eureka server
2024-03-19T21:18:37.192Z INFO 1 --- [main] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error. endpoint=DefaultEndpoint{ serviceUrl='http://localhost:8761/eureka/}, exception=java.net.ConnectException: Connection refused
stacktrace=jakarta.ws.rs.ProcessingException: java.net.ConnectException: C o n n e c t i o n r e f u s e d < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . i n t e r n a l . H t t p U r l C o n n e c t o r . a p p l y ( H t t p U r l C o n n e c t o r . j a v a : 2 7 0 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . C l i e n t R u n t i m e . i n v o k e ( C l i e n t R u n t i m e . j a v a : 3 0 0 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . J e r s e y I n v o c a t i o n . l a m b d a $ i n v o k e $ 0 ( J e r s e y I n v o c a t i o n . j a v a : 6 6 2 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . J e r s e y I n v o c a t i o n . c a l l ( J e r s e y I n v o c a t i o n . j a v a : 6 9 7 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . J e r s e y I n v o c a t i o n . l a m b d a $ r u n I n S c o p e $ 3 ( J e r s e y I n v o c a t i o n . j a v a : 6 9 1 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . i n t e r n a l . E r r o r s . p r o c e s s ( E r r o r s . j a v a : 2 9 2 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . i n t e r n a l . E r r o r s . p r o c e s s ( E r r o r s . j a v a : 2 7 4 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . i n t e r n a l . E r r o r s . p r o c e s s ( E r r o r s . j a v a : 2 0 5 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . p r o c e s s . i n t e r n a l . R e q u e s t S c o p e . r u n I n S c o p e ( R e q u e s t S c o p e . j a v a : 3 9 0 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . J e r s e y I n v o c a t i o n . r u n I n S c o p e ( J e r s e y I n v o c a t i o n . j a v a : 6 9 1 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . J e r s e y I n v o c a t i o n . i n v o k e ( J e r s e y I n v o c a t i o n . j a v a : 6 6 1 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . J e r s e y I n v o c a t i o n $ B u i l d e r . m e t h o d ( J e r s e y I n v o c a t i o n . j a v a : 4 1 3 ) < b r / > a t o r g . g l a s s f i s h . j e r s e y . c l i e n t . J e r s e y I n v o c a t i o n $ B u i l d e r . g e t ( J e r s e y I n v o c a t i o n . j a v a : 3 1 3 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . j e r s e y 3 . A b s t r a c t J e r s e y 3 E u r e k a H t t p C l i e n t . g e t A p p l i c a t i o n s I n t e r n a l ( A b s t r a c t J e r s e y 3 E u r e k a H t t p C l i e n t . j a v a : 2 6 6 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . j e r s e y 3 . A b s t r a c t J e r s e y 3 E u r e k a H t t p C l i e n t . g e t A p p l i c a t i o n s ( A b s t r a c t J e r s e y 3 E u r e k a H t t p C l i e n t . j a v a : 2 1 3 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r $ 6 . e x e c u t e ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 7 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . M e t r i c s C o l l e c t i n g E u r e k a H t t p C l i e n t . e x e c u t e ( M e t r i c s C o l l e c t i n g E u r e k a H t t p C l i e n t . j a v a : 7 3 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r . g e t A p p l i c a t i o n s ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 4 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r $ 6 . e x e c u t e ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 7 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . R e d i r e c t i n g E u r e k a H t t p C l i e n t . e x e c u t e O n N e w S e r v e r ( R e d i r e c t i n g E u r e k a H t t p C l i e n t . j a v a : 1 2 1 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . R e d i r e c t i n g E u r e k a H t t p C l i e n t . e x e c u t e ( R e d i r e c t i n g E u r e k a H t t p C l i e n t . j a v a : 8 0 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r . g e t A p p l i c a t i o n s ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 4 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r $ 6 . e x e c u t e ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 7 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . R e t r y a b l e E u r e k a H t t p C l i e n t . e x e c u t e ( R e t r y a b l e E u r e k a H t t p C l i e n t . j a v a : 1 2 0 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r . g e t A p p l i c a t i o n s ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 4 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r $ 6 . e x e c u t e ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 7 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . S e s s i o n e d E u r e k a H t t p C l i e n t . e x e c u t e ( S e s s i o n e d E u r e k a H t t p C l i e n t . j a v a : 7 7 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . s h a r e d . t r a n s p o r t . d e c o r a t o r . E u r e k a H t t p C l i e n t D e c o r a t o r . g e t A p p l i c a t i o n s ( E u r e k a H t t p C l i e n t D e c o r a t o r . j a v a : 1 3 4 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . D i s c o v e r y C l i e n t . g e t A n d S t o r e F u l l R e g i s t r y ( D i s c o v e r y C l i e n t . j a v a : 1 0 4 5 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . D i s c o v e r y C l i e n t . f e t c h R e g i s t r y ( D i s c o v e r y C l i e n t . j a v a : 9 5 8 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . D i s c o v e r y C l i e n t . & l t ; i n i t & g t ; ( D i s c o v e r y C l i e n t . j a v a : 3 9 6 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . D i s c o v e r y C l i e n t . & l t ; i n i t & g t ; ( D i s c o v e r y C l i e n t . j a v a : 2 4 7 ) < b r / > a t c o m . n e t f l i x . d i s c o v e r y . D i s c o v e r y C l i e n t . & l t ; i n i t & g t ; ( D i s c o v e r y C l i e n t . j a v a : 2 4 2 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . c l o u d . n e t f l i x . e u r e k a . C l o u d E u r e k a C l i e n t . & l t ; i n i t & g t ; ( C l o u d E u r e k a C l i e n t . j a v a : 6 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . c l o u d . n e t f l i x . e u r e k a . E u r e k a C l i e n t A u t o C o n f i g u r a t i o n $ R e f r e s h a b l e E u r e k a C l i e n t C o n f i g u r a t i o n . e u r e k a C l i e n t ( E u r e k a C l i e n t A u t o C o n f i g u r a t i o n . j a v a : 3 2 0 ) < b r / > a t j a v a . b a s e / j d k . i n t e r n a l . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e 0 ( N a t i v e M e t h o d ) < b r / > a t j a v a . b a s e / j d k . i n t e r n a l . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e ( N a t i v e M e t h o d A c c e s s o r I m p l . j a v a : 7 7 ) < b r / > a t j a v a . b a s e / j d k . i n t e r n a l . r e f l e c t . D e l e g a t i n g M e t h o d A c c e s s o r I m p l . i n v o k e ( D e l e g a t i n g M e t h o d A c c e s s o r I m p l . j a v a : 4 3 ) < b r / > a t j a v a . b a s e / j a v a . l a n g . r e f l e c t . M e t h o d . i n v o k e ( M e t h o d . j a v a : 5 6 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . S i m p l e I n s t a n t i a t i o n S t r a t e g y . i n s t a n t i a t e ( S i m p l e I n s t a n t i a t i o n S t r a t e g y . j a v a : 1 3 9 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . i n s t a n t i a t e ( C o n s t r u c t o r R e s o l v e r . j a v a : 6 5 0 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . i n s t a n t i a t e U s i n g F a c t o r y M e t h o d ( C o n s t r u c t o r R e s o l v e r . j a v a : 6 4 2 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . i n s t a n t i a t e U s i n g F a c t o r y M e t h o d ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 1 3 3 0 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . c r e a t e B e a n I n s t a n c e ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 1 1 6 0 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . d o C r e a t e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 5 5 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . c r e a t e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 5 1 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . l a m b d a $ d o G e t B e a n $ 1 ( A b s t r a c t B e a n F a c t o r y . j a v a : 3 6 4 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . c l o u d . c o n t e x t . s c o p e . G e n e r i c S c o p e $ B e a n L i f e c y c l e W r a p p e r . g e t B e a n ( G e n e r i c S c o p e . j a v a : 3 7 5 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . c l o u d . c o n t e x t . s c o p e . G e n e r i c S c o p e . g e t ( G e n e r i c S c o p e . j a v a : 1 7 9 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . d o G e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 3 6 1 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . g e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 1 9 9 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . a o p . t a r g e t . S i m p l e B e a n T a r g e t S o u r c e . g e t T a r g e t ( S i m p l e B e a n T a r g e t S o u r c e . j a v a : 3 5 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . a o p . f r a m e w o r k . J d k D y n a m i c A o p P r o x y . i n v o k e ( J d k D y n a m i c A o p P r o x y . j a v a : 2 2 4 ) < b r / > a t j d k . p r o x y 2 / j d k . p r o x y 2 . $ P r o x y 7 4 . g e t A p p l i c a t i o n s ( U n k n o w n S o u r c e ) < b r / > a t o r g . s p r i n g f r a m e w o r k . c l o u d . n e t f l i x . e u r e k a . s e r v e r . E u r e k a S e r v e r A u t o C o n f i g u r a t i o n . p e e r A w a r e I n s t a n c e R e g i s t r y ( E u r e k a S e r v e r A u t o C o n f i g u r a t i o n . j a v a : 2 1 1 ) < b r / > a t j a v a . b a s e / j d k . i n t e r n a l . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e 0 ( N a t i v e M e t h o d ) < b r / > a t j a v a . b a s e / j d k . i n t e r n a l . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e ( N a t i v e M e t h o d A c c e s s o r I m p l . j a v a : 7 7 ) < b r / > a t j a v a . b a s e / j d k . i n t e r n a l . r e f l e c t . D e l e g a t i n g M e t h o d A c c e s s o r I m p l . i n v o k e ( D e l e g a t i n g M e t h o d A c c e s s o r I m p l . j a v a : 4 3 ) < b r / > a t j a v a . b a s e / j a v a . l a n g . r e f l e c t . M e t h o d . i n v o k e ( M e t h o d . j a v a : 5 6 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . S i m p l e I n s t a n t i a t i o n S t r a t e g y . i n s t a n t i a t e ( S i m p l e I n s t a n t i a t i o n S t r a t e g y . j a v a : 1 3 9 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . i n s t a n t i a t e ( C o n s t r u c t o r R e s o l v e r . j a v a : 6 5 0 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . i n s t a n t i a t e U s i n g F a c t o r y M e t h o d ( C o n s t r u c t o r R e s o l v e r . j a v a : 6 4 2 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . i n s t a n t i a t e U s i n g F a c t o r y M e t h o d ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 1 3 3 0 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . c r e a t e B e a n I n s t a n c e ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 1 1 6 0 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . d o C r e a t e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 5 5 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . c r e a t e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 5 1 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . l a m b d a $ d o G e t B e a n $ 0 ( A b s t r a c t B e a n F a c t o r y . j a v a : 3 2 5 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . g e t S i n g l e t o n ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 2 3 4 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . d o G e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 3 2 3 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . g e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 1 9 9 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . c o n f i g . D e p e n d e n c y D e s c r i p t o r . r e s o l v e C a n d i d a t e ( D e p e n d e n c y D e s c r i p t o r . j a v a : 2 5 4 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . d o R e s o l v e D e p e n d e n c y ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 1 4 1 7 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . r e s o l v e D e p e n d e n c y ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 1 3 3 7 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . r e s o l v e A u t o w i r e d A r g u m e n t ( C o n s t r u c t o r R e s o l v e r . j a v a : 9 1 0 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . c r e a t e A r g u m e n t A r r a y ( C o n s t r u c t o r R e s o l v e r . j a v a : 7 8 8 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . i n s t a n t i a t e U s i n g F a c t o r y M e t h o d ( C o n s t r u c t o r R e s o l v e r . j a v a : 5 4 5 ) < b r / > a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1330)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:558)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:773)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:756)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:145)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:497)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1414)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:973)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:950)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:616)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:746)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:448)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:324)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1321)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1310)
at com.gustavo.discoveryserver.DiscoveryServerApplication.main(DiscoveryServerApplication.java:12)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:95)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)
Caused by: java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.Net.pollConnect(Native Method)
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
at java.base/java.net.Socket.connect(Socket.java:633)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:178)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:498)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:603)
at java.base/sun.net.www.http.HttpClient.(HttpClient.java:246)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:351)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:373)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1309)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128)
at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1057)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529)
at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:423)
at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:268)
... 115 more
2024-03-19T21:18:37.192Z WARN 1 --- [main] c.n.d.s.t.d.RetryableEurekaHttpClient: Request execution failed with message: java.net.ConnectException: Connection refused
2024-03-19T21:18:37.194Z INFO 1 --- [main] com.netflix.discovery.DiscoveryClient: DiscoveryClient_DISCOVERY-SERVER/245b579f1c93:discovery-server - was unable to refresh its cache! This periodic background refresh will be retried in 30 seconds. status = Cannot execute request on any known server stacktrace = com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
Подробнее здесь: [url]https://stackoverflow.com/questions/78189870/error-when-trying-to-connect-discovery-server-to-config-server-using-docker-comp[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия