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

ASF GitHub Bot commented on CAMEL-12725:
----------------------------------------

GitHub user tinusn opened a pull request:

    https://github.com/apache/camel/pull/2464

    CAMEL-12725: [ERROR] /sobject-pojo-optional.vm

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tinusn/camel master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/2464.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2464
    
----
commit b0652d9707cbd4696d31467b258c2bd61f784980
Author: Tinus Aamand Norstved <tinus@...>
Date:   2018-08-10T07:13:05Z

    Update sobject-pojo-optional.vm
    
    Fixed error in setting the $fieldType - the syntax in the template document 
throws the  following error upon running:
    
    [ERROR] Failed to execute goal 
org.apache.camel.maven:camel-salesforce-maven-plugin:2.21.0:generate 
(executable pom) on project test-project: Execution executable pom of goal 
org.apache.camel.maven:camel-salesforce-maven-plugin:2.21.0:generate failed: 
Encountered "(" at /sobject-pojo-optional.vm[line 64, column 8]
    [ERROR] Was expecting one of:
    [ERROR]     <WHITESPACE> ...
    [ERROR]     <NEWLINE> ...
    [ERROR]     <IDENTIFIER> ...
    [ERROR]     "{" ...
    
    
    This change fixes that.

commit 3aa87a7d67332139e69085881d55c7914a7b8efd
Author: Tinus Aamand Norstved <tinus@...>
Date:   2018-08-10T07:30:00Z

    Merge pull request #1 from tinusn/tinusn-patch-1
    
    Update sobject-pojo-optional.vm

----


> [ERROR] /sobject-pojo-optional.vm: Encountered "(" at line 64, column 8.
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-12725
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12725
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-salesforce
>    Affects Versions: 2.21.0, 2.21.1, 2.21.2, 2.22.0
>            Reporter: Tinus Aamand Norstved
>            Priority: Trivial
>
> When using "optionals" in the camel-salesforce-maven-plugin it will throw an 
> error like the following:
> {{[INFO] Generating Java Classes...}}
> {{[ERROR] /sobject-pojo-optional.vm: Encountered "(" at line 64, column 8.}}
> {{Was expecting one of:}}
> {{ <WHITESPACE> ...}}
> {{ <NEWLINE> ...}}
> {{ <IDENTIFIER> ...}}
> {{ "{" ...}}
> {{[ERROR] ResourceManager: parse exception: Encountered "(" at 
> /sobject-pojo-optional.vm[line 64, column 8]}}
> {{Was expecting one of:}}
> {{ <WHITESPACE> ...}}
> {{ <NEWLINE> ...}}
> {{ <IDENTIFIER> ...}}
> {{ "{" ...}}
>  
> This is caused by a change in 
> [https://github.com/apache/camel/commit/2a4038c66ddc86d081e96a69eb9200f9ff498fb4#diff-ecf95a5795fc049a5d3c45ffcaf5ef00]
>  which sets the following line:
> #set ( ($fieldType = $utility.getFieldType($desc, $field)) && ($fieldType) )
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to