You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Mikhail Lukyanov (Jira)" <ji...@apache.org> on 2020/08/28 16:21:00 UTC

[jira] [Created] (CAMEL-15480) No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script

Mikhail Lukyanov created CAMEL-15480:
----------------------------------------

             Summary: 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


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)