<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Camel-salesforce component:  ERROR &amp;quot;No class found for SObject &amp;quot;Cvent_Event__c&amp;quot; - Found 0 generated classes in packages: [org.apache.camel.salesforce.dto] in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Camel-salesforce-component-ERROR-quot-No-class-found-for-SObject/m-p/2228191#M19533</link>
    <description>&lt;P&gt;Hi Sowjanya,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I think you did also "import org.apache.camel.component.salesforce.SalesforceComponent" together with &lt;EM&gt;salesforceComponent.setPackages("org.apache.camel.salesforce.dto");&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;in the cConfig component, and you have to add the camel-salesforce jar to the lib of cConfig, is it right?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But by default if you use cMessageEndpoint + salesforce, then the camel-salesforce bundle with be installed when deploying the Route into Runtime.&lt;/P&gt; 
&lt;P&gt;335 │ Active │ 50 │ 2.17.6 │ camel-salesforce&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There is no Import-package defined for "&lt;EM&gt;org.apache.camel.salesforce.dto&lt;/EM&gt;" package in the MANIFEST of camel-salesforce, that's why it complains "&lt;SPAN class="lia-message-read"&gt;No class found for ..."&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You may try if you can use the "camel-salesforce-alldep-2.17.6.jar" in the cConfig component, so that all the camel-salesforce classes are embeded into the export Route jar (instead of install it as a bundle on Runtime during the deployment)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also maybe you search a bit e.g. from &lt;A href="http://camel.apache.org/salesforce" target="_blank" rel="nofollow noopener noreferrer"&gt;http://camel.apache.org/salesforce&lt;/A&gt;, as I'm not so familiar with the salesforce API and DTOs.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks.&lt;/P&gt; 
&lt;P&gt;Xilai&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2019 10:52:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-24T10:52:22Z</dc:date>
    <item>
      <title>Camel-salesforce component:  ERROR "No class found for SObject "Cvent_Event__c" - Found 0 generated classes in packages: [org.apache.camel.salesforce.dto]</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-salesforce-component-ERROR-quot-No-class-found-for-SObject/m-p/2228190#M19532</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to query salesforce using camel-salesforce component's "getSObjectWithId" method.&amp;nbsp; I generated a salesforce DTO library and specified the DTO package name in cConfig.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;salesforceComponent.setPackages("org.apache.camel.salesforce.dto");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;in Dependency tab:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added the dto library under "Bundle classpath" and selected it to be included along with the bundle.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This query works fine in Talend studio. But when I deploy the route to Talend runtime server (TAC), execution fails with below error.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Exception Details: org.apache.camel.component.salesforce.api.SalesforceException: Error processing getSObjectWithId: [0] "No class found for SObject Cvent_Event__c" at org.apache.camel.component.salesforce.internal.processor.AbstractRestProcessor.process(AbstractRestProcessor.java:156) [444:ea_cvent_salesforce_integrations.TrainingDataSync_SQStoSFDC:0.6.4] at org.apache.camel.component.salesforce.SalesforceProducer.process(SalesforceProducer.java:100) ....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is what I found.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Talend studio, camel-salesforce component was able to load all the classes from specified DTO package. i.e&lt;/P&gt;&lt;P&gt;Talend studio has log "[INFO ]: org.apache.camel.component.salesforce.SalesforceComponent - Found 837 generated classes in packages: [org.apache.camel.salesforce.dto]"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Runtime, I see the log message "[INFO ]: org.apache.camel.component.salesforce.SalesforceComponent -&amp;nbsp;&lt;SPAN&gt;Found 0 &lt;/SPAN&gt;generated classes in packages&lt;SPAN&gt;: [org.apache.camel.salesforce.dto]"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any idea why it is not able to load classes from "org.apache.camel.salesforce.dto" package in runtime?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;camel version: 2.17.6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Talend version: 6.4.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sowjanya.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-salesforce-component-ERROR-quot-No-class-found-for-SObject/m-p/2228190#M19532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Camel-salesforce component:  ERROR "No class found for SObject "Cvent_Event__c" - Found 0 generated classes in packages: [org.apache.camel.salesforce.dto]</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Camel-salesforce-component-ERROR-quot-No-class-found-for-SObject/m-p/2228191#M19533</link>
      <description>&lt;P&gt;Hi Sowjanya,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I think you did also "import org.apache.camel.component.salesforce.SalesforceComponent" together with &lt;EM&gt;salesforceComponent.setPackages("org.apache.camel.salesforce.dto");&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;in the cConfig component, and you have to add the camel-salesforce jar to the lib of cConfig, is it right?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But by default if you use cMessageEndpoint + salesforce, then the camel-salesforce bundle with be installed when deploying the Route into Runtime.&lt;/P&gt; 
&lt;P&gt;335 │ Active │ 50 │ 2.17.6 │ camel-salesforce&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There is no Import-package defined for "&lt;EM&gt;org.apache.camel.salesforce.dto&lt;/EM&gt;" package in the MANIFEST of camel-salesforce, that's why it complains "&lt;SPAN class="lia-message-read"&gt;No class found for ..."&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You may try if you can use the "camel-salesforce-alldep-2.17.6.jar" in the cConfig component, so that all the camel-salesforce classes are embeded into the export Route jar (instead of install it as a bundle on Runtime during the deployment)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also maybe you search a bit e.g. from &lt;A href="http://camel.apache.org/salesforce" target="_blank" rel="nofollow noopener noreferrer"&gt;http://camel.apache.org/salesforce&lt;/A&gt;, as I'm not so familiar with the salesforce API and DTOs.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks.&lt;/P&gt; 
&lt;P&gt;Xilai&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 10:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Camel-salesforce-component-ERROR-quot-No-class-found-for-SObject/m-p/2228191#M19533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-24T10:52:22Z</dc:date>
    </item>
  </channel>
</rss>

