Open AlucardHs opened 9 months ago
Is there any outcome? I encountered the same issue
Hi, experiencing the same issue. This is a very serious bug! The solution I found is to remove serde from the project (which is not ideal...it's a useful library) and instead use micronaut-jackson-databind.
Expected Behavior
Registration with Eureka should work when using Micronaut serialization just as it does when using Jackson serialization.
Actual Behaviour
During registration, Micronaut reports an error that PortWrapper could not be serialized:
This seems like an easy fix – just adding
@Serdeable
to PortWrapper. However, when I clone the code and add the @Serdeable annotation to the PortWrapper, the registration still doesn't work. This time, the issue is with serializing the DataCenterInfo class. On the discovery service side (spring boot application), the following exception is logged (trimmed for conciseness):Looking at what's being sent, it seems that Micronaut serialization indeed does not include the @class attribute into the json. Here's the resulting json:
Steps To Reproduce
@Serdeable
to the PortWrapper class, repeat the steps to see the second failure pom.txtEnvironment Information
Example Application
No response
Version
4.2.0