These are chat archives for spring-cloud/spring-cloud

26th
Sep 2018
Ravattailor
@Ravattailor
Sep 26 2018 07:06
Hi, trying to upgrade my application to spring boot 1 to 2, but getting error if I use EnableDiscoveryClient on my application
2018-09-26 12:33:25.816 WARN [compute-api,,,] 1784 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanInitializationException: Failed to process @EventListener annotation on bean with name 'consulAutoServiceRegistration'; nested exception is java.lang.IllegalStateException: Need to invoke method 'bind' declared on target class 'AbstractAutoServiceRegistration', but not found in any interface(s) of the exposed proxy type. Either pull the method up to an interface or switch to CGLIB proxies by enforcing proxy-target-class mode in your configuration.
Валерий Дядченко
@tworogue_gitlab
Sep 26 2018 08:31

Hi everyone!

Got an OOM issue when trying to send 20MB-sized DTO via feign:

see here

"xmx"-argument set to "128m". Increasing of it isn't an appropriate solution in my case.

Please, give me a peace of advice about sending big amounts of data across services. Any steer replies, how-to-articles - I'd appreciate for every of this.

Eric Deandrea
@edeandrea
Sep 26 2018 12:27
When reading properties that come from a spring cloud config server via the spring-cloud-config-client, at what stage in the application startup lifecycle are those properties available for reading?
choubani amir
@amirensit
Sep 26 2018 12:44
@edeandrea interesting question. I am beginner to spring cloud and It is important to understand such information :)
Ravattailor
@Ravattailor
Sep 26 2018 13:28
@edeandrea at the time of bootstraping the application
Eric Deandrea
@edeandrea
Sep 26 2018 13:31
@Ravattailor what does that mean exactly? Is there an event or something that can be listened to to “know” after that happens? an EnvironmentPostProcessor is too early. there are also tons of ApplicationEnvironmentPreparedEvent/ApplicationPreparedEvents fired, some of which are before some are after
choubani amir
@amirensit
Sep 26 2018 14:15
Can anyone explain to me what is the difference between spring-cloud-starter-netflix-eureka-server and spring-cloud-starter-eureka-server dependencies ?
Marcos Barbero
@marcosbarbero
Sep 26 2018 14:56
@amirensit the second no longer exists. It was renamed a while ago
choubani amir
@amirensit
Sep 26 2018 15:40
@marcosbarbero thanks