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

11th
May 2018
Tommy Ludwig
@shakuzen
May 11 2018 06:06
@pcornelissen looks like Finchley release dates have been updated again: https://github.com/spring-cloud/spring-cloud-release/milestones
vikrantch-hk
@vikrantch-hk
May 11 2018 06:16
is there is any configuration for registering non spring boot eureka client with IP instead of hostname. Like in case of spring boot we can use preferIpAddress: true and give ipAddress
vikrantch-hk
@vikrantch-hk
May 11 2018 14:09
@marcosbarbero sorry to bother you again please help
Marcos Barbero
@marcosbarbero
May 11 2018 15:05
Sorry, I’m still fighting my hotel’s internet connection. It’s down since yesterday
Once I’m back online I can try to help
Tim Ysewyn
@TYsewyn
May 11 2018 15:34
@vikrantch-hk is it a Spring application without Spring Boot, or is it a non-Spring application?
nhmarujo
@nhmarujo
May 11 2018 17:37
Hi guys. I’m slowly migrating my project from Spring Boot 1.5 to 2.0. I managed to migrate everything expect zookeeper, which is giving me some issues. I’m trying spring-cloud-dependencies on version Finchley.RC1 and spring-cloud-starter-config and spring-cloud-starter-zookeeper-discovery. When I start the application it boots fine but then on the end of the boot it crashes. I’m seeing errors like org.apache.zookeeper.KeeperException$UnimplementedException: KeeperErrorCode = Unimplemented for /services/session-manager/ab860950-8c92-4e27-bf3f-e255a53b1da8. Anyone aware of what this might be? Or if this is something that is being fixed for the Finchley release? Thanks in advance :)
Tim Ysewyn
@TYsewyn
May 11 2018 17:44
AFAICS there isn’t an issue for this https://github.com/spring-cloud/spring-cloud-zookeeper/issues
can you give us a stacktrace?
nhmarujo
@nhmarujo
May 11 2018 17:46
I can
should I post it here?
Tim Ysewyn
@TYsewyn
May 11 2018 17:47
you can, you can also send it to me directly if you want
nhmarujo
@nhmarujo
May 11 2018 17:47
I’ll PM you
Tim Ysewyn
@TYsewyn
May 11 2018 19:09
as discussed during our other conversation there is a mismatch between the zookeeper library which is used by Spring and your server.
In case somebody else has that error, you should exclude the packaged version and add another one
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-zookeeper-all</artifactId>
    <exclusions>
        <exclusion>
            <groupId>org.apache.zookeeper</groupId>
            <artifactId>zookeeper</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>org.apache.zookeeper</groupId>
    <artifactId>zookeeper</artifactId>
    <version>3.4.12</version>
    <exclusions>
        <exclusion>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
        </exclusion>
    </exclusions>
</dependency>
don’t forget to exclude zookeeper in your test dependencies too
nhmarujo
@nhmarujo
May 11 2018 19:19
I did those changes and I was able to overcome the issue (my server is version 3.4.8)
thank you so much @TYsewyn
and congratulations to all the team
keep up the good work :wink:
Tim Ysewyn
@TYsewyn
May 11 2018 19:21
yw, I’m glad it works out!
apart from that issue, did you encounter others while migrating?
nhmarujo
@nhmarujo
May 11 2018 19:35
Not related with spring-cloud
the one I had that gave me more headaches was regarding kafka
new version automatically adds an header stating the content type
and the inclusion of that header was raising an error
I had to explicitly set spring.kafka.producer.properties.spring.json.add.type.headers=false
that was the worst for me
:smile:
Tim Ysewyn
@TYsewyn
May 11 2018 19:41
oh, nice to know :)
nhmarujo
@nhmarujo
May 11 2018 19:49
Hope it helps someone :wink: