-
Bug
-
Resolution: Done
-
Major
-
camel-K-M3
-
None
-
False
-
False
-
%
-
Undefined
-
I tried to create basic integration using https://github.com/openshift-integration/kamelet-catalog/blob/master/salesforce-source.kamelet.yaml
I got the following exception
[1] Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: wrap://salesforce:camelTestTopic?clientId=3MVG99qusVZJwhsmVwtsfEQDmRgc.czFxZScCBW.YXtNP6dkKvbIRS3etAopTC2kbpEnUyEhgFRsmEiqtmDeQ&clientSecret=xxxxxx¬ifyForFields=ALL¬ifyForOperationCreate=true¬ifyForOperationDelete=false¬ifyForOperationUndelete=false¬ifyForOperationUpdate=false&password=xxxxxx&sObjectQuery=SELECT+Id%2C+Name+FROM+Account&updateTopic=true&userName=fuse.salesforce%40gmail.com due to: Unable to create an instance of the component with scheme: salesforce[1] Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: wrap://salesforce:camelTestTopic?clientId=3MVG99qusVZJwhsmVwtsfEQDmRgc.czFxZScCBW.YXtNP6dkKvbIRS3etAopTC2kbpEnUyEhgFRsmEiqtmDeQ&clientSecret=xxxxxx¬ifyForFields=ALL¬ifyForOperationCreate=true¬ifyForOperationDelete=false¬ifyForOperationUndelete=false¬ifyForOperationUpdate=false&password=xxxxxx&sObjectQuery=SELECT+Id%2C+Name+FROM+Account&updateTopic=true&userName=fuse.salesforce%40gmail.com due to: Unable to create an instance of the component with scheme: salesforce[1] at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:888)[1] at org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:777)[1] at org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:58)[1] at org.apache.camel.reifier.AbstractReifier.resolveEndpoint(AbstractReifier.java:177)[1] at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:250)[1] at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:112)[1] ... 23 more[1] Caused by: java.lang.IllegalStateException: Unable to create an instance of the component with scheme: salesforce[1] at org.apache.camel.component.wrap.Wrap.newComponentInstance(Wrap.java:40)[1] at org.apache.camel.component.wrap.WrapComponent.createEndpoint(WrapComponent.java:62)[1] at org.apache.camel.support.DefaultComponent.createEndpoint(DefaultComponent.java:240)[1] at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:853)[1] ... 28 more
After the manual addition of the salesforce dependency to the Kamelet, the issue disappeared.
It seems that Camel-K automatic dependency loading is broken with the `wrap` prefix.