Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Salesforce kamelet - Adjust for Camel 3.19.x #998

Closed
davsclaus opened this issue Aug 9, 2022 · 1 comment · Fixed by #1105
Closed

Salesforce kamelet - Adjust for Camel 3.19.x #998

davsclaus opened this issue Aug 9, 2022 · 1 comment · Fixed by #1105
Assignees
Milestone

Comments

@davsclaus
Copy link
Contributor

The source must be changed to use subscribe as operationName as that is now mandatory in 3.19 onwards.

Otherwise you get errors like

Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: local-salesforce-1://OpportunityTopic?notifyForFields=ALL&notifyForOperationCreate=true&notifyForOperationDelete=false&notifyForOperationUndelete=false&notifyForOperationUpdate=false&sObjectQuery=SELECT+Id%2C+name%2C+accountId%2C+stagename%2C+amount++FROM+Opportunity+WHERE+IsWon+%3D+true&updateTopic=true due to: OpportunityTopic
at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:985)
at org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:867)
at org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:58)
at org.apache.camel.reifier.AbstractReifier.resolveEndpoint(AbstractReifier.java:191)
at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:94)
at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:74)
... 25 more
Caused by: java.lang.IllegalArgumentException: OpportunityTopic
at org.apache.camel.component.salesforce.internal.OperationName.fromValue(OperationName.java:128)
at org.apache.camel.component.salesforce.SalesforceComponent.createEndpoint(SalesforceComponent.java:304)
at org.apache.camel.support.DefaultComponent.createEndpoint(DefaultComponent.java:171)
at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:951)

@oscerd oscerd self-assigned this Aug 22, 2022
@oscerd
Copy link
Contributor

oscerd commented Aug 22, 2022

We should freeze a camel-kamelets release for 3.18.1 so we could release camel-k 1.10.0, after that we could work on 3.19 alignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants