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 2020/03/12 08:25:09 UTC
[GitHub] [camel-quarkus] lburgazzoli opened a new issue #879: Quarkus fails
to start with uri: platform-http://hello
lburgazzoli opened a new issue #879: Quarkus fails to start with uri: platform-http://hello
URL: https://github.com/apache/camel-quarkus/issues/879
If a route is defined like:
from("platform-http://hello")
.log("${body}")
Then quarkus fails to start with:
```
Exception in thread "main" java.lang.RuntimeException: Failed to start quarkus
at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:248)
at io.quarkus.runtime.Application.start(Application.java:89)
at io.quarkus.runtime.Application.run(Application.java:226)
at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:41)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Path must start with /
at org.apache.camel.quarkus.core.CamelMainRecorder.start(CamelMainRecorder.java:99)
at io.quarkus.deployment.steps.Main$start43.deploy_0(Main$start43.zig:78)
at io.quarkus.deployment.steps.Main$start43.deploy(Main$start43.zig:97)
at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:218)
... 3 more
Caused by: java.lang.IllegalArgumentException: Path must start with /
at io.vertx.ext.web.impl.RouteImpl.checkPath(RouteImpl.java:310)
at io.vertx.ext.web.impl.RouteImpl.<init>(RouteImpl.java:49)
at io.vertx.ext.web.impl.RouterImpl.route(RouterImpl.java:72)
at org.apache.camel.quarkus.component.platform.http.runtime.QuarkusPlatformHttpConsumer.doStart(QuarkusPlatformHttpConsumer.java:102)
at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:121)
at org.apache.camel.impl.engine.AbstractCamelContext.startService(AbstractCamelContext.java:2989)
at org.apache.camel.impl.engine.AbstractCamelContext.doStartOrResumeRouteConsumers(AbstractCamelContext.java:3327)
at org.apache.camel.impl.engine.AbstractCamelContext.doStartRouteConsumers(AbstractCamelContext.java:3258)
at org.apache.camel.impl.engine.AbstractCamelContext.safelyStartRouteServices(AbstractCamelContext.java:3163)
at org.apache.camel.impl.engine.AbstractCamelContext.doStartOrResumeRoutes(AbstractCamelContext.java:2925)
at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2725)
at org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(AbstractCamelContext.java:2527)
at org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLoader(AbstractCamelContext.java:2544)
at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2525)
at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:121)
at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2421)
at org.apache.camel.quarkus.core.CamelMain.doStart(CamelMain.java:50)
at org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:121)
at org.apache.camel.quarkus.core.CamelMainRecorder.start(CamelMainRecorder.java:97)
```
It does work with:
platform-http:/hello
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-quarkus] lburgazzoli commented on issue #879: Quarkus fails
to start with uri: platform-http://hello
Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #879: Quarkus fails to start with uri: platform-http://hello
URL: https://github.com/apache/camel-quarkus/issues/879#issuecomment-598084394
ah yeah, this thing does not have any notion of host, sorry, closing
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-quarkus] ppalaga commented on issue #879: Quarkus fails to
start with uri: platform-http://hello
Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #879: Quarkus fails to start with uri: platform-http://hello
URL: https://github.com/apache/camel-quarkus/issues/879#issuecomment-598083943
> You typically write `http://something` when it is about http url so supporting two slashes would make it looking more "natural"
Yes, as long as `something` is a host. If `something` is a path, the allowed forms are `http:/something` and `http:///something`, IMO.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-quarkus] lburgazzoli commented on issue #879: Quarkus fails
to start with uri: platform-http://hello
Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #879: Quarkus fails to start with uri: platform-http://hello
URL: https://github.com/apache/camel-quarkus/issues/879#issuecomment-598063798
/cc @ppalaga
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-quarkus] ppalaga commented on issue #879: Quarkus fails to
start with uri: platform-http://hello
Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #879: Quarkus fails to start with uri: platform-http://hello
URL: https://github.com/apache/camel-quarkus/issues/879#issuecomment-598074957
Why do you expect it to work with two slashes?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-quarkus] lburgazzoli commented on issue #879: Quarkus fails
to start with uri: platform-http://hello
Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #879: Quarkus fails to start with uri: platform-http://hello
URL: https://github.com/apache/camel-quarkus/issues/879#issuecomment-598082682
You typically write `http://something` when it is about http url so supporting two slashes would make it looking more "natural"
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [camel-quarkus] lburgazzoli closed issue #879: Quarkus fails to
start with uri: platform-http://hello
Posted by GitBox <gi...@apache.org>.
lburgazzoli closed issue #879: Quarkus fails to start with uri: platform-http://hello
URL: https://github.com/apache/camel-quarkus/issues/879
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services