You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Mikhail Lukyanov <lu...@gmail.com> on 2020/08/28 15:57:34 UTC

No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script

Hello, everyone.

I'm using Camel version 2.25.1.

I get an error when I want to get the property as indicated here
https://camel.apache.org/components/latest/languages/groovy-language.html#_using_properties_function
through
properties.resolve("test_name") (in JavaSctipt this works)
[image: image.png]

 Error

>
> 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)


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?
-- 
*With best regards, Lukyanov Mikhail*
*Tel: **+7-909-69-71-547*

Re: No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script

Posted by Mikhail Lukyanov <lu...@gmail.com>.
created a issue https://issues.apache.org/jira/browse/CAMEL-15480

пт, 28 авг. 2020 г. в 19:07, Andrea Cosentino <an...@gmail.com>:

> Probably is outdated. Please open an issue so we won't forget. Thanks
>
> Il ven 28 ago 2020, 18:06 Mikhail Lukyanov <lu...@gmail.com> ha
> scritto:
>
> >
> > There is the same thing, it is written that you can call the property
> like
> > this
> >
> > [image: image.png]
> >
> >
> > пт, 28 авг. 2020 г. в 19:01, Andrea Cosentino <an...@gmail.com>:
> >
> >> You're looking at wrong documentation.
> >>
> >> https://camel.apache.org/components/2.x/languages/groovy-language.html
> >>
> >> Il ven 28 ago 2020, 17:58 Mikhail Lukyanov <lu...@gmail.com> ha
> >> scritto:
> >>
> >> > Hello, everyone.
> >> >
> >> > I'm using Camel version 2.25.1.
> >> >
> >> > I get an error when I want to get the property as indicated here
> >> >
> >> >
> >>
> https://camel.apache.org/components/latest/languages/groovy-language.html#_using_properties_function
> >> through
> >> > properties.resolve("test_name") (in JavaSctipt this works)
> >> > [image: image.png]
> >> >
> >> >  Error
> >> >
> >> >>
> >> >> 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)
> >> >
> >> >
> >> > 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?
> >> > --
> >> > *With best regards, Lukyanov Mikhail*
> >> > *Tel: **+7-909-69-71-547*
> >> >
> >>
> >
> >
> > --
> > *With best regards, Lukyanov Mikhail*
> > *Tel: **+7-909-69-71-547​*
> >
>


-- 
*With best regards, Lukyanov Mikhail*
*Tel: **+7-909-69-71-547​*

Re: No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script

Posted by Andrea Cosentino <an...@gmail.com>.
Probably is outdated. Please open an issue so we won't forget. Thanks

Il ven 28 ago 2020, 18:06 Mikhail Lukyanov <lu...@gmail.com> ha
scritto:

>
> There is the same thing, it is written that you can call the property like
> this
>
> [image: image.png]
>
>
> пт, 28 авг. 2020 г. в 19:01, Andrea Cosentino <an...@gmail.com>:
>
>> You're looking at wrong documentation.
>>
>> https://camel.apache.org/components/2.x/languages/groovy-language.html
>>
>> Il ven 28 ago 2020, 17:58 Mikhail Lukyanov <lu...@gmail.com> ha
>> scritto:
>>
>> > Hello, everyone.
>> >
>> > I'm using Camel version 2.25.1.
>> >
>> > I get an error when I want to get the property as indicated here
>> >
>> >
>> https://camel.apache.org/components/latest/languages/groovy-language.html#_using_properties_function
>> through
>> > properties.resolve("test_name") (in JavaSctipt this works)
>> > [image: image.png]
>> >
>> >  Error
>> >
>> >>
>> >> 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)
>> >
>> >
>> > 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?
>> > --
>> > *With best regards, Lukyanov Mikhail*
>> > *Tel: **+7-909-69-71-547*
>> >
>>
>
>
> --
> *With best regards, Lukyanov Mikhail*
> *Tel: **+7-909-69-71-547​*
>

Re: No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script

Posted by Mikhail Lukyanov <lu...@gmail.com>.
There is the same thing, it is written that you can call the property like
this

[image: image.png]


пт, 28 авг. 2020 г. в 19:01, Andrea Cosentino <an...@gmail.com>:

> You're looking at wrong documentation.
>
> https://camel.apache.org/components/2.x/languages/groovy-language.html
>
> Il ven 28 ago 2020, 17:58 Mikhail Lukyanov <lu...@gmail.com> ha
> scritto:
>
> > Hello, everyone.
> >
> > I'm using Camel version 2.25.1.
> >
> > I get an error when I want to get the property as indicated here
> >
> >
> https://camel.apache.org/components/latest/languages/groovy-language.html#_using_properties_function
> through
> > properties.resolve("test_name") (in JavaSctipt this works)
> > [image: image.png]
> >
> >  Error
> >
> >>
> >> 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)
> >
> >
> > 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?
> > --
> > *With best regards, Lukyanov Mikhail*
> > *Tel: **+7-909-69-71-547*
> >
>


-- 
*With best regards, Lukyanov Mikhail*
*Tel: **+7-909-69-71-547​*

Re: No signature of method: java.util.LinkedHashMap.resolve() error when get property in groovy script

Posted by Andrea Cosentino <an...@gmail.com>.
You're looking at wrong documentation.

https://camel.apache.org/components/2.x/languages/groovy-language.html

Il ven 28 ago 2020, 17:58 Mikhail Lukyanov <lu...@gmail.com> ha
scritto:

> Hello, everyone.
>
> I'm using Camel version 2.25.1.
>
> I get an error when I want to get the property as indicated here
>
> https://camel.apache.org/components/latest/languages/groovy-language.html#_using_properties_function through
> properties.resolve("test_name") (in JavaSctipt this works)
> [image: image.png]
>
>  Error
>
>>
>> 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)
>
>
> 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?
> --
> *With best regards, Lukyanov Mikhail*
> *Tel: **+7-909-69-71-547*
>