You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2023/11/13 09:27:00 UTC

[jira] [Created] (CAMEL-20107) camel-salesforce: PubSubApiConsumer may fail to load pojo class

James Netherton created CAMEL-20107:
---------------------------------------

             Summary: camel-salesforce: PubSubApiConsumer may fail to load pojo class
                 Key: CAMEL-20107
                 URL: https://issues.apache.org/jira/browse/CAMEL-20107
             Project: Camel
          Issue Type: Improvement
          Components: camel-salesforce
    Affects Versions: 4.1.0, 4.0.2, 4.2.0
            Reporter: James Netherton


When using Salesforce Pub / Sub with pubSubDeserializeType POJO, it's possible that the POJO class will not get loaded correctly on some platforms.

[https://github.com/apache/camel/blob/main/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/PubSubApiConsumer.java#L65]

It'd be better if the class loading logic used the Camel {{ClassResolver}} or {{ObjectHelper.loadClass}} so that the class is attempted to be loaded from the correct set of ClassLoaders.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)