srinivas created CAMEL-11987:
--------------------------------

             Summary: Camel-SalesForce DTO Issue while using 
camel-salesforce-maven
                 Key: CAMEL-11987
                 URL: https://issues.apache.org/jira/browse/CAMEL-11987
             Project: Camel
          Issue Type: Bug
          Components: camel-salesforce
    Affects Versions: 2.20.0, 2.17.7
            Reporter: srinivas
            Priority: Blocker


I'm trying to connect to our private salesforce cloud using camel and trying to 
generate DTO's using the camel-salesforce-maven. It connects well and it shows 
that there are about 627 objects found. Then while trying to generate the java 
classes it throws the exception as below. I'm using the below command and I've 
tried with the 2.18. 2.19 and 2.20 versions but I see this consistent error 
across all the versions. 

mvn camel-salesforce:generate -DcamelSalesforce.clientId=<clientId> 
-DcamelSalesforce.clientSecret=<scret>-DcamelSalesforce.userName=<username> 
-DcamelSalesforce.password=<password> -DcamelSalesforce.loginUrl=<loginUrl> 
-DcamelSalesforce.version=41.0
[INFO] Scanning for projects...
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
no dependency information available
[WARNING] Failed to retrieve plugin descriptor for 
org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be 
resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
repository, resolution will not be reattempted until the update interval of 
redhat-techpreview-all-repository has elapsed or updates are forced
[WARNING] The POM for 
org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for 
org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}: 
Plugin 
org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version} 
or one of its dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
 in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
local repository, resolution will not be reattempted until the update interval 
of redhat-techpreview-all-repository has elapsed or updates are forced
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Camel :: Salesforce :: Maven plugin 2.17.8-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
no dependency information available
[WARNING] Failed to retrieve plugin descriptor for 
org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be 
resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
repository, resolution will not be reattempted until the update interval of 
redhat-techpreview-all-repository has elapsed or updates are forced
[WARNING] The POM for 
org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for 
org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}: 
Plugin 
org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version} 
or one of its dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
 in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
local repository, resolution will not be reattempted until the update interval 
of redhat-techpreview-all-repository has elapsed or updates are forced
[INFO] 
[INFO] --- camel-salesforce-maven-plugin:2.18.1.redhat-000021:generate 
(default-cli) @ camel-salesforce-maven-plugin ---
ERROR StatusLogger No log4j2 configuration file found. Using default 
configuration: logging only errors to the console. Set system property 
'org.apache.logging.log4j.simplelog.StatusLogger.level' to TRACE to show Log4j2 
internal initialization logging.
[INFO] Logging initialized @3646ms
[INFO] Available providers: SUN version 1.8.
[INFO] Salesforce login...
[INFO] Login user [email protected] at Salesforce loginUrl: 
https://test.salesforce.com/services/oauth2/token
[INFO] Login successful
[INFO] Salesforce login successful
[INFO] Getting Salesforce Objects...
[WARNING] Generating Java classes for all 627 Objects, this may take a while...
[INFO] Retrieving Object descriptions...
[INFO] Generating Java Classes...
[INFO] Logout successful
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:34 min
[INFO] Finished at: 2017-11-02T22:22:41-04:00
[INFO] Final Memory: 42M/594M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.camel.maven:camel-salesforce-maven-plugin:2.18.1.redhat-000021:generate
 (default-cli) on project camel-salesforce-maven-plugin: Error creating 
EntityParticle.java: Invocation of method 'getFieldType' in  class 
org.apache.camel.maven.CamelSalesforceMojo$GeneratorUtility threw exception 
org.apache.maven.plugin.MojoExecutionException: Unsupported type 
urn:RelationshipReferenceTo for field ReferenceTo at /sobject-pojo.vm[line 77, 
column 30] -> [Help 1]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to