You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/07/19 17:13:35 UTC
[GitHub] [camel-quarkus] DiegoBetancourtC opened a new issue, #3924: Http Timeout Parameter Fails when compiled Natively
DiegoBetancourtC opened a new issue, #3924:
URL: https://github.com/apache/camel-quarkus/issues/3924
I have the following quarks-camel code:
```
from("direct:service")
.process(new Processor() {
public void process(Exchange exchange) throws Exception {
exchange.getIn().setBody("Test");
}
})
.to("http://some-url?bridgeEndpoint=true&connectTimeout=2000&connectionsPerRoute=500&maxTotalConnections=1000&throwExceptionOnFailure=false)
.log("Body : ${body}");
rest("/v1")
.post("/something")
.to("direct:service");
```
When I run the code using the command:
`./mvnw clean compile quarkus:dev`
everything works without any issue (even the timeout parameter), but when I compile the code natively with the command:
`./mvnw package -Pnative`
and I start the application, I get this error:
```
ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: http://some-url?bridgeEndpoint=true&connectTimeout=2000&connectionsPerRoute=500&maxTotalConnections=1000&throwExceptionOnFailure=false 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=[{connectTimeout=2000}]
```
**Camel Version:** 3.17.0
**Quarkus Version:** 2.10.2.Final
**JVM:** GraalVM 22.1.0.0-Final Java 11 Mandrel Distribution
Why it fails when compiled natively?
Thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-quarkus] zhfeng commented on issue #3924: Http Timeout Parameter Fails when compiled Natively
Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #3924:
URL: https://github.com/apache/camel-quarkus/issues/3924#issuecomment-1189732395
Thanks @DiegoBetancourtC for reporting and I think we could miss some reflection configurations in the camel-quarkus-http extension. I will take a look.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-quarkus] zhfeng closed issue #3924: Http Timeout Parameter Fails when compiled Natively
Posted by GitBox <gi...@apache.org>.
zhfeng closed issue #3924: Http Timeout Parameter Fails when compiled Natively
URL: https://github.com/apache/camel-quarkus/issues/3924
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org