-
Notifications
You must be signed in to change notification settings - Fork 621
No converter found capable of converting from type [java.lang.String] to type [org.springframework.expression.Expression] #2283
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
Comments
version 3.2.1 |
It appears to be some type of miss-configuration. The converter is registered with core. Are you saying it worked with previous versions? |
spring: There is no problem with this configuration doc To avoid repetition, Spring Cloud Stream supports setting values for all channels, in the format of spring.cloud.stream.kafka.default.consumer.=. |
That is not what i asked you |
This is a new application, configured in the default way. Otherwise, 'message-key-expression' needs to be configured separately for each one. |
I'm starting to see what you mean. Spring Boot core bind has an error. The following code private Object bindObject(ConfigurationPropertyName name, Bindable target, BindHandler handler, |
What version of spring cloud stream you are using. I do remember a long while back similar error in a multi-binder scenario, but then it was addressed, hence I am wondering what version |
spring cloud 2021.0.0 This time it is a default configuration org.springframework.cloud.stream.config.BindingServiceProperties
The
|
You don't need to register Spel converter, it is already registered by the framework |
Any updates on this? Perhaps a reproducible sample? |
However, the converter does not exist after debugging, so you can try it out |
|
I'm having similar issue in a project with multi binder while I'm trying to upgrade to upgrade to latest versions
|
A sample conf like this reproduce the problem:
I'm still using legacy annotations.
|
@iguissouma Don't use the default variable for now, The default variable is faulty |
I noticed when we don specify environment property the default property is properly taken and it works as expected but it's not a solution.
|
spring.cloud.stream.kafka.default.producer.message-key-expression: headers['messageKey']
When you configure the default
Failed to bind properties under 'spring.cloud.stream.kafka.default.producer.message-key-expression' to org.springframework.expression.Expression:
The text was updated successfully, but these errors were encountered: