[
https://issues.apache.org/jira/browse/CAMEL-19821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17761278#comment-17761278
]
Claus Ibsen commented on CAMEL-19821:
-------------------------------------
Okay you can set that option in the Java code such as from your RouteBuilder
configure method, before the from("...")
The other ticket also fixes the doInit() in the component, so when you upgrade
then it should work by setting in that yaml properties file too.
> Spring-rabbitmq can't config allowNullBody COMPONENT OPTIONS
> ------------------------------------------------------------
>
> Key: CAMEL-19821
> URL: https://issues.apache.org/jira/browse/CAMEL-19821
> Project: Camel
> Issue Type: Bug
> Affects Versions: 4.0-M1, 4.0-M2, 4.0-M3, 4.0-RC1, 4.0-RC2, 4.0.0
> Reporter: tanyu
> Priority: Minor
> Attachments: image-2023-09-01-16-22-17-646.png,
> image-2023-09-01-16-22-59-113.png, image-2023-09-01-17-33-28-673.png,
> image-2023-09-01-17-36-10-834.png, image-2023-09-01-17-49-11-385.png
>
>
> Version: camel4.0.0
> Route:
> !image-2023-09-01-16-22-17-646.png!
> document:
> !image-2023-09-01-16-22-59-113.png!
> error info:
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve
> endpoint:
> spring-rabbitmq://camel-test1?allowNullBody=true&disableReplyTo=true due to:
> There are 1 parameters that couldn't be set on the endpoint. Check the uri if
> the parameters are spelt correctly and that they are properties of the
> endpoint. Unknown parameters=[
> {allowNullBody=true}
> ]
> at
> org.apache.camel.support.DefaultComponent.validateParameters(DefaultComponent.java:299)
> ~[camel-support-4.0.0.jar:4.0.0]
> at
> org.apache.camel.support.DefaultComponent.createEndpoint(DefaultComponent.java:191)
> ~[camel-support-4.0.0.jar:4.0.0]
> at
> org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:822)
> ~[camel-base-engine-4.0.0.jar:4.0.0]
> ... 33 common frames omitted
--
This message was sent by Atlassian Jira
(v8.20.10#820010)