You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/08/23 08:04:00 UTC

[jira] [Commented] (CAMEL-15449) BulkAPI createBatchQuery swallows error

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

Claus Ibsen commented on CAMEL-15449:
-------------------------------------

Yeah I think instead of catching only SalesforceException it should be Exception / Throwable to ensure the callback is invoked. Wonder if you would be able to work on a potential fix, and maybe test it on your system.

We love contributions
https://camel.apache.org/community/support/

> BulkAPI createBatchQuery swallows error
> ---------------------------------------
>
>                 Key: CAMEL-15449
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15449
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-salesforce
>    Affects Versions: 3.4.3
>            Reporter: Michael Genereux
>            Priority: Minor
>
> I'm not quite sure what exception handling looks like when it's getting passed around but this callback code is swallowing the exception:
> [https://github.com/apache/camel/blob/master/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/DefaultBulkApiClient.java#L318-L327]
> Exception coming into this callback was (paraphrasing) "Salesforce didn't like one of the parameters to the REST API" and then this code tries to unmarshal the response and throws an unmarshalling error.
> Workaround for now is to fix the API error so this code can unmarshal successfully.
>  
>  



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