[ 
https://issues.apache.org/jira/browse/CAMEL-15480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mikhail Lukyanov updated CAMEL-15480:
-------------------------------------
    Attachment: image-2020-08-30-13-52-46-411.png

> No signature of method: java.util.LinkedHashMap.resolve() error when get 
> property in groovy script
> --------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-15480
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15480
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-groovy
>    Affects Versions: 2.25.1
>            Reporter: Mikhail Lukyanov
>            Priority: Trivial
>         Attachments: image-2020-08-30-13-44-37-085.png, 
> image-2020-08-30-13-47-38-112.png, image-2020-08-30-13-52-46-411.png
>
>
> I get an error when I want to get the property as indicated here
> [https://camel.apache.org/components/2.x/languages/groovy-language.html] 
> through properties.resolve("test_name") (in JavaSctipt this works)
> !https://mail.google.com/mail/u/0?ui=2&ik=c53a3b3078&attid=0.1&permmsgid=msg-a:r-6655731378480134404&th=17435c9dd04d8e0f&view=fimg&sz=s0-l75-ft&attbid=ANGjdJ955PVDcBRzMYDSwmW7wiDXqKvscrba1udNLQ9Bl9s8-yRIt4mPk4vOkrHQDDBvu4R__dwems3GsHaFJI_Cv1bAOTgDM8yEHhoulwmNv5I6AcRaMcImm26wdkU&disp=emb&realattid=ii_keef04230|width=519,height=293!
>  
>  Error
> {quote}
> No signature of method: java.util.LinkedHashMap.resolve() is applicable for 
> argument types: (java.lang.String) values: [test_name]
> Possible solutions: remove(java.lang.Object), remove(java.lang.Object), 
> remove(java.lang.Object, java.lang.Object), clone()
> at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58)
> at 
> org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49)
> at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
> at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
> at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
> at 
> script1598627841751704336236.run(script1598627841751704336236.groovy:1){quote}
>  
> And I also found the same question on 
> [https://stackoverflow.com/questions/25472136/apache-camel-groovy-scripting/39465657].
>  
> It turns out that there is an error in the documentation and you can't get a 
> property in the groovy?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to