You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2021/11/03 08:16:00 UTC

[jira] [Comment Edited] (CAMEL-17160) camel-jbang-main: investigate unresolvable platform-http component

    [ https://issues.apache.org/jira/browse/CAMEL-17160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17437813#comment-17437813 ] 

Otavio Rodolfo Piske edited comment on CAMEL-17160 at 11/3/21, 8:15 AM:
------------------------------------------------------------------------

[~davsclaus] thanks! I didn't know. Do you think it would be worth adding a custom exception (along w/ documentation) for situations like this (1)? Something like "UnreifableComponentException" or "NonConcreteComponentException" stating that this component is facade meant to be used by others?

 

1) I'm not sure where we could do that, but if it's worth it, I could take a look.


was (Author: orpiske):
[~davsclaus] thanks! I didn't know. Do you think it would be worth adding a custom exception (along w/ documentation) for situations like this**? Something like "UnreifableComponentException" or "NonConcreteComponentException" stating that this component is facade meant to be used by others?

 

* I'm not sure where we could do that, but if it's worth it, I could take a look.

> camel-jbang-main: investigate unresolvable platform-http component
> ------------------------------------------------------------------
>
>                 Key: CAMEL-17160
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17160
>             Project: Camel
>          Issue Type: Task
>    Affects Versions: 3.13.0
>            Reporter: Otavio Rodolfo Piske
>            Assignee: Otavio Rodolfo Piske
>            Priority: Major
>         Attachments: test.yaml
>
>
> It's seems it's not specifically on CamelJBang, but it's very easy to reproduce with it with the attached yaml: [^test.yaml]
> ^CamelJBang run --debug-level=trace test.yaml^
> ^...^
> ^08:13:49.798 [main] DEBUG org.apache.camel.impl.engine.AbstractCamelContext - Using ComponentResolver: org.apache.camel.impl.engine.DefaultComponentResolver@6b5966e1 to resolve component with name: platform-http^
> ^08:13:49.798 [main] DEBUG org.apache.camel.support.ResolverHelper - Lookup Component with name platform-http in registry. Found: null^
> ^08:13:49.798 [main] DEBUG org.apache.camel.support.ResolverHelper - Lookup Component with name platform-http-component in registry. Found: null^
> ^08:13:49.798 [main] TRACE org.apache.camel.impl.engine.AbstractCamelContext - No component to create endpoint from uri: platform-http://demo?consumes=plain/text fallback lookup in registry -> null^
> ^08:26:14.019 [main] TRACE org.apache.camel.support.service.BaseService - Error while starting service: org.apache.camel.main.KameletMain@31aa3ca5^
> ^org.apache.camel.FailedToCreateRouteException: Failed to create route route2: Route(route2)[From[platform-http:demo?consumes=plain/text] -... because of No endpoint could be found for: platform-http://demo?consumes=plain/text, please check your classpath contains the needed Camel component jar.^
>  ^at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:80) ~[camel-core-reifier-3.13.0-SNAPSHOT.jar:3.13.0-SNAPSHOT]^
>  ^at org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49) ~[camel-core-engine-3.13.0-SNAPSHOT.jar:3.13.0-SNAPSHOT]^
>  ^at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:851) ~[camel-core-engine-3.13.0-SNAPSHOT.jar:3.13.0-SNAPSHOT]^



--
This message was sent by Atlassian Jira
(v8.3.4#803005)