-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BindingsLifecycleController isolated ObjectMapper caused jsr310 error at /actuator/bindings endpoint #2272
Comments
I hear you. We tried to use "provided" ObjectMapper for this case but it was creating interference with other things when people were trying to configure it. |
In fact there is a comment which points to #2253
|
Given that this is the first time someone ever reported issue with |
@olegz - Is there a workaround for this or will we have to wait for next release? |
@azizabah
|
Appreciate the example but it still blows up with the same error. Instead of configuring a new ObjectMapper, I just grabbed the one from the ApplicationContext. I also tried creating a new one and registering the JavaTimeModule. Same results. Can we add a test here: https://github.com/spring-cloud/spring-cloud-stream/blob/main/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/endpoint/ActuatorBindingsTest.java to prevent regression bugs in the future? |
Hi. @davidgjm did you get his issue solved at the end? thanks |
I am having the same issue today after I migrate the springboot/azure servicebus version. spring boot : 2.7.0 |
Do you have the following on classpath?
|
@olegz seems like the error comes from the Lines 1058 to 1062 in fe6d887
Lines 142 to 150 in fe6d887
Is there a workaround for this? |
@olegz Should this issue be reopened? You commented you were closing it as there were no reports related with this, but it seems several reports right now, so it does not seem as a "edge case". I will appreciate if this is reopened. |
Let's continue the discussion on the issue #2794? This seems to be a duplicate. |
Hi,
I got Java 8 date/time type
java.time.Duration
not supported by default error when trying to query the{baseUrl}/actuator/bindings
endpoint. Based on current code, there is no way to add the JSR310 module either through dependency management or spring boot configuration.spring.jackson.*
JacksonProperties
won't work because theObjectMapper
instance being used is not managed by Spring. The error message I got is:Version information
2.5.6
2020.0.4
2.12.5
(bom version managed by Spring Boot)3.1.4
2.10.0
Gradle configuration (part)
Exception stacktrace
The text was updated successfully, but these errors were encountered: