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

11th
Jan 2019
samzhu
@samzhu
Jan 11 03:38
Thanks for your reply
Gilles Robert
@ask4gilles
Jan 11 08:14

@spencergibb I've reported here spring-cloud/spring-cloud-commons#465

I know nothing about Prometheus @ask4gilles

dharezlak
@dharezlak
Jan 11 15:43

Hello, has anyone seen this strange Java 11 related error when building Spring Cloud Stream powered application:

java.lang.ClassCastException: class com.sun.proxy.$Proxy122 cannot be cast to class org.springframework.messaging.MessageChannel (com.sun.proxy.$Proxy122 and org.springframework.messaging.MessageChannel are in unnamed module of loader 'app')
    at org.springframework.cloud.stream.test.binder.TestSupportBinder.bindConsumer(TestSupportBinder.java:67) ~[spring-cloud-stream-test-support-2.1.0.RC4.jar:2.1.0.RC4]

?

I am running a test with embedded kafka.
Spencer Gibb
@spencergibb
Jan 11 16:28
Tyler Van Gorder
@tkvangorder
Jan 11 18:12
@samzhu If you are packaging a feign client for a specific service and you are going to have many downstream services that are dependent on that client, you need to be careful because you are coupling those services to releases of the client. We tend to duplicate client for each service which allows them to evolve separately from each other. You can use something like spring cloud contracts/consumer driven contracts to aid with this approach.