camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "srinivas (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-11987) Camel-SalesForce DTO Issue while using camel-salesforce-maven
Date Thu, 09 Nov 2017 04:17:00 GMT

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

srinivas edited comment on CAMEL-11987 at 11/9/17 4:16 AM:
-----------------------------------------------------------

Hi Zoran,

   Kindly ignore the above stack trace. Please find the latest stack trace as below:


[INFO] --- camel-salesforce-maven-plugin:2.20.0.fuse-000120-redhat-1: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 'log4j2.debug' to show Log4j2 internal initialization
logging.
[INFO] Logging initialized @2421ms
[INFO] Available providers: SUN version 1.8.
[INFO] Salesforce login...
[INFO] Login at Salesforce loginUrl: https://<sampleURL>/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:22 min
[INFO] Finished at: 2017-11-08T23:15:10-05:00
[INFO] Final Memory: 40M/664M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.camel.maven:camel-salesforce-maven-plugin:2.20.0.fuse-000120-redhat-1:generate
(default-cli) on project camel-salesforce-maven-plugin: Execution default-cli of goal org.apache.camel.maven:camel-salesforce-maven-plugin:2.20.0.fuse-000120-redhat-1:generate
failed: 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 80, column 30] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

Thanks


was (Author: srinivasks22):
Hi Zoran,

   Kindly ignore the above stack trace. Please find the latest stack trace as below:


[INFO] --- camel-salesforce-maven-plugin:2.20.0.fuse-000120-redhat-1: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 'log4j2.debug' to show Log4j2 internal initialization
logging.
[INFO] Logging initialized @2421ms
[INFO] Available providers: SUN version 1.8.
[INFO] Salesforce login...
[INFO] Login 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:22 min
[INFO] Finished at: 2017-11-08T23:15:10-05:00
[INFO] Final Memory: 40M/664M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.camel.maven:camel-salesforce-maven-plugin:2.20.0.fuse-000120-redhat-1:generate
(default-cli) on project camel-salesforce-maven-plugin: Execution default-cli of goal org.apache.camel.maven:camel-salesforce-maven-plugin:2.20.0.fuse-000120-redhat-1:generate
failed: 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 80, column 30] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

Thanks

> 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.17.7, 2.20.0
>            Reporter: srinivas
>            Assignee: Zoran Regvart
>            Priority: Blocker
>             Fix For: 2.21.0
>
>
> 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 <ouruserid> at Salesforce loginUrl: https://<our-private-url>/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)

Mime
View raw message