Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20107

camel-salesforce: PubSubApiConsumer may fail to load pojo class

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.0.2, 4.1.0, 4.2.0
    • 4.0.4, 4.3.0
    • camel-salesforce
    • None
    • Unknown

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jamesnetherton James Netherton
            jamesnetherton James Netherton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment